Op den Inhalt sprangen

Wan-2.1 Text-to-Video with LoRAs

Integréieren

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

Dës Ufro: 0,75 $ 750 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Alibaba Text zu Video bis zu 720p #"text-to-video"#"motion"#"lora"

Wan 2.1 text-to-video mat Ënnerstëtzung fir personaliséiert LoRA-Gewiichter, Turbo-Modus an optionaler Ëmdréiung

Op Doitong erstallt

Ëffentlech Wierker, déi d'Doitong-Communautéit mat Wan-2.1 Text-to-Video with LoRAs erstallt huet. Benotz e Prompt mat engem Klick nach eng Kéier.

Ëffentlech Wierker ugewisen: 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

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

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Textinstruktiounen, déi d'Video-Generatioun steieren.

resolution Standard 480p

Opléisung vum Output-Video: 480p, 580p oder 720p.

aspect_ratio Standard 16:9

Aspektverhältnis vum Output-Video, entweder 16:9 oder 9:16.

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

Negative Prompt bei der Generatioun vun engem Video.

Standard 81

Framezuel fir d'Generatioun, vun 81 bis inklusiv 100.

Standard 16

Frame-Rate vum generéierte Video a Frames pro Sekonn, vun 5 bis 24.

Standard 30

Unzuel vun de Sampling-Schrëtt; méi Schrëtt bedeite méi laang Veraarbechtung, awer besser Qualitéit.

Seed, deen d'Generatioun reproduzéierbar mécht. Wann et op None gesat gëtt, gëtt e Seed zoufälleg gewielt.

Standard []

LoRA-Gewiichter, déi während der Inferenz applizéiert ginn.

POST /run/wan-t2v-lora?wait=20 Präis → 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"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Wan-2.1 Text-to-Video with LoRAs

Generéiert e Video aus engem Text-`prompt` a benotzt personaliséiert LoRAen, déi an `loras` opgezielt sinn. D'Opléisung ass 480p, 580p oder 720p, mat engem Bildverhältnis vun 16:9 oder 9:16. `num_frames` geet vun 81 bis 100 an `frames_per_second` vun 5 bis 24. `turbo_mode` ass standardméisseg aktiv, an `reverse_video` spillt d'Resultat réckleefeg of.

Parameteren

NummTyp StandardErlaabt Beschreiwung
promptobligatoresch
Typstring
Textinstruktiounen, déi d'Video-Generatioun steieren.
negative_promptoptional
Typstring
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
Negative Prompt bei der Generatioun vun engem Video.
num_framesoptional
Typinteger | null
Standard81
81 – 100
Framezuel fir d'Generatioun, vun 81 bis inklusiv 100.
frames_per_secondoptional
Typinteger | null
Standard16
5 – 24
Frame-Rate vum generéierte Video a Frames pro Sekonn, vun 5 bis 24.
seedoptional
Typinteger | null
Seed, deen d'Generatioun reproduzéierbar mécht. Wann et op None gesat gëtt, gëtt e Seed zoufälleg gewielt.
resolutionoptional
Typenum
Standard480p
480p580p720p
Opléisung vum Output-Video: 480p, 580p oder 720p.
aspect_ratiooptional
Typenum
Standard16:9
9:1616:9
Aspektverhältnis vum Output-Video, entweder 16:9 oder 9:16.
num_inference_stepsoptional
Typinteger
Standard30
2 – 40
Unzuel vun de Sampling-Schrëtt; méi Schrëtt bedeite méi laang Veraarbechtung, awer besser Qualitéit.
enable_safety_checkeroptional
Typboolean
Standardfalse
Sécherheetskontrollschalter, deem seng ausgeschalt Astellung d'Autorisatioun vum Kont erfuerdert. Ouni dës Autorisatioun gëtt all Ufro onofhängeg vun der Astellung kontrolléiert; true aktivéiert d'Kontroll.
enable_prompt_expansionoptional
Typboolean
Standardfalse
Steiert, ob d'Prompt-Erweiderung aktivéiert ass.
turbo_modeoptional
Typboolean
Standardtrue
Schalter fir méi séier Video-Generatioun. D'Aktivéierung verkierzt d'Generatiounszäit ouni bemierkbare Verloscht u visueller Qualitéit.
lorasoptional
Typobject[]
Standard[]
LoRA-Gewiichter, déi während der Inferenz applizéiert ginn.
loras[].pathobligatoresch
Typstring
Plaz vun de LoRA-Gewiichter, uginn als URL oder Pad.
loras[].weight_nameoptional
Typstring | null
LoRA-Gewiichtsnumm, nëmmen erfuerderlech, wann e Hugging Face Repository méi wéi 1 safetensors-Datei enthält. Dësen Numm gëtt nëmme benotzt, wann `path` esou e Repository identifizéiert.
loras[].scaleoptional
Typnumber
Standard1
0 – 4
Multiplikator, deen op d'LoRA-Gewiicht applizéiert gëtt, ier et an de Basismodell zesummegefouert gëtt.
reverse_videooptional
Typboolean
Standardfalse
Video-Reverséierungs-Schalter; true dréint d'Ofspillung ëm.
obligatoresch

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"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
video
object {url, content_type, file_name, file_size}Video-Datei, déi duerch d'Generatioun erstallt gouf.
seed
integerSeed-Wäert, deen während der Generatioun applizéiert gouf.

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/wan-t2v-lora.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt