Neidio i'r cynnwys

Wan-2.1 Text-to-Video

Integreiddio

ID y model wan-t2v
# 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-t2v?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.40 400 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Alibaba Testun i Fideo hyd at 720p #text-to-video#motion

Wan 2.1 text-to-video gydag allbwn 480p i 720p, portread neu dirwedd, a modd turbo dewisol

Wedi'i wneud ar Doitong

Gwaith cyhoeddus a wnaed gyda Wan 2.1 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 testun sy'n arwain cynhyrchu fideo.

resolution rhagosodedig 720p

Cydraniad fideo allbwn: 480p, 580p neu 720p.

aspect_ratio rhagosodedig 16:9

Cymhareb agwedd y fideo allbwn, naill ai 16:9 neu 9:16.

rhagosodedig 81

Cyfrif fframiau ar gyfer cynhyrchu, rhwng 81 a 100 yn gynhwysol.

Uwch negative_prompt · frames_per_second · num_inference_steps · seed · enable_safety_checker · enable_prompt_expansion · turbo_mode
rhagosodedig bright colors, overex...

Anogiad negyddol a gymhwysir wrth gynhyrchu fideo.

rhagosodedig 16

Cyfradd ffrâm y fideo a gynhyrchir mewn fframiau yr eiliad, rhwng 5 a 24.

rhagosodedig 30

Cyfrif camau samplu, sy'n cyfnewid amser prosesu hirach am ansawdd gwell wrth i'r cyfrif gynyddu.

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

POST /run/wan-t2v?wait=20 dyfynbris → $0.40
# 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-t2v?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.1 Text-to-Video

Yn cynhyrchu clip fideo byr o `prompt` testun. Gall y cydraniad fod yn 480p, 580p neu 720p, a'r gymhareb agwedd yn 16:9 neu 9:16. Mae `num_frames` yn rhedeg o 81 i 100 a `frames_per_second` o 5 i 24. Mae hefyd yn derbyn `negative_prompt`, `seed`, ehangu anogiad dewisol a switsh `turbo_mode` ar gyfer rhediadau cyflymach.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
Cyfarwyddiadau testun sy'n arwain cynhyrchu fideo.
negative_promptdewisol
Mathstring
Rhagosodedigbright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards
Anogiad negyddol a gymhwysir wrth gynhyrchu fideo.
num_framesdewisol
Mathinteger | null
Rhagosodedig81
81 – 100
Cyfrif fframiau ar gyfer cynhyrchu, rhwng 81 a 100 yn gynhwysol.
frames_per_seconddewisol
Mathinteger | null
Rhagosodedig16
5 – 24
Cyfradd ffrâm y fideo a gynhyrchir mewn fframiau yr eiliad, rhwng 5 a 24.
seeddewisol
Mathinteger | null
Hadau sy'n gwneud cynhyrchu'n atgynhyrchadwy. Mae ei osod i None yn dewis hedyn ar hap.
resolutiondewisol
Mathenum
Rhagosodedig720p
480p580p720p
Cydraniad fideo allbwn: 480p, 580p neu 720p.
aspect_ratiodewisol
Mathenum
Rhagosodedig16:9
9:1616:9
Cymhareb agwedd y fideo allbwn, naill ai 16:9 neu 9:16.
num_inference_stepsdewisol
Mathinteger
Rhagosodedig30
2 – 40
Cyfrif camau samplu, sy'n cyfnewid amser prosesu hirach am ansawdd gwell wrth i'r cyfrif gynyddu.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigfalse
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.
enable_prompt_expansiondewisol
Mathboolean
Rhagosodedigfalse
Yn rheoli a yw ehangu'r anogiad wedi'i alluogi.
turbo_modedewisol
Mathboolean
Rhagosodedigfalse
Toglo cynhyrchu fideo cyflymach. Mae ei alluogi'n lleihau'r amser cynhyrchu heb golli ansawdd gweledol amlwg.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-t2v",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
    },
    "seed": 42
  },
  "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.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
video
object {url, content_type, file_name, file_size}Ffeil fideo a gynhyrchir.
seed
integerGwerth hedyn a gymhwysir wrth gynhyrchu.

Mwy o fodelau: Testun i Fideo

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