> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mynth.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Krea 2 Medium

> Use the Krea 2 Medium model with the Mynth SDK or REST API.

```text Model ID theme={"theme":"kanagawa-dragon"}
krea/krea-2-medium
```

See pricing & more on [mynth.io](https://mynth.io/models/krea%2Fkrea-2-medium).

<CodeGroup>
  ```ts Mynth SDK theme={"theme":"kanagawa-dragon"}
  import Mynth from "@mynthio/sdk";

  const mynth = new Mynth();

  const task = await mynth.image.generate({
    prompt: "Architectural photograph of a brutalist library at golden hour",
    model: "krea/krea-2-medium",
    size: "landscape",
    count: 1,
  });

  console.log(task.urls);
  ```

  ```bash REST API theme={"theme":"kanagawa-dragon"}
  curl https://api.mynth.io/image/generate \
    -X POST \
    -H "Authorization: Bearer $MYNTH_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "prompt": "Architectural photograph of a brutalist library at golden hour",
      "model": "krea/krea-2-medium",
      "size": "landscape",
      "count": 1
    }'
  ```
</CodeGroup>
