Léim chuig an ábhar

Wan-2.1 Text-to-Video

Comhtháthú

Aitheantas na samhla 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"

An t-iarratas seo: $0.40 400 gcreidmheas API Rith ar an leathanach seo

Faigh eochair API
Alibaba Téacs go Físeán suas le 720p #text-to-video#motion

Wan 2.1 téacs-go-físeán le haschur 480p go 720p, portráid nó tírdhreach, agus mód turbo roghnach

Déanta ar Doitong

Saothair phoiblí déanta leis an Wan 2.1 ag pobal Doitong. Athúsáid leid le clic amháin.

Saothair phoiblí ar taispeáint: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Físeán

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

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

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

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 a threoraíonn giniúint físeáin.

resolution réamhshocrú 720p

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

aspect_ratio réamhshocrú 16:9

Cóimheas gnéithe an fhíseáin aschuir, 16:9 nó 9:16.

réamhshocrú 81

Líon frámaí don ghiniúint, ó 81 go 100 go huile.

Ardleibhéal negative_prompt · frames_per_second · num_inference_steps · seed · enable_safety_checker · enable_prompt_expansion · turbo_mode
réamhshocrú bright colors, overex...

Leid dhiúltach a chuirtear i bhfeidhm agus físeán á ghiniúint.

réamhshocrú 16

Ráta frámaí an fhíseáin ghinte i bhfrámaí sa soicind, idir 5 agus 24.

réamhshocrú 30

Líon na gcéimeanna samplála, áit a mhalartaítear am próiseála níos faide ar cháilíocht níos fearr de réir mar a mhéadaíonn an líon.

Síol a fhágann giniúint in-atáirgthe. Má shocraítear é go None, roghnaítear síol go randamach.

POST /run/wan-t2v?wait=20 luachan → $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"

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.1 Text-to-Video

Gineann sé gearrthóg ghearr físeáin ó `prompt` téacsach. Is féidir leis an taifeach a bheith 480p, 580p nó 720p, agus is é an cóimheas gné 16:9 nó 9:16. Réimsíonn `num_frames` ó 81 go 100 agus `frames_per_second` ó 5 go 24. Glacann sé freisin le `negative_prompt`, `seed`, leathnú leide roghnach agus scorán `turbo_mode` le haghaidh rith níos tapúla.

Paraiméadair

AinmCineál RéamhshocrúCeadaithe Cur síos
promptriachtanach
Cineálstring
Treoracha téacs a threoraíonn giniúint físeáin.
negative_promptroghnach
Cineálstring
Réamhshocrúbright 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
Leid dhiúltach a chuirtear i bhfeidhm agus físeán á ghiniúint.
num_framesroghnach
Cineálinteger | null
Réamhshocrú81
81 – 100
Líon frámaí don ghiniúint, ó 81 go 100 go huile.
frames_per_secondroghnach
Cineálinteger | null
Réamhshocrú16
5 – 24
Ráta frámaí an fhíseáin ghinte i bhfrámaí sa soicind, idir 5 agus 24.
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.
resolutionroghnach
Cineálenum
Réamhshocrú720p
480p580p720p
Taifeach aschuir an fhíseáin: 480p, 580p nó 720p.
aspect_ratioroghnach
Cineálenum
Réamhshocrú16:9
9:1616:9
Cóimheas gnéithe an fhíseáin aschuir, 16:9 nó 9:16.
num_inference_stepsroghnach
Cineálinteger
Réamhshocrú30
2 – 40
Líon na gcéimeanna samplála, áit a mhalartaítear am próiseála níos faide ar cháilíocht níos fearr de réir mar a mhéadaíonn an líon.
enable_safety_checkerroghnach
Cineálboolean
Réamhshocrúfalse
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í.
enable_prompt_expansionroghnach
Cineálboolean
Réamhshocrúfalse
Rialaíonn sé an bhfuil leathnú na leide cumasaithe.
turbo_moderoghnach
Cineálboolean
Réamhshocrúfalse
Scorán giniúna físeáin níos tapúla. Laghdaíonn a chumasú am giniúna gan chaillteanas suntasach i gcáilíocht amhairc.
riachtanach

Aschur

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"
  }
}
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}Comhad físeáin a tháirgtear leis an nginiúint.
seed
integerLuach síl a chuirtear i bhfeidhm le linn giniúna.

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/wan-t2v.md. Gach samhail agus treoir: https://doitong.com/developers/llms.txt