Saltar al cuntegna

Wan-2.1 Text-to-Video with LoRAs

Integrar

ID dal model wan-t2v-lora
# 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-lora?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,75 750 credits API Lantschar sin questa pagina

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

Wan 2.1 text-to-video che accepta pais LoRA persunalisads, cun turbo mode e inversiun opziunala

Fatg sin Doitong

Ovras publicas fatgas cun Wan-2.1 Text-to-Video with LoRAs 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 480p

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.

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

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

standard 81

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

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.

standard []

Pes LoRA applitgads durant l'inferenzia.

POST /run/wan-t2v-lora?wait=20 calculaziun → $0,75
# 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-lora?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 with LoRAs

Generes video dad in `prompt` text ed applitgescha las LoRAs persunalizadas inditgadas en `loras`. La resoluziun è 480p, 580p u 720p, cun aspect ratio 16:9 u 9:16. `num_frames` tanscha da 81 fin 100 e `frames_per_second` da 5 fin 24. `turbo_mode` è activ per standard, e `reverse_video` reproducescha il resultat a l'envers.

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
Standard480p
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
Standardtrue
Commutader per ina generaziun da video pli svelta. L'activaziun reducescha il temp da generaziun senza perdita visibla da qualitad.
lorasopziunal
Tipobject[]
Standard[]
Pes LoRA applitgads durant l'inferenzia.
loras[].pathobligatori
Tipstring
Lieu dals pais da LoRA, specificà sco URL u percurs.
loras[].weight_nameopziunal
Tipstring | null
Num dal pais LoRA, necessari mo sche in repositori Hugging Face cuntegna dapli che 1 datoteca safetensors. Quest num vegn utilisà mo, sche `path` identifitgescha in tal repositori.
loras[].scaleopziunal
Tipnumber
Standard1
0 – 4
Multiplicatur applitgà al pais da LoRA avant che quel vegn fusiunà en il model da basa.
reverse_videoopziunal
Tipboolean
Standardfalse
Commutader per volver il video; true volva la reproducziun.
obligatori

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-t2v-lora",
  "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": 750,
    "usd": "0.75",
    "charged": 750,
    "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.

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