Njuolgga sisdollui

Editto

Integrere

Modealla-id editto
# 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/editto?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

Fiillat nugo ovdamearka: 0,405 $ 405 API-kreditta du fiillat mihtiduvvojit ovdal vuodjámis Vuodje dán siiddu alde

Oza API-čoavdaga
Open model Videos video gitta 720p #video-edit#wan-vace

Instrukšuvdnabuktó videoediteren mii ođasmahttá gálduvideo prompta vuođul, rámmá-, fps- ja čoahkkádusheivehemiiguin

Open model · Video

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo

Teakstačilgehusat, mat stivrejit video-ráhkadeami.

•gáibiduvvo video_url
Luoitte fiilla, dahje

Gáldu-video-fiilla URL; bákkolaš inpainting-meannudeamis.

resolution standárda auto

Boađusvideo resolušuvdna.

aspect_ratio standárda auto

Boahtteva video govvaráio.

standárda 81

Boađus-rámmaid lohku, gaskal 81–241.

standárda 0

Interpolation-lohku: 0 guođđá originála rámmaid almmá interpolationa haga; eará árvvut mearridit man galle gaskarámma ráhkaduvvojit daid gaskii.

Viiddiduvvon negative_prompt · sampler · acceleration · video_quality · video_write_mode · frames_per_second · num_inference_steps · guidance_scale · shift · temporal_downsample_factor · seed · match_input_frames_per_second · enable_safety_checker · enable_auto_downsample · return_frames_zip
standárda letterboxing, borders...

Negatiiva bivdda mii geavahuvvo video ráhkadeamis.

sampler standárda unipc

Sampler mii geavahuvvo video ráhkadeamis.

acceleration standárda regular

Inference-jođálmahttin-heivehus, vállje 'none' dahje 'regular': jođálmahttojuvvon meannudeapmi lea mealgat jođáneabbo, muhto boađus sáhttá veahá rievdat.

video_quality standárda high

Boađusvideo kvalitehtadássi.

video_write_mode standárda balanced

Boađusvideo čájehanvuohki.

standárda 16

Ráhkaduvvon video rámma-fárda, mii geavahuvvo dušše go `match_input_frames_per_second` ii leat true; dohkálaš árvvut leat 5–30 rámma sekundas.

standárda 30

Sampling-láhtta lohku, mas guhkit barganáigi addá buoret kvalitehta.

standárda 5

Bivdda-heiveheami fápmu mii stivrejuvvo classifier-free guidance bokte; skálá bajideapmi dagaha ahte ráhkaduvvon govat čuvvot teavstta dárkileappot.

standárda 5

Shift-heivehus mii geavahuvvo video ráhkadeamis.

standárda 0

Video rámma-skipping-fáktor, addon olleslohkon, mas lea automáhtalaš upsampling juohke downsampling-fáktora várás. Geavat 0 jus háliidat ahte temporála downsampling ii leat fámus.

Sádji, mii dahká ráhkadeami reprodukšuvnnalažžan. None bidjan vállje sádji juhkosiid mielde.

POST /run/editto?wait=20 haddemearrádus → 0,405 $
# 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/editto?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Editto birra

Editere dálá videoa `video_url` bokte ja teaksta-`prompt`a jođihemiin. Boađus sáhttá čuovvut inputa rámmámeriid ja rámmafrekvenssa, dahje geavahit `num_frames` (17 gitta 241) ja `frames_per_second` (5 gitta 30). Čoahkkádus lea 240p gitta 720p, aspektaratio sáhttá leat auto, 16:9, 1:1 dahje 9:16, ja rámaid ZIP sáhttá maid máhccat.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
promptgáibiduvvo
Šládjastring
Teakstačilgehusat, mat stivrejit video-ráhkadeami.
negative_prompteaktodáhtolaš
Šládjastring
Standárdaletterboxing, borders, black bars, bright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards
Negatiiva bivdda mii geavahuvvo video ráhkadeamis.
match_input_num_frameseaktodáhtolaš
Šládjaboolean
Standárdafalse
Ráhkaduvvon video rámma-logu gáldu: false geavaha `num_frames`, ja true kopiere sisa-addi video rámma-logu.
num_frameseaktodáhtolaš
Šládjainteger
Standárda81
17 – 241
Boađus-rámmaid lohku, gaskal 81–241.
match_input_frames_per_secondeaktodáhtolaš
Šládjaboolean
Standárdafalse
Ráhkaduvvon video rámma-fárdda gáldu: false geavaha `frames_per_second`, ja true kopiere sisa-addi video rámma-fárdda.
frames_per_secondeaktodáhtolaš
Šládjainteger | null
Standárda16
5 – 30
Ráhkaduvvon video rámma-fárda, mii geavahuvvo dušše go `match_input_frames_per_second` ii leat true; dohkálaš árvvut leat 5–30 rámma sekundas.
seedeaktodáhtolaš
Šládjainteger | null
Sádji, mii dahká ráhkadeami reprodukšuvnnalažžan. None bidjan vállje sádji juhkosiid mielde.
resolutioneaktodáhtolaš
Šládjaenum
Standárdaauto
auto240p360p480p580p720p
Boađusvideo resolušuvdna.
aspect_ratioeaktodáhtolaš
Šládjaenum
Standárdaauto
auto16:91:19:16
Boahtteva video govvaráio.
num_inference_stepseaktodáhtolaš
Šládjainteger
Standárda30
2 – 50
Sampling-láhtta lohku, mas guhkit barganáigi addá buoret kvalitehta.
guidance_scaleeaktodáhtolaš
Šládjanumber
Standárda5
1 – 10
Bivdda-heiveheami fápmu mii stivrejuvvo classifier-free guidance bokte; skálá bajideapmi dagaha ahte ráhkaduvvon govat čuvvot teavstta dárkileappot.
samplereaktodáhtolaš
Šládjaenum
Standárdaunipc
unipcdpm++euler
Sampler mii geavahuvvo video ráhkadeamis.
shifteaktodáhtolaš
Šládjanumber
Standárda5
1 – 15
Shift-heivehus mii geavahuvvo video ráhkadeamis.
video_urlgáibiduvvo video
Šládjaurl · video
Gáldu-video-fiilla URL; bákkolaš inpainting-meannudeamis.
enable_safety_checkereaktodáhtolaš
Šládjaboolean
Standárdafalse
Sihkarvuođakontrolla heivehus, man off-heivehus gáibida kontu autoriseren. Autoriserema haga dárkkistuvvo juohke jearaldat heivehusas beroškeahttá; true aktiveret dárkkisteaddji.
accelerationeaktodáhtolaš
Šládjaenum
Standárdaregular
nonelowregular
Inference-jođálmahttin-heivehus, vállje 'none' dahje 'regular': jođálmahttojuvvon meannudeapmi lea mealgat jođáneabbo, muhto boađus sáhttá veahá rievdat.
video_qualityeaktodáhtolaš
Šládjaenum
Standárdahigh
lowmediumhighmaximum
Boađusvideo kvalitehtadássi.
video_write_modeeaktodáhtolaš
Šládjaenum
Standárdabalanced
fastbalancedsmall
Boađusvideo čájehanvuohki.
num_interpolated_frameseaktodáhtolaš
Šládjainteger
Standárda0
0 – 5
Interpolation-lohku: 0 guođđá originála rámmaid almmá interpolationa haga; eará árvvut mearridit man galle gaskarámma ráhkaduvvojit daid gaskii.
temporal_downsample_factoreaktodáhtolaš
Šládjainteger
Standárda0
0 – 5
Video rámma-skipping-fáktor, addon olleslohkon, mas lea automáhtalaš upsampling juohke downsampling-fáktora várás. Geavat 0 jus háliidat ahte temporála downsampling ii leat fámus.
enable_auto_downsampleeaktodáhtolaš
Šládjaboolean
Standárdafalse
Automáhtalaš rámma-logu heiveheapmi: dán bokte modealla meannuda temporálalaččat downsamplerejuvvon video mii lea heivvolaš guhkkosaš, ja interpolation fas máhcaha originála rámma-logu.
return_frames_zipeaktodáhtolaš
Šládjaboolean
Standárdafalse
Stivre sáddejuvvo go ZIP-arkiiva mas leat buot ráhkaduvvon rámmat; fámus go lea true.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "editto",
  "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": 405,
    "usd": "0.405",
    "charged": 405,
    "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "prompt": "Make it a Pixel Art video.",
    "seed": 42,
    "frames_zip": {
      "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
    }
  },
  "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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}Video-fiila mii lea ráhkaduvvon gova vuođul.
prompt
stringBivdda mii geavahuvvui boađusa ráhkadeapmái.
seed
integerRáhkadeamis geavahuvvon sádjiárvu.
frames_zip
object {url, content_type, file_name, file_size} | nullZIP-arkiiva mas leat buot video-rámmat, mii sáddejuvvo jus lea bivdojuvvon.

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/editto.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt