ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Recraft V4.1 Text to Image Utility

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id recraft/v4.1/utility/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.ru/v1/run/recraft/v4.1/utility/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ᡝᠨᡳ ᠵᠠᠯᡳᠨ: $0.035 35 API ᠺᠷᡝᡩᡳᠲ · ≈ ₽3.77 ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Recraft ᡥᡡᠯᠠᠨ ᡩᡝ ᡤᠠᠳᠠᠨ #stylized#transform#typography

ᡤᠠᠯᠠᠨ ᡳ ᠵᠠᠯᡤᠠᠯᠠᠨ ᠵᠠᠯᡤᠠᠨ ᡳ V4.1 Utility ᡳ ᠨᡝᠮᡝᠨ ᡳᠯᡳᡥᠠᠨ᠈ ᠣᠯᡥᠣᠨ ᠠᠵᡤᠠᠨ ᡩᡝ ᠵᠠᠯᡤᠠᠯᠠᠮᡝ ᠵᠠᠰᡳᡥᠠᠨ ᠪᡝ ᠠᠪᠰᡳ ᠠᠮᠪᡳ

Recraft · ᡤᠠᠳᠠᠨ

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

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

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

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

•ᡴᠠᠷᠠᡴᡡ 88 / 10000
image_size ᠵᡠᠯᡝ square_hd
ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ enable_safety_checker · colors · background_color
ᠵᡠᠯᡝ []

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

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

POST /run/recraft/v4.1/utility/text-to-image?wait=20 ᠵᠠᠯᡳᠨ → $0.035
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/recraft/v4.1/utility/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

Recraft V4.1 Text to Image Utility ᡠᡵᡝᠮᡝ

V4.1 Utility ᡳ ᠨᡝᠮᡝᠨ ᡳᠯᡳᡥᠠᠨ᠈ ᠪᠠᡵᡤᡳ ᠵᠠᠯᡤᠠᠯᠠᠨ ᡳ ᠠᠵᡤᠠᠨ ᡩᡝ ᠵᠠᠯᡤᠠᠯᠠᠮᡝ ᠣᠮᠪᡳ. ᠮᡠᠰᡝᠩᡤᡝ 10000 ᡥᡡᠯᠠᠨ ᡳ ᠵᠠᠯᡤᠠᡵᠠᠨ ᡳᠮᠠᡤᡝ᠈ ᡩᠠᠮᡠ `colors` ᠵᡝᠪᡝ `background_color` ᠪᡝ ᠠᠪᠠᠮᡝ. `image_size` ᡩᡝ ᠵᡠᠯᡤᠠᠨ ᠵᠠᠯᠠᠨ ᠣᠮᠪᡳ᠈ square_hd ᠪᡝ ᠠᠮᠠᠯᡤᠠᠨ ᠪᡳ.

ᠵᠠᡴᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 10,000 ᠵᡳᠪᡝᠨ
image_sizeᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
colorsᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject[]
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ[]
ᠵᡠᠯᡝᠮᡝ ᠰᡳᠮᡝ ᡳ ᠠᡵᠠᠮᡝ ᠪᡝ ᠪᠠᠨᠵᡳᠨᡠᠨ᠉
colors[].rᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠵᠠᠯᠠᠨ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
colors[].gᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠵᠠᠯᠠᠨ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
colors[].bᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠪᡳᠮᡝ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
background_colorᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject
ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨ ᡳ ᡤᠠᠳᠠᠨ ᡳ ᠵᡠᠯᡝ ᡳ ᠰᠣᠩᡤᠣᠮᡝ ᠵᠠᠯᠠᠨ᠉
background_color.rᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠵᠠᠯᠠᠨ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
background_color.gᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠵᠠᠯᠠᠨ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
background_color.bᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0
0 – 255
ᠪᡳᠮᡝ ᡳ ᠰᡳᠮᡝ ᡳ ᠵᡠᠯᡝ
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᠠᠮᡠᠯᠠᠨ ᡶᡳᠯᡝᠮᡝᠨᡳ ᠵᠠᠰᡳᠮᡝ. ᠪᡝ ᠣᠴᡳ ᠪᠠᠯᠠᠨᠰᡳᠨᡳ ᠪᠠᠨᠵᡳᠨ ᠠᠰᡠᠮᠪᡳ. ᡝᡵᡝ ᠪᠠᠨᠵᡳᠨ ᠠᡴᡡ ᠣᠴᡳ ᠵᠠᡴᡠᠨ ᡶᡝᠨᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᡝ ᠪᠠᠨᠵᡳᠮᡝ; true ᠪᡝ ᠵᠠᠰᡳᠮᡝ.
ᡴᠠᠷᠠᡴᡡ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "recraft/v4.1/utility/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": 35,
    "usd": "0.035",
    "charged": 35,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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/v4.1/utility/text-to-image.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt