Saltar al cuntegna

AnimateDiff · Video to Video

Integrar

ID dal model fast-animatediff/video-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/fast-animatediff/video-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Fin a $4,50 per execuziun pajà tenor l'utilisaziun effectiva, il rest vegn restituì Lantschar sin questa pagina

Obtegna ina clav API
Open model Video a video Svelt #animation#stylized

Restyling AnimateDiff dals emprims 2 fin 4 secundas d’in video d’entrada a partir d’in prompt

Open model · Video

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori

Descriva il maletg che ti vuls generar, cun uschè blers detagls sco pussaivel per ils megliers resultats.

•obligatori video_url
Trametta in datoteca u

URL dal video.

Avanzà negative_prompt · first_n_seconds · num_inference_steps · strength · guidance_scale · fps · seed · enable_safety_checker · motions
standard (bad quality, worst q...

Prompt negativ che specifica detagls dal maletg d'excluder, inclusiv colurs, objects, cuntradas u caracteristicas pli finas. Exempels èn ina mustazza, sfuschadad u ina resoluziun bassa.

standard 3

Durada en secundas da l'animaziun, cumenzando al cumenzament dal video.

standard 25

Dumber da pass d'inferenzia da manar a fin.

standard 0.7

Grad d'influenza dal video d'input sin il resultat final.

standard 7.5

Furza d'aderenza al prompt per la selecziun dal maletg, exprimida sco CFG (Classifier Free Guidance).

standard 8

Ritmus d'extracziun da frames dal video, en frames per secunda.

Seed per reproducir maletgs en Stable Diffusion. In maletg po vegnir reproducì exactamain en mintga execuziun sche la versiun dal model, il prompt ed il seed restan invariads.

Moviments applitgads al video.

POST /run/fast-animatediff/video-to-video?wait=20 calculaziun → $4,50
# 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/fast-animatediff/video-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "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.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 AnimateDiff · Video to Video

Reanimescha `video_url` tenor in `prompt`, utilisond mo ils emprims `first_n_seconds` (2 fin 4, standard 3). `strength` da 0 fin 1 fixescha quant che il video da funtauna resta visibel. Accepta er `motions`, `negative_prompt`, `guidance_scale`, `fps` fin a 16 e fin a 50 pass d’inferenza.

Parameters

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

NumTip StandardPermess Descripziun
video_urlobligatori video
Tipurl · video
URL dal video.
first_n_secondsopziunal
Tipinteger
Standard3
2 – 4
Durada en secundas da l'animaziun, cumenzando al cumenzament dal video.
promptobligatori
Tipstring
Descriva il maletg che ti vuls generar, cun uschè blers detagls sco pussaivel per ils megliers resultats.
negative_promptopziunal
Tipstring
Standard(bad quality, worst quality:1.2), ugly faces, bad anime
Prompt negativ che specifica detagls dal maletg d'excluder, inclusiv colurs, objects, cuntradas u caracteristicas pli finas. Exempels èn ina mustazza, sfuschadad u ina resoluziun bassa.
num_inference_stepsopziunal
Tipinteger
Standard25
1 – 50
Dumber da pass d'inferenzia da manar a fin.
strengthopziunal
Tipnumber
Standard0.7
0 – 1
Grad d'influenza dal video d'input sin il resultat final.
guidance_scaleopziunal
Tipnumber
Standard7.5
0 – 20
Furza d'aderenza al prompt per la selecziun dal maletg, exprimida sco CFG (Classifier Free Guidance).
seedopziunal
Tipinteger | null
Seed per reproducir maletgs en Stable Diffusion. In maletg po vegnir reproducì exactamain en mintga execuziun sche la versiun dal model, il prompt ed il seed restan invariads.
fpsopziunal
Tipinteger
Standard8
1 – 16
Ritmus d'extracziun da frames dal video, en frames per secunda.
motionsopziunal
Tipenum[]
Moviments applitgads al video.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
La controlla po vegnir schluccada cun definir false, premess che l'appelant saja autorisà.
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": "fast-animatediff/video-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": 4500,
    "usd": "4.50",
    "charged": 4500,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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.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}Datoteca video resultanta.
seed
integerSem duvrà durant la generaziun dal video.

Dapli models: Video a video

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