# Krea 2 Medium

ID: krea/krea-2-medium
Type: image generation
Vendor: Krea
Description: Smaller Krea 2 variant focused on expressive illustrations and graphic design.

## Modes and inputs
- Text → Image (`txt->img`)
  - Prompt only, no input images
- Image → Image (`img->img`)
  - any image: up to 10

## Output
- Aspect ratios: 1:1, 4:3, 3:2, 16:9, 21:9, 4:5, 2:3, 9:16. Other ratios snap to the closest one. Without `size` (or with `"auto"`), Mynth picks a ratio for the prompt.
- 4K: no
- Negative prompt: not supported (dropped, no error)

## Pricing (USD)
- Per image: $0.040
- Per input image: Free, charged once for each image it goes into
- Only successful results are charged.

## Usage
Set the request's `model` field to `krea/krea-2-medium`. Always pass it explicitly.

TypeScript SDK, Text → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "krea/krea-2-medium",
  prompt: "A lighthouse at dusk, 35mm film",
  size: "16:9",
});

console.log(task.urls[0]);
```

REST (cURL), Text → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "krea/krea-2-medium",
    "prompt": "A lighthouse at dusk, 35mm film",
    "size": "16:9"
  }'
```

CLI, Text → Image:

```bash
npx @mynthio/cli image generate \
  -m krea/krea-2-medium \
  -p "A lighthouse at dusk, 35mm film" \
  -s 16:9
```

TypeScript SDK, Image → Image:

```ts
import Mynth from "@mynthio/sdk";

const mynth = new Mynth();

const task = await mynth.image.generate({
  model: "krea/krea-2-medium",
  prompt: "The same lighthouse, now in heavy fog",
  inputs: ["https://cdn.example.com/lighthouse.png"],
});

console.log(task.urls[0]);
```

REST (cURL), Image → Image:

```bash
curl https://api.mynth.io/image/generate \
  -H "Authorization: Bearer $MYNTH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "krea/krea-2-medium",
    "prompt": "The same lighthouse, now in heavy fog",
    "inputs": ["https://cdn.example.com/lighthouse.png"]
  }'
```

CLI, Image → Image:

```bash
npx @mynthio/cli image generate \
  -m krea/krea-2-medium \
  -p "The same lighthouse, now in heavy fog" \
  -i https://cdn.example.com/lighthouse.png
```

## Links
- Model page: https://mynth.io/models/krea%2Fkrea-2-medium
- Playground: https://mynth.io/playground?_m=krea%2Fkrea-2-medium
- Vendor page: https://www.krea.ai/models/krea-2-medium
- API docs (image generation request): https://mynth.io/docs/api-reference/endpoints/image/generate.md
- Quickstart: https://mynth.io/docs/getting-started.md
- SDK (JS/TS): https://mynth.io/docs/sdks/typescript.md
- This page as JSON: https://mynth.io/models/krea%2Fkrea-2-medium.json

## More from Krea
- Krea 2 Large [krea/krea-2-large]: https://mynth.io/models/krea%2Fkrea-2-large.md
- Krea 2 Turbo [krea/krea-2-turbo]: https://mynth.io/models/krea%2Fkrea-2-turbo.md

## Similar models
- Gemini 3.1 Flash-Lite Image [google/gemini-3.1-flash-lite-image]: https://mynth.io/models/google%2Fgemini-3.1-flash-lite-image.md
- Luma UNI-1 [luma/uni-1]: https://mynth.io/models/luma%2Funi-1.md
- Seedream 5.0 Lite [bytedance/seedream-5.0-lite]: https://mynth.io/models/bytedance%2Fseedream-5.0-lite.md
- ImagineArt 2.0 [imagineart/imagineart-2.0]: https://mynth.io/models/imagineart%2Fimagineart-2.0.md
- MAI Image 2.6 [microsoft/mai-image-2.6]: https://mynth.io/models/microsoft%2Fmai-image-2.6.md
