Saltar al cuntegna

Wan 2.5 Text to Video

Integrar

ID dal model wan-25-preview/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-25-preview/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"

Questa dumonda: $0,75 750 credits API Lantschar sin questa pagina

Obtegna ina clav API

Fatg sin Doitong

Ovras publicas fatgas cun Wan 2.5 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 per la generaziun da video, limitadas a 1500 caracters e scrittas en chinais u englais.

duration 5 s

Lunghezza dal video d'output, tschernibla sco 5 u 10 secundas.

aspect_ratio standard 16:9

Quotiant d'aspect per il video output.

resolution standard 1080p

Nivel da resoluziun dal video.

Avanzà negative_prompt · audio · seed · enable_prompt_expansion · enable_safety_checker

Prompt negativ che inditgescha il cuntegnair betg giavischà, limità a 500 caracters.

audio_url
Trametta in datoteca u

Musica da fund furnida tras ina URL publica d'audio, en format WAV u MP3, cun ina durada da 3 fin 30 s e betg pli gronda che 15 MB. La durada elegida da 5 u 10 secundas determinescha il tagl: l'audio surpiglià vegn eliminà, entant che ina pista pli curta lascha il rest dal video senza tun. Per exempel, 3 secundas d'audio cun in video da 5 secundas dattan tun durant las emprimas 3 secundas e silenzi durant las ultimas 2 secundas.

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

POST /run/wan-25-preview/text-to-video?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-25-preview/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"

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

Crea in video d'in `prompt` textual da fin a 1500 caracters, en chinais u englais. La proporziun d'aspect po esser 16:9, 9:16 u 1:1, la resoluziun 480p, 720p u 1080p, e `duration` 5 u 10 secundas. In `audio_url` opziunal definescha musica da fund, scursanida a la durada dal clip. Sustegna l'expansiun dal prompt, `negative_prompt` e `seed`.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Instrucziuns per la generaziun da video, limitadas a 1500 caracters e scrittas en chinais u englais.
audio_urlopziunal audio
Tipurl · audio
Musica da fund furnida tras ina URL publica d'audio, en format WAV u MP3, cun ina durada da 3 fin 30 s e betg pli gronda che 15 MB. La durada elegida da 5 u 10 secundas determinescha il tagl: l'audio surpiglià vegn eliminà, entant che ina pista pli curta lascha il rest dal video senza tun. Per exempel, 3 secundas d'audio cun in video da 5 secundas dattan tun durant las emprimas 3 secundas e silenzi durant las ultimas 2 secundas.
aspect_ratioopziunal
Tipenum
Standard16:9
16:99:161:1
Quotiant d'aspect per il video output.
resolutionopziunal
Tipenum
Standard1080p
480p720p1080p
Nivel da resoluziun dal video.
durationopziunal
Tipenum
Standard5
510
Lunghezza dal video d'output, tschernibla sco 5 u 10 secundas.
negative_promptopziunal
Tipstring | null
Prompt negativ che inditgescha il cuntegnair betg giavischà, limità a 500 caracters.
enable_prompt_expansionopziunal
Tipboolean
Standardtrue
Rescrittira dal prompt basada sin LLM, che baratta temp d'elavuraziun supplementar per meglers resultats cun prompts curts.
seedopziunal
Tipinteger | null
Seed che renda la generaziun reproducibla. Cun definir None vegn tschernì in seed casualmain.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
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.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/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": "The white dragon warrior stands still in a grand cathedral-like structure, its glowing golden eyes fixed forward. The camera slowly moves closer, focusing on the warrior's armored chest and face. It then begins to circle around the warrior, capturing the intricate details of the white scale armor with gold accents. The warrior maintains a strong, determined posture. Ambient sounds and soft choral tones fill the background, enhancing the majestic atmosphere. The camera continues its slow circular motion, emphasizing the warrior's heroic presence before ending with a close-up of the face."
  },
  "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, width, height, fps, duration, num_frames}Datoteca video resultanta.
seed
integerValur seed utilisada durant la generaziun.
actual_prompt
string | nullPrompt utilisà effectivamain cura che la rescrittira è activada.

Dapli models: Text a video

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