Skip to content

Krea 2 Medium

Integrate

Model id krea/v2/medium/text-to-image
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/krea/v2/medium/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.03 30 API credits Run it on this page

Get API key
Krea Text to Image Reference inputs #text-to-image#image-generation#style-reference#krea

Text-to-image with creativity levels, eight aspect ratios, and optional style references, presets and a moodboard

Krea · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 5000

Text specifying the desired image content.

aspect_ratio default 1:1

Width-to-height ratio for the output image.

Advanced creativity · seed · enable_safety_checker · image_style_references · styles · moodboards
creativity default medium

Prompt-interpretation flexibility, trading closer adherence at lower settings for greater creativity and possible departures from the prompt at higher settings.

Random seed that makes generation reproducible.

default []

Guide the generated image's style with up to 10 reference images; supplying this list is optional.

default []

Optional selection of LoRA-based Krea style presets to apply, limited to 10 entries. Entries identify a style using its `id` in the Krea styles catalog.

default []

Optional generation moodboard, selected through an entry's UUID `id`. The current limit is one moodboard in a request.

POST /run/krea/v2/medium/text-to-image?wait=20 quote → $0.03
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/krea/v2/medium/text-to-image?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Krea 2 Medium

Generates an image from a text prompt of up to 5000 characters. `aspect_ratio` offers eight options from 1:1 to 2.35:1 and 9:16. `creativity` runs from raw to high, controlling how closely the result follows the prompt. You can guide the look with up to 10 `image_style_references`, up to 10 preset `styles`, or one moodboard, and fix a `seed` for repeatable results.

Parameters

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 5,000 characters
Text specifying the desired image content.
aspect_ratiooptional
Typeenum
Default1:1
1:14:33:216:92.35:14:52:39:16
Width-to-height ratio for the output image.
creativityoptional
Typeenum
Defaultmedium
rawlowmediumhigh
Prompt-interpretation flexibility, trading closer adherence at lower settings for greater creativity and possible departures from the prompt at higher settings.
seedoptional
Typeinteger | null
Random seed that makes generation reproducible.
image_style_referencesoptional
Typeobject[]
Default[]
≤ 10 items
Guide the generated image's style with up to 10 reference images; supplying this list is optional.
image_style_references[].image_urlrequired
Typeurl · image
Reference image URL accessible to the public.
image_style_references[].strengthoptional
Typenumber
Default1
-2 – 2
Set the reference's influence on the generated image, using a negative value to steer the result away from that reference instead.
stylesoptional
Typeobject[]
Default[]
≤ 10 items
Optional selection of LoRA-based Krea style presets to apply, limited to 10 entries. Entries identify a style using its `id` in the Krea styles catalog.
styles[].idrequired
Typestring
Style selection by identifier from the Krea styles catalog; the selected preset is LoRA-based.
styles[].strengthoptional
Typenumber
Default1
-2 – 2
Set the style's influence on the generated image, using a negative value to steer the result away from that style instead.
moodboardsoptional
Typeobject[]
Default[]
≤ 1 item
Optional generation moodboard, selected through an entry's UUID `id`. The current limit is one moodboard in a request.
moodboards[].idrequired
Typestring
UUID identifying the Krea moodboard.
moodboards[].strengthoptional
Typenumber
Default0.23
0 – 1
Strength of the moodboard's influence on image generation.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "krea/v2/medium/text-to-image",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
images
array of object {url, content_type, file_name, file_size, width, height}Images produced by the model.
seed
integerSeed used during image generation.

More models: Text to Image

For AI agents: this page as Markdown is at https://doitong.com/en-US/developers/models/krea/v2/medium/text-to-image.md. All models and guides: https://doitong.com/developers/llms.txt