Dža ko lil

Wan v2.6 Text to Image

Integriruj

Modelosko id wan/v2.6/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.6/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"

Kava mangipen: $0.03 30 API krediti Phir les kate

Lel API klidin
Alibaba · Kip

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Lačho kipesko deskripcija, lekhadi čhinanes vaj anglickones thaj limitime pre 2000 karakterura.

image_size

Rezultatske kipeske dimenzije, deďe explicites vaj standardonca sar 'square_hd' thaj 'landscape_16_9'. Kana na deďe, dimenzije džan palal inputosko kipo, limitime pre 1280 × 1280.

standardno 1

Kipesko gendosko limit 1 dži 5, na garantime gendo: modelošuko inferenca vakerel či keren pe buter kipa.

Lučhe negative_prompt · image · seed · enable_safety_checker
standardno

Sadržai savo te na avel ande rezultato kipo, limitime pe 500 karaktero.

image_url
Čhiv jekh fajl, vaj

Optionalno kipo vaś stilosko vodičipen; de 0 vaj 1 referenca. Sako dimenzija trubul te avel 384–5000px, thaj fajlo na tromal te prekerel 10 MB. Lel JPEG, JPG, PNG bi alpha, BMP thaj WEBP.

Randomno seed vaš reproducibilno rezultato, 0 dži 2147483647.

POST /run/wan/v2.6/text-to-image?wait=20 hesab → $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.6/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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Wan v2.6 Text to Image

Kerel kipa katar jek prompto dži 2000 karaktera ande Chinese vaj English. Jekh opcionalno `image_url` šaj te lidžarel o stilo, thaj kana `image_size` si bi setime, o rezultato džal pala kodo kipesko saizo dži 1280x1280. `max_images` del 1 dži 5 rezultatora, numa šaj te aven majcine. Jek `negative_prompt` dži 500 karaktera thaj jek bić si suportime.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
prompttrubul
Tipstring
Lačho kipesko deskripcija, lekhadi čhinanes vaj anglickones thaj limitime pre 2000 karakterura.
image_urlopcionalno image
Tipurl · image
Optionalno kipo vaś stilosko vodičipen; de 0 vaj 1 referenca. Sako dimenzija trubul te avel 384–5000px, thaj fajlo na tromal te prekerel 10 MB. Lel JPEG, JPG, PNG bi alpha, BMP thaj WEBP.
negative_promptopcionalno
Tipstring | null
standardno
Sadržai savo te na avel ande rezultato kipo, limitime pe 500 karaktero.
image_sizeopcionalno
Tipobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Rezultatske kipeske dimenzije, deďe explicites vaj standardonca sar 'square_hd' thaj 'landscape_16_9'. Kana na deďe, dimenzije džan palal inputosko kipo, limitime pre 1280 × 1280.
max_imagesopcionalno
Tipinteger
standardno1
1 – 5
Kipesko gendosko limit 1 dži 5, na garantime gendo: modelošuko inferenca vakerel či keren pe buter kipa.
seedopcionalno
Tipinteger | null
Randomno seed vaš reproducibilno rezultato, 0 dži 2147483647.
enable_safety_checkeropcionalno
Tipboolean
standardnotrue
Moderacia e inputo thaj rezultatoqi, zorutno sako mangipen, te na avel autorizirime o konto te la deaktivuil thaj o opcija te avel čhuty tele.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.6/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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
images
array of object {url, content_type, file_name, file_size}Rezultatske kipa andro PNG formato.
generated_text
string | nullTekstosko rezultato pherdo mišime tekstoske thaj kipeske keripnastar, vaj šaj te avel None kana rezultato hin ča kipa.
seed
integerSeed vrednost përdžardi andre keripe.

Bute modeli: Teksto ko Kip

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/wan/v2.6/text-to-image.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt