Léim chuig an ábhar

Wan 3.0 Image to Video

Comhtháthú

Aitheantas na samhla alibaba/wan-3.0/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/alibaba/wan-3.0/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The hummingbird hovers in place with blurred wings, sips from the flower, then darts out of frame as the camera slowly racks focus to dew drops on the leaves.",
    "resolution": "480p",
    "duration": 5,
    "generate_audio": false,
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_8d2gi6xieif0cf518mbnx752/0-MBac_P_HYvIYfHDIWeUvA_IRELThrq.png"
  }'

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

An t-iarratas seo: $0.25 250 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API
Alibaba Íomhá go Físeán Fuaim dhúchasach2–30 ssuas le 1080p #audio#first-last-frame#long-clips

Beochann sé fráma tosaigh, más mian i dtreo fráma dheireanaigh, ina ghearrthóg Wan 3.0 2 go 30 soicind le fuaim.

Samplaí

Ionchur
Aschur · ~187 s

LeidThe hummingbird hovers in place with blurred wings, sips from the flower, then darts out of frame as the camera slowly racks focus to dew drops on the leaves.

5 s480p$0.25 · 250 gcreidmheas API

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.

158 / 20000

Cur síos téacs ar an ngluaiseacht atá le giniúint.

•riachtanach start_image_url
Scaoil comhad, nó

Íomhá a úsáidtear mar fhráma tosaigh an fhíseáin aschuir.

resolution

Sraith taifigh don fhíseán deiridh.

aspect_ratio réamhshocrú adaptive

Cóimheas gné an aschuir, le roghnú oiriúnaitheach ar fáil.

Fad an aschuir: cumasaíonn null fad cliste bunaithe ar an leid agus ar na meáin tagartha; murach sin, sonraíonn an luach soláthraithe soicindí.

Ardleibhéal end_image · seed · enable_prompt_expansion · enable_thinking
end_image_url
Scaoil comhad, nó

Íomhá a úsáidtear mar fhráma deiridh an fhíseáin aschuir; ní mór start_image_url a sholáthar freisin.

POST /run/alibaba/wan-3.0/image-to-video?wait=20 luachan → $0.25
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/alibaba/wan-3.0/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "The hummingbird hovers in place with blurred wings, sips from the flower, then darts out of frame as the camera slowly racks focus to dew drops on the leaves.",
    "resolution": "480p",
    "duration": 5,
    "generate_audio": false,
    "image": "https://content.doitong.com/dev-api/2026/10/21/req_8d2gi6xieif0cf518mbnx752/0-MBac_P_HYvIYfHDIWeUvA_IRELThrq.png"
  }'

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

Tosaíonn Wan 3.0 image-to-video le d’íomhá agus is féidir deireadh a chur leis an dara híomhá, le fuaim ghinte de réir réamhshocraithe. Tá an leid roghnach. Gearrthóga 2 go 30 soicind ag 480p, 720p nó 1080p, le cóimheas gné oiriúnaitheach nó seasta agus céim réasúnaithe roghnach le haghaidh gluaiseachta casta.

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
promptroghnach
Cineálstring | null
≤ 20,000 gcarachtar
Cur síos téacs ar an ngluaiseacht atá le giniúint.
resolutionroghnach
Cineálenum
Réamhshocrú1080p
480p720p1080p
Sraith taifigh don fhíseán deiridh.
aspect_ratioroghnach
Cineálenum
Réamhshocrúadaptive
adaptive16:94:31:13:49:16
Cóimheas gné an aschuir, le roghnú oiriúnaitheach ar fáil.
durationroghnach
Cineálinteger | null
Réamhshocrú5
2 – 30
Fad an aschuir: cumasaíonn null fad cliste bunaithe ar an leid agus ar na meáin tagartha; murach sin, sonraíonn an luach soláthraithe soicindí.
audioroghnach generate_audio
Cineálboolean
Réamhshocrútrue
Rialaíonn sé cibé acu an gcuirtear fuaim ginte san áireamh.
enable_prompt_expansionroghnach
Cineálboolean
Réamhshocrútrue
Rialaigh cibé acu an n-athscríobhtar an leid go cliste roimh an nginiúint. Bí ag súil le laghdú dóchúil ar cháilíocht má dhíchumasaíonn tú an t-athscríobh, mar mhalairt ar thart ar 20–60 soicind níos lú folaigh.
enable_thinkingroghnach
Cineálboolean
Réamhshocrúfalse
Cumasaíonn sé réasúnú breise sula dtosaíonn an ghiniúint.
seedroghnach
Cineálinteger | null
0 – 2,147,483,647
start_image_urlriachtanach image
Cineálurl · image
Íomhá a úsáidtear mar fhráma tosaigh an fhíseáin aschuir.
end_image_urlroghnach end_image
Cineálurl · image
Íomhá a úsáidtear mar fhráma deiridh an fhíseáin aschuir; ní mór start_image_url a sholáthar freisin.
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": "alibaba/wan-3.0/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": 250,
    "usd": "0.25",
    "charged": 250,
    "refunded": 0
  },
  "input": {
    "prompt": "The fox leaps toward the fireflies and lands softly on the grass",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "duration": 5,
    "resolution": "720p"
  },
  "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,
    "duration": 5,
    "actual_prompt": "string"
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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 a tháirgtear leis an nginiúint.
seed
integerLuach síl a chuirtear i bhfeidhm le linn giniúna.
duration
numberFad an fhíseáin ginte, tomhaiste i soicindí.
actual_prompt
string | null

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

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