ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Wan · v2.7 · Text to Image

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id wan/v2.7/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/wan/v2.7/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"

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

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Alibaba ᡥᡡᠯᠠᠨ ᡩᡝ ᡤᠠᠳᠠᠨ #wan#text-to-image#image-generation

Wan 2.7 ᡳ ᠵᠠᠯᠠᠨ ᡥᡡᠯᠠᠨ ᡩᡝ ᡳᠮᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ, ᡝᠮᡠ ᡳᠯᡤᠠᠨ ᡩᡝ 5 ᡳᠮᠪᡝ ᠪᡳᠮᠪᡳ, ᡝᠯᡝᠮᡝ ᠵᠠᠯᠠᠨ ᡝᠯᡝᠮᡝᠨ ᡳ ᠪᡠᠶᡝᠮᡝ ᠪᡳᠮᠪᡳ

Alibaba · ᡤᠠᠳᠠᠨ

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

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

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

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

•ᡴᠠᠷᠠᡴᡡ 88 / 2000

ᠪᡠᠶᡝᠮᡝᠮᡝ ᠪᡳᠰᡳᡵᡝ ᠪᡠᠶᡝᠮᡝ ᡳ ᡩᠠᠯᠵᡳᠯᠠᠨ, ᠮᠠᠨᠵᡠ ᠠᠮᡠ ᡳᠩᡤᡳᡵᡳ ᡤᡳᠰᡠᠨ ᡳ ᠪᡳᠰᡳᡵᡝ.

image_size ᠵᡠᠯᡝ square_hd

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

num_images ᠵᡠᠯᡝ 1

ᡤᠠᠳᠠᠨ ᡳ ᠪᡠᠶᡝᠮᡝ ᠵᠠᡴᠠᠨ, 1 ᠠᠴᠠ 5 ᠵᡝ.

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ negative_prompt · output_format · seed · enable_safety_checker
0 / 500

ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡤᠠᠳᠠᠨ ᡩᡝ ᠠᠮᡝ ᠪᡳᠮᡝ ᠵᡠᠰᡝ᠈ 500 ᠵᡳᠰᡠᠨ ᡩᡝ ᠠᠴᡠᠮᡝ᠉

output_format ᠵᡠᠯᡝ jpeg

ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨᡳ ᡶᡳᠯᡝ ᡝᠮᡤᡳᠯᡝᠮᡝ.

ᠪᠠᠨᠵᡳᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠰᠠᡳᠨ ᠪᡳᠮᡝ᠈ 0 ᠴᡳ 2147483647᠉

POST /run/wan/v2.7/text-to-image?wait=20 ᠵᠠᠯᡳᠨ → $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/wan/v2.7/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"

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

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

Wan · v2.7 · Text to Image ᡠᡵᡝᠮᡝ

2000 ᡥᡡᠯᠠ ᡩᡝ ᠣᠴᡳᡥᠠ ᡩᡝᠯᡤᡝᠯᡝᠮᡝ `prompt` ᠪᡝ ᡳᠯᡤᠠᠨ ᡳ ᠪᡳᠰᡳᡵᡝᠩᡤᡝ ᡩᡝ ᡳᠮᠪᡝ ᠪᡠᠶᡝᠮᡝ. `image_size` ᡳ 6 ᡝᠯᡝᠮᡝᠨ ᡩᡝ ᡝᠯᡝᠮᡝ, `num_images` ᡩᡝ 1 ᡩᡝ 5 ᡳᠮᠪᡝ ᠵᠠᠯᠠᠨᠠᠮᡝ, `output_format` ᡩᡝ jpeg, png ᠣᠴᡳ webp ᡝᠯᡝᠮᡝ. `negative_prompt` 500 ᡥᡡᠯᠠᠨ ᡩᡝ ᠪᡳᠮᠪᡳ ᠣᠴᡳ `seed` ᠵᠠᡴᠠᠮᡝ ᠪᡳᠮᠪᡳ.

