Saltar al cuntegna

Wan 2.7 Reference to Video

Integrar

ID dal model wan/v2.7/reference-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/reference-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"

Datotecas sco l'exempel: $0,50 500 credits API tias datotecas vegnan mesiradas avant l'execuziun Lantschar sin questa pagina

Obtegna ina clav API
Alibaba Referenza a video Inputs da referenzaLipsync2–10 sfin a 1080p #stylized#transform

Crea videos che mantegnan ils objects dals maletgs u las sequenzas da referenza, cun opziuns per plirs objects e plirs shots

Fatg sin Doitong

Ovras publicas fatgas cun Wan27 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

Descripziun dal video da crear, limitada a 5000 caracters.

duration 5 s

Durada dal video generà, en secunda, da 2 fin 10.

aspect_ratio standard 16:9

Relaziun d'aspect dal video final.

resolution standard 1080p

Nivel da resoluziun dal video final.

Avanzà negative_prompt · images · reference_video_urls · seed · multi_shots · enable_safety_checker

Cuntengut che il video duai excluder, limità a 500 caracters.

reference_image_urls
Trametta in datoteca u

URLs da maletgs che defineschan l'apparientscha da caracters u objects; mintga datoteca è limitada a 20 MB. Per generar plirs subjects, furnescha plirs maletgs da referenza.

Trametta in datoteca u

URLs da videos che defineschan l'apparientscha e il moviment da caracters u objects; plirs videos permettan la generaziun cun plirs subjects. Mintga datoteca dastga avair maximalmain 100 MB e 30 secunda.

Seed casual che permetta resultats reproducibels, da 0 fin 2147483647.

POST /run/wan/v2.7/reference-to-video?wait=20 calculaziun → $0,50
# 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/reference-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.7 Reference to Video

Generescha in video cun in prompt da text obligatoric plus maletgs da referenza (`reference_image_urls`) e videos da referenza (`reference_video_urls`) che transmettan l'apparientscha d'in caracter u object. Pliras referenzas pon vegnir cumbinadas per scenas cun plirs objects. Tscherna tranter tschintg formats, 720p u 1080p, e 2 fin a 10 secundas. Imposta `multi_shots` a true per divider il resultat en plirs shots empè d'ina presa cuntinuada.

Parameters

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

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
Descripziun dal video da crear, limitada a 5000 caracters.
reference_image_urlsopziunal images
Tipurl[] · image
URLs da maletgs che defineschan l'apparientscha da caracters u objects; mintga datoteca è limitada a 20 MB. Per generar plirs subjects, furnescha plirs maletgs da referenza.
reference_video_urlsopziunal
Tipurl[] · video
URLs da videos che defineschan l'apparientscha e il moviment da caracters u objects; plirs videos permettan la generaziun cun plirs subjects. Mintga datoteca dastga avair maximalmain 100 MB e 30 secunda.
negative_promptopziunal
Tipstring | null
Cuntengut che il video duai excluder, limità a 500 caracters.
aspect_ratioopziunal
Tipenum
Standard16:9
16:99:161:14:33:4
Relaziun d'aspect dal video final.
resolutionopziunal
Tipenum
Standard1080p
720p1080p
Nivel da resoluziun dal video final.
durationopziunal
Tipenum
Standard5
2345678910
Durada dal video generà, en secunda, da 2 fin 10.
multi_shotsopziunal
Tipboolean
Standardfalse
Controlla da la segmentaziun da las scenas: il standard false producescha ina scena cuntinua, entant che true activa la segmentaziun intelligenta en pliras scenas.
seedopziunal
Tipinteger | null
Seed casual che permetta resultats reproducibels, da 0 fin 2147483647.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
Moderaziun da l'input e l'output, applitgada a mintga dumonda, nun che il conto saja autorisà da la deactivar e l'opziun saja deactivada.
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/v2.7/reference-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": 500,
    "usd": "0.50",
    "charged": 500,
    "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"
  }
}
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 producida da la generaziun.
seed
integerValur da seed applitgada durant la generaziun.
actual_prompt
string | nullPrompt applitgà effectivamain cura che la rescrittira dal prompt era activada.

Dapli models: Referenza a video

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