Gå til indhold

Wan Text to Video

Integrer

Model-id wan/v2.7/text-to-video
# 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/v2.7/text-to-video?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"

Denne anmodning: 0,75 $ 750 API-kreditter Kør den på denne side

Hent API-nøgle
Alibaba Tekst til video Lipsync2–15 sop til 1080p #stylized#transform

Tekst-til-video med klip på 2-15 sekunder, fem højde-bredde-forhold og valgfri lyd

Lavet på Doitong

Offentlige værker skabt med Wan27 af Doitong-fællesskabet. Genbrug en prompt med ét klik.

Offentlige værker vist: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... Video

Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video must feel like a real spontaneous phone...

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone vide... Video

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video...

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with na... Video

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with natural acting, realistic lighting and believable facial expressions. All dialogue is spoken naturally in French. **SCENE 1 — EXPENSIVE RESTAURANT, EVENING — 0–5 sec** A young man in his late 20s is...

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

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, c... Video

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, cinematic Christmas short film, high-quality realistic 3D animation. REFERENCE IMAGE — DASHA_001 Use the uploaded image as the exact character reference for Dasha. Preserve her recognizable face,...

Opret en anmodning

Kontrollerne genereres fra modellens skema. Koden og prisen opdateres, når du ændrer dem.

•påkrævet

Beskrivelse af videoen, der skal oprettes, begrænset til 5000 tegn.

duration 5 s

Længden af den genererede video i sekunder, fra 2 til 15.

aspect_ratio standard 16:9

Højde-bredde-forhold for den resulterende video.

resolution standard 1080p

Opløsningsniveau for den resulterende video.

Avanceret negative_prompt · audio · seed · enable_prompt_expansion · enable_safety_checker

Indhold, som videoen ikke skal indeholde, begrænset til 500 tegn.

audio_url
Slip en fil, eller

Valgfri URL til styrende lyd, som erstatter den tilsvarende baggrundsmusik, modellen ellers genererer automatisk. Den angivne fil skal være WAV eller MP3, vare 3–30 sekund og højst være 15 MB.

Tilfældig seed, der muliggør reproducerbare resultater, fra 0 til 2147483647.

POST /run/wan/v2.7/text-to-video?wait=20 pris → 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/v2.7/text-to-video?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"

Kør denne anmodning

Din nøgle forbliver i denne browser: Den sendes kun til Doitong API og gemmes kun i localStorage, hvis du markerer Husk. Hent en API-nøgle

Om Wan Text to Video

Opretter en video ud fra en tekstprompt på op til 5000 tegn. Outputtet er 720p eller 1080p i 16:9, 9:16, 1:1, 4:3 eller 3:4 og varer 2 til 15 sekunder. Du kan angive `audio_url` (WAV eller MP3, 3-30s) til at drive klippet; uden den genererer modellen passende baggrundsmusik. En negativ prompt og promptudvidelse er tilgængelige.

Parametre

Send enten det kanoniske navn eller det oprindelige navn, ikke begge. Kanoniske navne

NavnType StandardTilladt Beskrivelse
promptpåkrævet
Typestring
Beskrivelse af videoen, der skal oprettes, begrænset til 5000 tegn.
audio_urlvalgfri audio
Typeurl · audio
Valgfri URL til styrende lyd, som erstatter den tilsvarende baggrundsmusik, modellen ellers genererer automatisk. Den angivne fil skal være WAV eller MP3, vare 3–30 sekund og højst være 15 MB.
aspect_ratiovalgfri
Typeenum
Standard16:9
16:99:161:14:33:4
Højde-bredde-forhold for den resulterende video.
resolutionvalgfri
Typeenum
Standard1080p
720p1080p
Opløsningsniveau for den resulterende video.
durationvalgfri
Typeenum
Standard5
23456789101112131415
Længden af den genererede video i sekunder, fra 2 til 15.
negative_promptvalgfri
Typestring | null
Indhold, som videoen ikke skal indeholde, begrænset til 500 tegn.
enable_prompt_expansionvalgfri
Typeboolean
Standardtrue
Aktiverer intelligent omskrivning af prompten.
seedvalgfri
Typeinteger | null
Tilfældig seed, der muliggør reproducerbare resultater, fra 0 til 2147483647.
enable_safety_checkervalgfri
Typeboolean
Standardtrue
Moderering af både input og output, håndhævet ved hver anmodning, medmindre kontoen er autoriseret til at deaktivere den, og indstillingen er slået fra.
påkrævet Kanonisk navn, også accepteret

Filparametre accepterer en offentlig https://-URL, en data:-URI på op til 10 MB eller file_url fra en upload. Filer

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.7/text-to-video",
  "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "actual_prompt": "string"
  },
  "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"
  }
}
Dine filer, dit valgHver outputs[].url er en kopi på vores lagring: gemt for altid (betales pr. GB-måned) eller 7 dage gratis, afhængigt af din kontoindstilling eller ?storage=.
Samme struktur for alle modellertype, url, content_type, width, height og duration for billeder, video og lyd. output er modellens eget resultatobjekt.
Outputfelter
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Videofil produceret ved generering.
seed
integerSeed-værdi anvendt under generering.
actual_prompt
string | nullDen prompt, der faktisk blev anvendt, da promptomskrivning var aktiveret.

Flere modeller: Tekst til video

Til AI-agenter: Denne side som Markdown findes på https://doitong.com/da/developers/models/wan/v2.7/text-to-video.md. Alle modeller og vejledninger: https://doitong.com/developers/llms.txt