ᠵᠠᡴᡠᠨ

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

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
promptᡴᠠᠷᠠᡴᡡ
ᡠᠯᠠᠮᡝstring
≤ 2,000 ᠵᡳᠪᡝᠨ
ᠪᡠᠶᡝᠮᡝᠮᡝ ᠪᡳᠰᡳᡵᡝ ᠪᡠᠶᡝᠮᡝ ᡳ ᡩᠠᠯᠵᡳᠯᠠᠨ, ᠮᠠᠨᠵᡠ ᠠᠮᡠ ᡳᠩᡤᡳᡵᡳ ᡤᡳᠰᡠᠨ ᡳ ᠪᡳᠰᡳᡵᡝ.
negative_promptᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝstring | null
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ
≤ 500 ᠵᡳᠪᡝᠨ
ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᡤᠠᠳᠠᠨ ᡩᡝ ᠠᠮᡝ ᠪᡳᠮᡝ ᠵᡠᠰᡝ᠈ 500 ᠵᡳᠰᡠᠨ ᡩᡝ ᠠᠴᡠᠮᡝ᠉
image_sizeᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝobject
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝsquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨ ᡳ ᡤᠠᠯᠠᠨ.
num_imagesᠵᡠᠯᡝ num_outputs
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
1 – 5
ᡤᠠᠳᠠᠨ ᡳ ᠪᡠᠶᡝᠮᡝ ᠵᠠᡴᠠᠨ, 1 ᠠᠴᠠ 5 ᠵᡝ.
seedᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger | null
ᠪᠠᠨᠵᡳᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠰᠠᡳᠨ ᠪᡳᠮᡝ᠈ 0 ᠴᡳ 2147483647᠉
enable_safety_checkerᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝboolean
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝtrue
ᡝᡵᡝᠮᡝ ᠪᡠᠮᡝ ᠪᠠ ᠪᡠᠶᡝᠮᡝ ᠠᠰᡠᡵᠠᠮᡝ᠈ ᡤᡝᡪᡳᠯᡝᠨ ᡩᡝ ᠪᡳᠮᡝ᠈ ᠣᠯᡥᠣᠪᡠᡵᡝᠩᡤᡝ ᠠᠮᡝ ᠣᠨᠣᠯᠣᠮᡝ ᠵᡠᠰᡝ ᠠᠮᡝ ᠠᠴᡠᠮᡝ᠉
output_formatᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝjpeg
jpegpngwebp
ᠪᡠᠶᡝᠮᡝ ᡤᠠᠳᠠᠨᡳ ᡶᡳᠯᡝ ᡝᠮᡤᡳᠯᡝᠮᡝ.
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/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
      }
    ],
    "generated_text": "string",
    "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"
  }
}
ᡤᡝᠯᡝᠮᡝ ᡥᡡᠯᡤᡠᠨᡳ ᡳᠨᡠᡝᠯᡝᡥᡝ outputs[].url ᠰᡠᠯᡠᠨ ᡩᡝ ᠰᡳᡵᡝ ᡶᡳᠯᡝ᠈ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠪᠠᠯᡳ ᠵᡝᠮᡤᡳᠨ GB-ᠪᡳᠶᠠ ᠵᡝᠮᡤᡳᠨ ᠪᡝ ᡝᠮᡠᠯᡝᠮᡝ ᠠᠪᠠᠯᡳ 7 ᡥᠠᠨ ᠰᡳᠯᡤᠠᠨ ᡩᡝ᠈ ᠰᡳᠨᡳ ᠪᠠᠯᠠᠨᠰᡳ ᠵᡠᠶᡝᡵᡝᠨ ᠠᠪᠠᠯᡳ ?storage= ᡩᡝ ᡝᠵᡝᠨ ᡥᠠᠯᠠᠮᡝ᠉
ᡝᠮᡠ ᡤᡳᠰᡠᠨ ᡝᠮᡠ ᠮᠣᡩᡝᠯ ᡩᡝtype, url, content_type, width, height ᠮᠠᠩᡤᡳ duration᠈ ᠵᠠᠯᠠᠨ᠈ ᠪᡠᠵᡠᠮᠪᡳ ᠮᠠᠩᡤᡳ ᠵᡝᡵᡤᡳ ᡩᡝᠨᡳ᠈ output ᠮᠣᡩᡝᠯᡳᠨᡳ ᡝᠮᡠ ᠵᠠᠯᠠᠨ
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ
images
array of object {url, content_type, file_name, file_size}ᠪᡠᠶᡝᠮᡝ ᠵᡠᠴᡝᠨ ᡳ ᠤᠯᡥᠠᠨ ᠤᠯᡥᠠᠨ᠉
generated_text
string | nullᠵᡠᠯᡝ ᡥᡡᠯᠠᠨ ᠮᠣᠳᡝᠯ ᠪᡠᠶᡝᠮᡝᠮᡝ ᡝᠮᡠ ᠪᡠᠶᡝᠮᡝ ᡳ ᠵᠠᡴᠠᠨᡳ ᡳᠨᡠ.
seed
integerᠪᡠᠶᡝᠮᡝ ᡩᡝ ᠶᠠᠪᡠᡥᠠᠨ ᠪᠠᠨᠵᡳᠨᠠᠮᡝ᠉

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

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