ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Phota Text to Image

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id phota
# 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/phota?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.09 90 API ᠺᠷᡝᡩᡳᠲ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Open model ᡥᡡᠯᠠᠨ ᡩᡝ ᡤᠠᠳᠠᠨ 4K ᠣᠮᠣᠯᠣᠨ4K ᡩᡝ ᡳᠨᡝ #stylized#transform#typography#phota

ᡤᡳᠰᡠᠨ ᡩᡝᡵᡳ ᠵᡠᠯᡤᠠᠨ ᡤᠠᠷᡤᠠᠮᠪᡳ᠉ ᠵᠠᠯᡠ ᠪᠠᠰᡝ ᡳ ᠪᠠᠨᠵᡳᡥᠠ ᠮᡠᡶᠠᠨ ᡩᡝ ᠪᡳ

Open model · ᡤᠠᠳᠠᠨ

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

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

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

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

•ᡴᠠᠷᠠᡴᡡ

ᡤᠠᳳᠠᠨ ᡳ ᠪᡠᠶᠠᠮᡝ ᡳ ᡥᡡᠯᠠᠨ; [[profile_id_1]], [[profile_id_2]] ᡠᠰᡳᠪᡠᡵᡝ ᠵᡠᠯᡝ, ᠵᡠᠯᡝ ᠪᡠᠶᠠᠮᡝ ᡳ ᡤᠠᳳᠠᠨ ᠪᡝ ᠪᡠᠮᡝ᠉

resolution ᠵᡠᠯᡝ 1K

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

aspect_ratio ᠵᡠᠯᡝ auto

ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᠠᠳᠠᠨᡳ ᠵᠠᠯᡳᠨ ᠰᡳᠨᡩᠠᡥᠠᠨ.

num_images ᠵᡠᠯᡝ 1

ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᠠᠮᠠᠨ.

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ output_format · base_model · enable_safety_checker
output_format ᠵᡠᠯᡝ jpeg

ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡶᡳᠯᡝ ᡳ ᠵᡠᠰᡝ᠉

base_model ᠵᡠᠯᡝ nb2

ᠵᠠᠰᡳᠮᡝ ᡳ ᠮᡠᠨᡩᡠᡵᡝ ᠰᡳᠯᡝᠮᡝ; `4K` ᠵᡠᠯᡝ `nb2` ᡩᡝ ᠪᡠᠮᡝ᠉ ᠵᡠᠯᡝ ᠰᡳᠯᡝᠮᡝ ᠮᡠᠰᡝ ᠵᡠᠯᡝ ᠮᡣᡝᠯ ᡩᡝ ᠵᡠᠯᡝ ᡝᠯᡝᡵᡝᠮᡝ᠉

POST /run/phota?wait=20 ᠵᠠᠯᡳᠨ → $0.09
# 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/phota?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 ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

Phota Text to Image ᡠᡵᡝᠮᡝ

ᡤᡳᠰᡠᠨ ᡩᡝᡵᡳ ᠵᡠᠯᡤᠠᠨ ᠪᡝ ᡤᠠᠷᡤᠠᠮᠪᡳ ᠠᠮᡝ [[profile_id_1]] ᠵᡝᠯᡳᠨ ᡩᡝ ᠪᡳᠴᡳᠮᠪᡳ. `base_model` ᡩᡝᡵᡳ nb2, qwen-image-2, flux-2 ᠠᠮᡝ seedream-5-pro ᡤᠠᠷᡤᠠᠨ ᡤᡠᠶᡝ ᠰᡠᠯᡤᡝᠮᠪᡳ. `resolution` 1K ᠠᠮᡝ 4K; 4K ᠵᠠᡳ nb2 ᡩᡝ. ᠵᠠᠯᡠᠪᡠᠯᡳᠨ auto, 1:1, 16:9, 4:3, 3:4 ᠠᠮᡝ 9:16, ᠠᠮᡝ 1 ᡩᡝᡵᡳ 4 ᠵᡠᠯᡤᠠᠨ ᡤᠠᠷᡤᠠᠮᠪᡳ.

ᠵᠠᡴᡠᠨ

ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ ᠵᡝᠯᡤᡳ ᠠᠪᠠᠮᠪᡳ᠈ ᠨᡝᠮᡝ ᠮᡠᠰᡝ ᡠᠯᠠᠮᠪᡳ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
ᡤᠠᳳᠠᠨ ᡳ ᠪᡠᠶᠠᠮᡝ ᡳ ᡥᡡᠯᠠᠨ; [[profile_id_1]], [[profile_id_2]] ᡠᠰᡳᠪᡠᡵᡝ ᠵᡠᠯᡝ, ᠵᡠᠯᡝ ᠪᡠᠶᠠᠮᡝ ᡳ ᡤᠠᳳᠠᠨ ᠪᡝ ᠪᡠᠮᡝ᠉
num_imagesᠵᡠᠯᡝ num_outputs
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
1 – 4
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᠠᠮᠠᠨ.
output_formatᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝjpeg
jpegpng
ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡶᡳᠯᡝ ᡳ ᠵᡠᠰᡝ᠉
resolutionᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1K
1K4K
ᠪᡠᠶᠠᠮᡝ ᡳ ᡤᠠᳳᠠᠨ ᡳ ᠵᠠᠯᠠᠨ ᠪᡝ ᠪᡠᠮᡝ᠉
aspect_ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝauto
auto1:116:94:33:49:16
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᠠᠳᠠᠨᡳ ᠵᠠᠯᡳᠨ ᠰᡳᠨᡩᠠᡥᠠᠨ.
base_modelᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝnb2
nb2qwen-image-2flux-2seedream-5-pro
ᠵᠠᠰᡳᠮᡝ ᡳ ᠮᡠᠨᡩᡠᡵᡝ ᠰᡳᠯᡝᠮᡝ; `4K` ᠵᡠᠯᡝ `nb2` ᡩᡝ ᠪᡠᠮᡝ᠉ ᠵᡠᠯᡝ ᠰᡳᠯᡝᠮᡝ ᠮᡠᠰᡝ ᠵᡠᠯᡝ ᠮᡣᡝᠯ ᡩᡝ ᠵᡠᠯᡝ ᡝᠯᡝᡵᡝᠮᡝ᠉
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᠠᠰᡠᡵᠠᠮᡝ ᠠᠨᡩᠠ ᠪᡳᠮᡝ ᠰᠠᡳᠨ᠈ ᠵᡠᠴᡝᠨ ᠵᡠᠰᡝ ᠠᠰᡠᡵᠠᠮᡝ᠉
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "phota",
  "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": 90,
    "usd": "0.09",
    "charged": 90,
    "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
      }
    ]
  },
  "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, width, height}ᠠᡵᠠᡥᠠ ᡤᠠᠳᠠᠨ ᠪᡝ ᠵᠣᡵᡳᡵᠠ URL᠈

ᡝᠯᡤᡳ ᡩᠠᠯᡳᠨ: ᡥᡡᠯᠠᠨ ᡩᡝ ᡤᠠᠳᠠᠨ

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