About Krea 2 Medium Turbo
Krea 2 Medium Turbo generates images from a text prompt, or edits a reference image when one is supplied. It renders at 1K across nine aspect ratios, with a creativity control that trades prompt adherence against invention.
Ready to build with Krea 2 Medium Turbo?
Try Krea 2 Medium Turbo in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/images/edit \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "krea-2-medium-turbo",
"prompt": "A sunlit greenhouse full of overgrown ferns, shot on medium format film",
"aspect_ratio": "1:1",
"creativity": "low",
"strength": 0.99
}'Request parameters
Every field Krea 2 Medium Turbo accepts in the request body. See the API reference for response formats.
POST
https://hub.oxen.ai/api/ai/images/edit| Field | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Text description of the image to generate, or the instruction describing how to edit the supplied image. |
input_image | stringuri | No | — | Optional reference image to edit. Leave empty to generate from the prompt alone. |
aspect_ratio | string | No | "1:1" | Shape of the generated image.1:14:33:216:92.35:14:53:42:39:16 |
creativity | string | No | "low" | How far the model may depart from the prompt. 'raw' follows it most literally; 'high' invents the most.rawlowmediumhigh |
strength | number | No | 0.99 | How much to change the input image, from 0 (keep it) to 1 (replace it). Only applies when an input image is supplied. Range: 0 – 1 |
seed | integer | No | — | Random seed for reproducibility. |