Saltar al cuntegna

Wan 2.5 Image to Video

Integrar

ID dal model wan-25-preview/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/wan-25-preview/image-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Questa dumonda: $0,75 750 credits API · ≈ ₽80,68 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
Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Video

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, весёлый водитель в кепке, крупные машины, пастельные цвета. 0:00–0:10 приветствие под музыку; 0:10–0:30 песенка: "Машина едет би-би, би-би", "Поезд едет ту-ту, ту-ту". Бодрая детская музыка...

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-аним... Video

Создай 30-секундный обучающий музыкальный ролик для детей 3–5 лет. Тема: транспорт. Яркая 2D-анимация, тот же весёлый водитель в кепке, самолёт. 0:00–0:15 песенка: "Самолёт летит вж-ж-ж, вж-ж-ж"; 0:15–0:25 интерактивная пауза: водитель спрашивает "Как гудит машина?", пауза; 0:25–0:30 финальный...

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 da text che defineschan il moviment giavischà en il video, limitadas a 1500 caracters.

•obligatori image_url
Trametta in datoteca u

Furnir ina URL publica dal maletg u ina data URI base64 per furnir il prim frame dal video.

duration 5 s

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

resolution standard 1080p

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

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/image-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.ru/v1/run/wan-25-preview/image-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",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 Image to Video

Animescha in maletg fix dà da `image_url`, utilisà sco prim frame, suandond in `prompt` da moviment da fin a 1500 caracters. Tscherna 480p, 720p u 1080p ed ina `duration` da 5 u 10 secundas. In `audio_url` opziunal furnescha ina banda sonora e vegn scursanì sche ella è pli lunga che il clip. Expansiun dal prompt, prompt negativ e seed èn sustegnids.

Parameters

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

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Instrucziuns da text che defineschan il moviment giavischà en il video, limitadas a 1500 caracters.
image_urlobligatori image
Tipurl · image
Furnir ina URL publica dal maletg u ina data URI base64 per furnir il prim frame dal video.
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.
resolutionopziunal
Tipenum
Standard1080p
480p720p1080p
Resoluziun dal video d'output: tscherner 480p, 720p u 1080p.
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
Controlla sche in LLM rescriva il prompt.
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/image-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",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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: Maletg a video

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