Neidio i'r cynnwys

Wan 2.5 Text to Image

Integreiddio

ID y model 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"

Y cais hwn: $0.05 50 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API

Wan 2.5 text-to-image gyda phromptiau Tsieinëeg a Saesneg a hyd at bedair delwedd fesul galwad

Wedi'i wneud ar Doitong

Gwaith cyhoeddus a wnaed gyda Wan 2.5 gan gymuned Doitong. Ailddefnyddiwch anogwr mewn un clic.

Gwaith cyhoeddus wedi'i ddangos: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Fideo

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

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

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

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol

Cyfarwyddiadau cynhyrchu delweddau, wedi'u cyfyngu i 2000 o nodau ac wedi'u hysgrifennu naill ai yn Tsieinëeg neu yn Saesneg.

image_size rhagosodedig square

Dimensiynau'r ddelwedd a gynhyrchir, yn amodol ar gyfanswm cyfrif picseli o 768×768 i 1440×1440 a chymhareb agwedd o 1:4 i 4:1. Nodwch y dimensiynau'n uniongyrchol neu dewiswch ragosodiad a enwir, megis 'square' neu 'landscape_16_9'.

num_images rhagosodedig 1

Nifer y delweddau a gynhyrchir, rhwng 1 a 4.

Uwch negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

Anogiad negyddol sy'n nodi cynnwys annymunol, wedi'i gyfyngu i 500 nod.

Hadau sy'n gwneud cynhyrchu'n atgynhyrchadwy. Mae ei osod i None yn dewis hedyn ar hap.

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

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Wan 2.5 Text to Image

Yn cynhyrchu delweddau o `prompt` testun hyd at 2000 nod yn Tsieinëeg neu Saesneg. Mae `num_images` yn amrywio o 1 i 4 ac mae `image_size` yn derbyn rhagosodiadau neu ddimensiynau penodol, gyda chyfanswm picseli rhwng 768x768 a 1440x1440. Mae ehangu anogiad, sy'n ailysgrifennu'r anogiad gyda LLM, ymlaen yn rhagosodedig. Mae `negative_prompt` a `seed` ar gael hefyd.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
Cyfarwyddiadau cynhyrchu delweddau, wedi'u cyfyngu i 2000 o nodau ac wedi'u hysgrifennu naill ai yn Tsieinëeg neu yn Saesneg.
negative_promptdewisol
Mathstring | null
Anogiad negyddol sy'n nodi cynnwys annymunol, wedi'i gyfyngu i 500 nod.
num_imagesdewisol num_outputs
Mathinteger
Rhagosodedig1
1 – 4
Nifer y delweddau a gynhyrchir, rhwng 1 a 4.
image_sizedewisol
Mathobject
Rhagosodedigsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Dimensiynau'r ddelwedd a gynhyrchir, yn amodol ar gyfanswm cyfrif picseli o 768×768 i 1440×1440 a chymhareb agwedd o 1:4 i 4:1. Nodwch y dimensiynau'n uniongyrchol neu dewiswch ragosodiad a enwir, megis 'square' neu 'landscape_16_9'.
enable_prompt_expansiondewisol
Mathboolean
Rhagosodedigtrue
Ailysgrifennu anogiadau yn seiliedig ar LLM, sy'n cyfnewid amser prosesu ychwanegol am ganlyniadau gwell gydag anogiadau byr.
seeddewisol
Mathinteger | null
Hadau sy'n gwneud cynhyrchu'n atgynhyrchadwy. Mae ei osod i None yn dewis hedyn ar hap.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Switsh gwirio diogelwch y mae ei osodiad diffodd yn gofyn am awdurdodiad cyfrif. Heb yr awdurdodiad hwnnw, caiff pob cais ei wirio waeth beth fo'r gosodiad; mae true yn galluogi'r gwiriwr.
gofynnol Enw canonaidd, derbyniol hefyd

Allbwn

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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size, width, height}Delweddau a gynhyrchir gan y model.
seeds
array of integerGwerthoedd hadau a ddefnyddir i gynhyrchu'r delweddau unigol.
actual_prompt
string | nullYr anogiad a ddefnyddir mewn gwirionedd pan fo ailysgrifennu wedi'i alluogi.

Mwy o fodelau: Testun i Ddelwedd

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/wan-25-preview/text-to-image.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt