Saltar al cuntegna

Wan-2.1 Text-to-Video

Integrar

ID dal 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"

Questa dumonda: $0,40 400 credits API Lantschar sin questa pagina

Obtegna ina clav API
Alibaba Text a video fin a 720p #text-to-video#motion

Wan 2.1 text-to-video cun output da 480p fin 720p, format vertical u orizontal e turbo mode opziunal

Fatg sin Doitong

Ovras publicas fatgas cun Wan 2.1 da la communitad Doitong. Reutilisescha in prompt cun in clic.

Ovras publicas mussadas: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... Video

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

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

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

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Instrucziuns textualas che guidan la generaziun video.

resolution standard 720p

Resoluziun dal video d'output: 480p, 580p u 720p.

aspect_ratio standard 16:9

Proporziun dal video d'output, u 16:9 u 9:16.

standard 81

Dumber da frames per la generaziun, da 81 fin 100 inclusiv.

Avanzà negative_prompt · frames_per_second · num_inference_steps · seed · enable_safety_checker · enable_prompt_expansion · turbo_mode
standard bright colors, overex...

Prompt negativ applitgà durant la generaziun d'in video.

standard 16

Frequentaziun da frames dal video generà, en frames per secunda, da 5 fin 24.

standard 30

Dumber da pass da sampling, barattà temp d'elavuraziun pli lung per meglra qualitad cun l'augment dal dumber.

Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.

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

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Wan-2.1 Text-to-Video

Generescha in clip video curt d'in `prompt` textual. La resoluziun po esser 480p, 580p u 720p, e la proporziun d'aspect 16:9 u 9:16. `num_frames` varia da 81 fin 100 e `frames_per_second` da 5 fin 24. Accepta er in `negative_prompt`, in `seed`, expansiun opziunala dal prompt ed in switch `turbo_mode` per process pli svelts.

Parameters

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Instrucziuns textualas che guidan la generaziun video.
negative_promptopziunal
Tipstring
Standardbright 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
Prompt negativ applitgà durant la generaziun d'in video.
num_framesopziunal
Tipinteger | null
Standard81
81 – 100
Dumber da frames per la generaziun, da 81 fin 100 inclusiv.
frames_per_secondopziunal
Tipinteger | null
Standard16
5 – 24
Frequentaziun da frames dal video generà, en frames per secunda, da 5 fin 24.
seedopziunal
Tipinteger | null
Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.
resolutionopziunal
Tipenum
Standard720p
480p580p720p
Resoluziun dal video d'output: 480p, 580p u 720p.
aspect_ratioopziunal
Tipenum
Standard16:9
9:1616:9
Proporziun dal video d'output, u 16:9 u 9:16.
num_inference_stepsopziunal
Tipinteger
Standard30
2 – 40
Dumber da pass da sampling, barattà temp d'elavuraziun pli lung per meglra qualitad cun l'augment dal dumber.
enable_safety_checkeropziunal
Tipboolean
Standardfalse
Interrutur da controlla da segirezza, dal qual la configuraziun spustada pretenda l'autorisaziun dal conto. Senza questa autorisaziun vegn mintga dumonda controllada independentamain da la configuraziun; true activa il controllader.
enable_prompt_expansionopziunal
Tipboolean
Standardfalse
Controlla sche l'expansiun dal prompt è activada.
turbo_modeopziunal
Tipboolean
Standardfalse
Commutader per ina generaziun da video pli svelta. L'activaziun reducescha il temp da generaziun senza perdita visibla da qualitad.
obligatori

Output

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
video
object {url, content_type, file_name, file_size}Datoteca video producida da la generaziun.
seed
integerValur da seed applitgada durant la generaziun.

Dapli models: Text a video

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/wan-t2v.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt