Léim chuig an ábhar

Wan 2.5 Image to Video

Comhtháthú

Aitheantas na samhla wan-25-preview/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/wan-25-preview/image-to-video?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

An t-iarratas seo: $0.75 750 gcreidmheas API · ≈ ₽80.68 Rith ar an leathanach seo

Faigh eochair API
Alibaba Íomhá go Físeán 5–10 ssuas le 1080p

Wan 2.5 íomhá-go-físeán ag 480p go 1080p, 5 nó 10 soicind, le fuaim chúlra roghnach

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
Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Físeán

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, весёлый водитель в кепке, крупные машины, пастельные цвета. 0:00–0:10 приветствие под музыку; 0:10–0:30 песенка: "Машина едет би-би, би-би", "Поезд едет ту-ту, ту-ту". Бодрая детская музыка...

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Físeán

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, тот же весёлый водитель в кепке, самолёт. 0:00–0:15 песенка: "Самолёт летит вж-ж-ж, вж-ж-ж"; 0:15–0:25 интерактивная пауза: водитель спрашивает "Как гудит машина?", пауза; 0:25–0:30 финальный...

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 téacs ina sonraítear an ghluaiseacht atá ag teastáil san fhíseán, teoranta do 1500 carachtar.

•riachtanach image_url
Scaoil comhad, nó

Soláthair URL íomhá atá inrochtana go poiblí nó URI sonraí base64 chun an chéad fhráma den fhíseán a sholáthar.

duration 5 s

Fad aschuir an fhíseáin; is féidir 5 nó 10 soicind a roghnú.

resolution réamhshocrú 1080p

Taifeach aschuir an fhíseáin: roghnaigh 480p, 720p nó 1080p.

Ardleibhéal negative_prompt · audio · seed · enable_prompt_expansion · enable_safety_checker

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

audio_url
Scaoil comhad, nó

Ceol cúlra a sholáthraítear trí URL fuaime atá inrochtana go poiblí, i bhformáid WAV nó MP3, a mhaireann 3 go 30 s agus nach mó ná 15 MB. Cinneann an fad roghnaithe de 5 nó 10 soicind an gearradh: caitear le fuaim bhreise, agus fágtar an chuid eile den fhíseán ina thost má tá an rian níos giorra. Mar shampla, le fuaim 3 shoicind agus físeán 5 shoicind, beidh fuaim ann sa chéad 3 shoicind agus tost sa 2 shoicind dheireanacha.

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/image-to-video?wait=20 luachan → $0.75
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/wan-25-preview/image-to-video?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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 Image to Video

Cruthaíonn sé beochan as íomhá neamhbheo a sholáthraítear trí `image_url` agus a úsáidtear mar an chéad fhráma, de réir leid ghluaiseachta `prompt` suas le 1500 carachtar. Roghnaigh 480p, 720p nó 1080p agus `duration` de 5 nó 10 soicind. Soláthraíonn `audio_url` roghnach fuaimrian, a ghearrtar má tá sé níos faide ná an ghearrthóg. Tacaítear le leathnú leide, leid dhiúltach agus síol.

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 téacs ina sonraítear an ghluaiseacht atá ag teastáil san fhíseán, teoranta do 1500 carachtar.
image_urlriachtanach image
Cineálurl · image
Soláthair URL íomhá atá inrochtana go poiblí nó URI sonraí base64 chun an chéad fhráma den fhíseán a sholáthar.
audio_urlroghnach audio
Cineálurl · audio
Ceol cúlra a sholáthraítear trí URL fuaime atá inrochtana go poiblí, i bhformáid WAV nó MP3, a mhaireann 3 go 30 s agus nach mó ná 15 MB. Cinneann an fad roghnaithe de 5 nó 10 soicind an gearradh: caitear le fuaim bhreise, agus fágtar an chuid eile den fhíseán ina thost má tá an rian níos giorra. Mar shampla, le fuaim 3 shoicind agus físeán 5 shoicind, beidh fuaim ann sa chéad 3 shoicind agus tost sa 2 shoicind dheireanacha.
resolutionroghnach
Cineálenum
Réamhshocrú1080p
480p720p1080p
Taifeach aschuir an fhíseáin: roghnaigh 480p, 720p nó 1080p.
durationroghnach
Cineálenum
Réamhshocrú5
510
Fad aschuir an fhíseáin; is féidir 5 nó 10 soicind a roghnú.
negative_promptroghnach
Cineálstring | null
Leid diúltach ina sonraítear ábhar nach dteastaíonn, teoranta do 500 carachtar.
enable_prompt_expansionroghnach
Cineálboolean
Réamhshocrútrue
Rialaíonn sé an athscríobhann LLM an leid.
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

Glacann paraiméadair chomhaid le URL poiblí https://, URI data: suas le 10 MB, nó file_url uaslódála. Comhaid

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/image-to-video",
  "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": 750,
    "usd": "0.75",
    "charged": 750,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "actual_prompt": "The white dragon warrior stands still in a grand cathedral-like structure, its glowing golden eyes fixed forward. The camera slowly moves closer, focusing on the warrior's armored chest and face. It then begins to circle around the warrior, capturing the intricate details of the white scale armor with gold accents. The warrior maintains a strong, determined posture. Ambient sounds and soft choral tones fill the background, enhancing the majestic atmosphere. The camera continues its slow circular motion, emphasizing the warrior's heroic presence before ending with a close-up of the face."
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Comhad físeáin deiridh.
seed
integerLuach síl a úsáidtear le linn na giniúna.
actual_prompt
string | nullAn leid a úsáidtear i ndáiríre nuair atá an athscríobh cumasaithe.

Tuilleadh samhlacha: Íomhá go Físeán

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