Leum chun t-susbaint

Wan 2.5 Text to Image

Amalaich

ID a’ mhodail wan-25-preview/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-25-preview/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"

An t-iarrtas seo: $0.05 50 creideasan API Ruith e air an duilleig seo

Faigh iuchair API

Wan 2.5 teacsa-gu-ìomhaigh le prompts Sìneach agus Beurla agus suas ri ceithir ìomhaighean gach gairm

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le Wan 2.5. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Bhidio

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... Bhidio

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach

Stiùiridhean gineadh ìomhaighe, cuibhrichte gu 2000 caractar agus sgrìobhte ann an Sìnis no Beurla.

image_size bun-roghainn square

Meudan na h-ìomhaighe a chaidh a ghineadh, le àireamh iomlan de phìogsailean eadar 768×768 agus 1440×1440 agus co-mheas taobh bho 1:4 gu 4:1. Sònraich na meudan gu dìreach no tagh ro-shuidheachadh ainmichte, leithid 'square' no 'landscape_16_9'.

num_images bun-roghainn 1

Àireamh nan ìomhaighean a thèid a ghineadh, eadar 1 agus 4.

Adhartach negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

Prompt àicheil a’ sònrachadh susbaint nach eilear ag iarraidh, cuibhrichte gu 500 caractar.

Sìol a nì gineadh ath-riochdachail. Le bhith ga shuidheachadh gu None, thèid sìol a thaghadh air thuaiream.

POST /run/wan-25-preview/text-to-image?wait=20 tuairmse → $0.05
# 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-25-preview/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"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Wan 2.5 Text to Image

Ginidh e ìomhaighean bho `prompt` teacsa le suas ri 2000 caractar ann an Sìonais no Beurla. Tha `num_images` eadar 1 agus 4 agus gabhaidh `image_size` ri ro-shuidheachaidhean no tomhasan soilleir, le piogsail iomlan eadar 768x768 agus 1440x1440. Tha leudachadh prompt, a bhios ag ath-sgrìobhadh am prompt le LLM, air a chur air adhart a ghnàth. Tha `negative_prompt` agus `seed` rim faighinn cuideachd.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
Stiùiridhean gineadh ìomhaighe, cuibhrichte gu 2000 caractar agus sgrìobhte ann an Sìnis no Beurla.
negative_promptroghainneil
Seòrsastring | null
Prompt àicheil a’ sònrachadh susbaint nach eilear ag iarraidh, cuibhrichte gu 500 caractar.
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 4
Àireamh nan ìomhaighean a thèid a ghineadh, eadar 1 agus 4.
image_sizeroghainneil
Seòrsaobject
Bun-roghainnsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Meudan na h-ìomhaighe a chaidh a ghineadh, le àireamh iomlan de phìogsailean eadar 768×768 agus 1440×1440 agus co-mheas taobh bho 1:4 gu 4:1. Sònraich na meudan gu dìreach no tagh ro-shuidheachadh ainmichte, leithid 'square' no 'landscape_16_9'.
enable_prompt_expansionroghainneil
Seòrsaboolean
Bun-roghainntrue
Ath-sgrìobhadh prompt stèidhichte air LLM, a nì malairt eadar ùine giullachd a bharrachd agus toraidhean nas fheàrr le promtaichean goirid.
seedroghainneil
Seòrsainteger | null
Sìol a nì gineadh ath-riochdachail. Le bhith ga shuidheachadh gu None, thèid sìol a thaghadh air thuaiream.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Tionndadh sgrùdaidh sàbhailteachd agus feumaidh a shuidheachadh dheth ùghdarras cunntais. Gun an ùghdarras sin, thèid gach iarrtas a sgrùdadh ge bith dè an suidheachadh; tha true a’ cur an sgrùdaiche an comas.
riatanach Ainm canonical, gabhar ris cuideachd

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/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": 50,
    "usd": "0.05",
    "charged": 50,
    "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
      }
    ],
    "seeds": [
      42
    ],
    "actual_prompt": "A lone samurai standing on the edge of a cliff at twilight, overlooking a vast valley shrouded in mist. The sky burns with deep orange and purple hues from the setting sun, casting long, dramatic shadows. The samurai’s silhouette glows against the horizon, with their sword reflecting a glint of fading light. The overall style is hyper-realistic, cinematic, and moody, with dramatic contrast and atmospheric depth."
  },
  "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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
images
array of object {url, content_type, file_name, file_size, width, height}Ìomhaighean a chaidh a chruthachadh leis a’ mhodail.
seeds
array of integerLuachan sìl a thathar a’ cleachdadh gus na h-ìomhaighean fa leth a ghineadh.
actual_prompt
string | nullAm prompt a thèid a chleachdadh dha-rìribh nuair a tha ath-sgrìobhadh an comas.

Barrachd mhodalan: Teacsa gu Ìomhaigh

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/wan-25-preview/text-to-image.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt