Léim chuig an ábhar

Wan 3.0 Text to Video

Comhtháthú

Aitheantas na samhla alibaba/wan-3.0/text-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/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A hummingbird hovers in front of a bright red hibiscus flower in a tropical garden, wings a blur, then darts away as the camera slowly racks focus to dew drops on the leaves. Macro lens, soft morning light, natural ambience.",
    "resolution": "480p",
    "aspect_ratio": "16:9",
    "duration": 5,
    "generate_audio": false
  }'

# 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 Téacs go Físeán Fuaim dhúchasach2–30 ssuas le 1080p #audio#long-clips#1080p

Wan 3.0 de chuid Alibaba, gearrthóga 2 go 30 soicind le fuaim ghinte suas le 1080p.

Samplaí

Aschur · ~205 s

LeidA hummingbird hovers in front of a bright red hibiscus flower in a tropical garden, wings a blur, then darts away as the camera slowly racks focus to dew drops on the leaves. Macro lens, soft morning light, natural ambience.

5 s480p16:9$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.

•riachtanach 224 / 20000

Treoracha téacs ina gcuirtear síos ar an bhfíseán atá le giniúint.

resolution

Sraith taifigh don fhíseán deiridh.

aspect_ratio

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 seed · enable_prompt_expansion · enable_thinking
POST /run/alibaba/wan-3.0/text-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/text-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A hummingbird hovers in front of a bright red hibiscus flower in a tropical garden, wings a blur, then darts away as the camera slowly racks focus to dew drops on the leaves. Macro lens, soft morning light, natural ambience.",
    "resolution": "480p",
    "aspect_ratio": "16:9",
    "duration": 5,
    "generate_audio": false
  }'

# 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 Text to Video

Rindreálann Wan 3.0 seatanna fada comhtháite ó leid, ó 2 suas go 30 soicind, le fuaim ghinte de réir réamhshocraithe. Pleanálann céim réasúnaithe roghnach radhairc chasta, agus bíonn leathnú an leide cumasaithe de réir réamhshocraithe. 480p, 720p nó 1080p i sé chóimheas gné, nó frámaíocht oiriúnaitheach.

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
≤ 20,000 gcarachtar
Treoracha téacs ina gcuirtear síos ar an bhfíseán 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
riachtanach Ainm canónach, glactar leis freisin

Aschur

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "alibaba/wan-3.0/text-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": "A red panda walks through a bamboo forest at sunrise, mist between the stalks, gentle handheld camera",
    "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: Téacs 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/text-to-video.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt