ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Recraft 20b

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id recraft-20b
# 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/recraft-20b?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"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ: $0.022 22 API ᠺᠷᡝᡩᡳᠲ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Recraft ᡥᡡᠯᠠᠨ ᡩᡝ ᡤᠠᠳᠠᠨ #image-generation#vector-art#typograph#style

ᡤᡳᠰᡠᠨ ᠴᡳ ᡤᠠᠳᠠᠨ ᠣᠪᡠᡵᡝ ᠮᠣᡩᡝᠯ, ᠯᠠᠪᡩᡠ ᠰᠣᠨᠵᠣᡵᡝ ᡩᠣᡵᠣᠨ ᠪᡳᠰᡳᡵᡝ, ᠸᡝᡴᡨᠣᡵ ᠵᠠᡳ ᡩᡳᡤᡳᡨᠠᠯ ᡤᠠᠳᠠᠨ, ᠪᠣᠴᠣᡳ ᡥᡳᠨᡨ ᠪᡝ ᡥᠠᡩᠠᠮᡝ

Recraft · ᡤᠠᠳᠠᠨ

ᡳᠨᡝ ᡝᠮᡠᠨᡳᠩᡤᡝ ᡝᡵᡝᠮᡝ ᡩᡝ

ᡝᡵᡝ ᠵᡠᠯᡝᠨ ᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᠠᠶᠠᠨᠠᠮᡝ ᠠᠮᡪᠠᠯᠠ ᡶᡳᠯᡝᠮᡝ ᠪᡝᠶᡝᠮᡝ᠃ API ᠵᡳᡵᡤᠠᡳ ᡤᠠᡳᡥᠠᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠵᠠᠯᠠᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠮᡠᠰᡝᡳ ᠰᡠᠯᡠᠨᡩᡝ ᠪᠠᠶᠠᠨᠠᠮᡝ᠂ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠶᠠᠨ 7 ᡥᠠᠨ ᠰᠠᡳᠨᠠᠮᡝ᠃

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

ᠵᠠᡴᡠᠨᡳ ᠵᡠᠯᡝ ᡩᡝᡵᡤᡳ ᡩᡝᠪᡝᠰᡠᠮᡝ ᠵᡠᠯᡤᡝ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᠪᠠᡳ ᡝᠨᡝᠩᡤᡳ ᠠᠮᠪᡳ

•ᡴᠠᠷᠠᡴᡡ 88 / 1000
image_size ᠵᡠᠯᡝ square_hd
ᠵᡠᠯᡝ realistic_image

ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨ ᡳ ᠵᡠᠯᡤᠠᠨ ᡳ ᠮᠠᠨᠵᡳᠮᡝ ᠪᡝ ᠵᠠᠯᠠᠨ᠉

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ style_id · enable_safety_checker · colors

ᠵᡠᠯᡝᠮᡝ ᠮᠠᠨᠵᡠᠨ ᡳ ᠣᠯᡥᠣ ᠮᠠᠨᠵᡳᠮᡝ ᡳ ᠵᡠᠯᡝ

ᠵᡠᠯᡝ []

ᠵᡠᠯᡝᠮᡝ ᠰᡳᠮᡝ ᡳ ᠠᡵᠠᠮᡝ ᠪᡝ ᠪᠠᠨᠵᡳᠨᡠᠨ᠉

POST /run/recraft-20b?wait=20 ᠵᠠᠯᡳᠨ → $0.022
# 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/recraft-20b?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"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ ᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ

ᡳᠨᡝ ᠵᠠᠯᠠᠨ ᡝᡵᡝ ᠪᡠᡵᡝᠪᡝᡵᡳ ᡩᡝ ᠪᡳᠮᡝ᠈ Doitong API ᡩᡝ ᠵᡝᠯᡤᡳ ᡩᠠᡵᠠᠮᡝ᠈ Remember ᠵᡠᠯᡝᠮᡝ ᡤᡳᠯᠠᠮᡝ localStorage ᡩᡝ ᠰᡠᠯᡝᠮᡝ ᠪᡳᠮᡝ API ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

Recraft 20b ᡠᡵᡝᠮᡝ

1000 ᡥᡡᠯᡝᠨ ᡳ ᡳᠯᡥᠠᠨ ᡳ ᡥᡡᠯᠠᠨ ᠴᡳ ᡤᠠᠳᠠᠨ ᠪᡠᠶᡝᠮᡝ. `style` ᠵᠠᡴᡠᠨ ᡩᡝ ᠨᡝᠮᡝ ᠵᠠᠩᡤᡳ ᠪᠠᠶᠠᠨᠠ, `style_id` ᠵᠠᠰᡳᠨ ᡳ ᠵᠠᠩᡤᡳ ᠵᠠᠯᠠᠨᠠ. `colors` ᠵᡠᠯᡝ ᠵᠠᠩᡤᡳ ᠵᠠᠯᠠᠨᠠ, `image_size` ᠴᡳ ᠵᡠᠰᡝ, ᠵᡝᠯᡤᡳ ᠪᠠ ᠵᡳᠯᡤᠠᠨ ᠵᠠᠩᡤᡳ ᠪᡠᠶᡝᠮᡝ.

ᠵᠠᡴᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 1,000 ᠵᡳᠪᡝᠨ
image_sizeᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
styleᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝrealistic_image
anyrealistic_imagedigital_illustrationvector_illustrationrealistic_image/b_and_wrealistic_image/enterpriserealistic_image/hard_flashrealistic_image/hdrrealistic_image/motion_blurrealistic_image/natural_lightrealistic_image/studio_portraitdigital_illustration/2d_art_posterdigital_illustration/2d_art_poster_2digital_illustration/3ddigital_illustration/80sdigital_illustration/engraving_color
+21 ᡝᠨᡝdigital_illustration/glowdigital_illustration/graindigital_illustration/hand_drawndigital_illustration/hand_drawn_outlinedigital_illustration/handmade_3ddigital_illustration/infantile_sketchdigital_illustration/kawaiidigital_illustration/pixel_artdigital_illustration/psychedelicdigital_illustration/seamlessdigital_illustration/voxeldigital_illustration/watercolorvector_illustration/cartoonvector_illustration/doodle_line_artvector_illustration/engravingvector_illustration/flat_2vector_illustration/kawaiivector_illustration/line_artvector_illustration/line_circuitvector_illustration/linocutvector_illustration/seamless
ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨ ᡳ ᠵᡠᠯᡤᠠᠨ ᡳ ᠮᠠᠨᠵᡳᠮᡝ ᠪᡝ ᠵᠠᠯᠠᠨ᠉
colorsᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject[]
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ[]
ᠵᡠᠯᡝᠮᡝ ᠰᡳᠮᡝ ᡳ ᠠᡵᠠᠮᡝ ᠪᡝ ᠪᠠᠨᠵᡳᠨᡠᠨ᠉
colors[].rᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠵᠠᠯᠠᠨ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
colors[].gᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠵᠠᠯᠠᠨ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
colors[].bᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠪᡳᠮᡝ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
style_idᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝstring | null
ᠵᡠᠯᡝᠮᡝ ᠮᠠᠨᠵᡠᠨ ᡳ ᠣᠯᡥᠣ ᠮᠠᠨᠵᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝfalse
ᠠᠮᡠᠯᠠᠨ ᡶᡳᠯᡝᠮᡝᠨᡳ ᠵᠠᠰᡳᠮᡝ. ᠪᡝ ᠣᠴᡳ ᠪᠠᠯᠠᠨᠰᡳᠨᡳ ᠪᠠᠨᠵᡳᠨ ᠠᠰᡠᠮᠪᡳ. ᡝᡵᡝ ᠪᠠᠨᠵᡳᠨ ᠠᡴᡡ ᠣᠴᡳ ᠵᠠᡴᡠᠨ ᡶᡝᠨᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᡝ ᠪᠠᠨᠵᡳᠮᡝ; true ᠪᡝ ᠵᠠᠰᡳᠮᡝ.
ᡴᠠᠷᠠᡴᡡ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft-20b",
  "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": 22,
    "usd": "0.022",
    "charged": 22,
    "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
      }
    ]
  },
  "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"
  }
}
ᡤᡝᠯᡝᠮᡝ ᡥᡡᠯᡤᡠᠨᡳ ᡳᠨᡠᡝᠯᡝᡥᡝ outputs[].url ᠰᡠᠯᡠᠨ ᡩᡝ ᠰᡳᡵᡝ ᡶᡳᠯᡝ᠈ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠪᠠᠯᡳ ᠵᡝᠮᡤᡳᠨ GB-ᠪᡳᠶᠠ ᠵᡝᠮᡤᡳᠨ ᠪᡝ ᡝᠮᡠᠯᡝᠮᡝ ᠠᠪᠠᠯᡳ 7 ᡥᠠᠨ ᠰᡳᠯᡤᠠᠨ ᡩᡝ᠈ ᠰᡳᠨᡳ ᠪᠠᠯᠠᠨᠰᡳ ᠵᡠᠶᡝᡵᡝᠨ ᠠᠪᠠᠯᡳ ?storage= ᡩᡝ ᡝᠵᡝᠨ ᡥᠠᠯᠠᠮᡝ᠉
ᡝᠮᡠ ᡤᡳᠰᡠᠨ ᡝᠮᡠ ᠮᠣᡩᡝᠯ ᡩᡝtype, url, content_type, width, height ᠮᠠᠩᡤᡳ duration᠈ ᠵᠠᠯᠠᠨ᠈ ᠪᡠᠵᡠᠮᠪᡳ ᠮᠠᠩᡤᡳ ᠵᡝᡵᡤᡳ ᡩᡝᠨᡳ᠈ output ᠮᠣᡩᡝᠯᡳᠨᡳ ᡝᠮᡠ ᠵᠠᠯᠠᠨ
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ
images
array of object {url, content_type, file_name, file_size}

AI ᠠᡤᡝᠨᡨᡳ ᡠᠴᡠᠷᡳ᠈ ᡝᡵᡝ ᡩᡝᠪᡝᡵᡳ Markdown ᠰᡳᠨᡩᠠᡵᡳ https://doitong.com/mnc/developers/models/recraft-20b.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt