Léim chuig an ábhar

Wan 2.5 Text to Image

Comhtháthú

Aitheantas na samhla 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-iarratas seo: $0.05 50 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API

Téacs-go-íomhá Wan 2.5 le leideanna Sínise agus Béarla agus suas le ceithre íomhá in aghaidh an ghlao

Déanta ar Doitong

Saothair phoiblí déanta leis an Wan 2.5 ag pobal Doitong. Athúsáid leid le clic amháin.

Saothair phoiblí ar taispeáint: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Físeán

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...

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

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

Tóg iarratas

Gintear na rialtáin ó scéim na samhla. Nuashonraítear an cód agus an praghas de réir mar a athraíonn tú iad.

•riachtanach

Treoracha do ghiniúint íomhánna, teoranta do 2000 carachtar agus scríofa i Sínis nó i mBéarla.

image_size réamhshocrú square

Toisí na híomhá ginte, faoi réir líon iomlán picteilíní idir 768×768 agus 1440×1440 agus cóimheas gné ó 1:4 go 4:1. Sonraigh na toisí go díreach nó roghnaigh réamhshocrú ainmnithe, amhail 'square' nó 'landscape_16_9'.

num_images réamhshocrú 1

Líon giniúna na n-íomhánna, idir 1 agus 4.

Ardleibhéal negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

Leid diúltach ina sonraítear ábhar nach dteastaíonn, teoranta do 500 carachtar.

Síol a fhágann giniúint in-atáirgthe. Má shocraítear é go None, roghnaítear síol go randamach.

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

Rith an t-iarratas seo

Fanann d'eochair sa bhrabhsálaí seo: seoltar chuig Doitong API amháin í agus sábháiltear (localStorage) í ach amháin má chuireann tú tic le Meabhraigh. Faigh eochair API

Maidir le Wan 2.5 Text to Image

Gineann sé íomhánna ó `prompt` téacsach suas le 2000 carachtar i Sínis nó i mBéarla. Réimsíonn `num_images` ó 1 go 4 agus glacann `image_size` le réamhshocruithe nó toisí sainráite, le picteilíní iomlána idir 768x768 agus 1440x1440. Tá leathnú leide, a athscríobhann an leid le LLM, cumasaithe de réir réamhshocraithe. Tá `negative_prompt` agus `seed` ar fáil freisin.

Paraiméadair

Seol an t-ainm canónach nó an t-ainm dúchasach, ní an dá cheann. Ainmneacha canónacha

AinmCineál RéamhshocrúCeadaithe Cur síos
promptriachtanach
Cineálstring
Treoracha do ghiniúint íomhánna, teoranta do 2000 carachtar agus scríofa i Sínis nó i mBéarla.
negative_promptroghnach
Cineálstring | null
Leid diúltach ina sonraítear ábhar nach dteastaíonn, teoranta do 500 carachtar.
num_imagesroghnach num_outputs
Cineálinteger
Réamhshocrú1
1 – 4
Líon giniúna na n-íomhánna, idir 1 agus 4.
image_sizeroghnach
Cineálobject
Réamhshocrúsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Toisí na híomhá ginte, faoi réir líon iomlán picteilíní idir 768×768 agus 1440×1440 agus cóimheas gné ó 1:4 go 4:1. Sonraigh na toisí go díreach nó roghnaigh réamhshocrú ainmnithe, amhail 'square' nó 'landscape_16_9'.
enable_prompt_expansionroghnach
Cineálboolean
Réamhshocrútrue
Athscríobh leid bunaithe ar LLM, a mhalartaíonn am próiseála breise ar thorthaí níos fearr le leideanna gearra.
seedroghnach
Cineálinteger | null
Síol a fhágann giniúint in-atáirgthe. Má shocraítear é go None, roghnaítear síol go randamach.
enable_safety_checkerroghnach
Cineálboolean
Réamhshocrútrue
Lascthrealamh seiceála sábháilteachta a éilíonn údarú cuntais nuair atá sé múchta. Gan an t-údarú sin, seiceáiltear gach iarratas beag beann ar an socrú; cumasaíonn true an seiceálaí.
riachtanach Ainm canónach, glactar leis freisin

Aschur

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"
  }
}
Do chuid comhad, do roghaIs cóip ar ár stóráil é gach outputs[].url: coinnithe go deo (íoctha in aghaidh GB-mhí) nó ar feadh 7 lá saor in aisce, de réir shocrú do chuntais nó ?storage=.
An cruth céanna ar gach samhailtype, url, content_type, width, height agus duration, d'íomhánna, d'fhíseáin agus d'fhuaim araon. Is é output réad toraidh na samhla féin.
Réimsí aschuir
images
array of object {url, content_type, file_name, file_size, width, height}Íomhánna a tháirgeann an tsamhail.
seeds
array of integerLuachanna síl a úsáidtear chun na híomhánna aonair a ghiniúint.
actual_prompt
string | nullAn leid a úsáidtear i ndáiríre nuair atá an athscríobh cumasaithe.

Tuilleadh samhlacha: Téacs go hÍomhá

Do ghníomhairí AI: tá an leathanach seo mar Markdown ag https://doitong.com/ga/developers/models/wan-25-preview/text-to-image.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt