Peke ki ngā ihirangi

Void Video Inpainting

Whakauru

id tauira void-video-inpainting
# 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/void-video-inpainting?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Ngā kōnae pēnei i te tauira: $ 0.10 100 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Ataata ki te Ataata #utility#editing

Ka tango i tētahi mea mai i te ataata me ōna pānga ki te whakaaturanga, mā te whakamahi i tētahi ataata kopare, i tētahi tohutohu kopare kuputuhi rānei

Open model · Ataata

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana

Whakamārama e tohu ana i te āhua o te papamuri ina tangohia te ahanoa.

•e hiahiatia ana video_url
Whakataka he kōnae,

URL ataata pūtake kei roto te ahanoa e whāia ana mō te tango.

taunoa
Whakataka he kōnae,

URL ataata kanohi-tango; ki te ngaro, ka waihanga te taupānga i tētahi kanohi ataata rangitahi mā te pito ataata SAM-3 e whakamahi ana i `mask_prompt`, kātahi ka huri aunoatia ki te quadmask. Mō ngā hua pai, tukuna he quadmask āhua VOID mā ngā uara hina e 4: 255 mō te papamuri ka puritia, 127 mō te rohe pāngia, 63 mō te inaki, 0 mō te ahanoa ka tangohia. Ka whakaaetia hoki ngā kanohi ā-rua, 255 hei pupuri, 0 hei tango.

Arā atu mask_prompt · negative_prompt · num_inference_steps · guidance_scale · strength · num_frames · seed · enable_safety_checker

Tohutohu whāinga-kanohi mā SAM-3 hei waihanga kanohi ataata rangitahi ina kāore he `quad_mask_video_url`. Tautuhia he aha hei kanohi, hei tauira he ahanoa, he tangata rānei hei tango i te ataata pūtake.

taunoa The video is not of a...

Tohutohu tōraro e whakaahua ana i ngā hua kāore e hiahiatia ana, hei ārahi atu i te whakaputanga.

taunoa 30

Tatau hipanga whakakore-haruru. Mā te whakanui ka pai ake te kounga, engari ka tāpiri roanga.

taunoa 1

Te kaha o te arataki kore-whakarōpū.

taunoa 1

Kaha whakakore-haruru; ko 1.0 te whakakore-haruru oti.

taunoa 85

Matapihi whakatau wā e hiahiatia ana, ka whakatikahia e te backend ki tētahi rahi haumaru CogVideoX o 69, 77, 85, ..., 197. Ka kōwhiria te rahi tata hei urutau ki te kōpeketanga wā me te papaki.

Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua.

POST /run/void-video-inpainting?wait=20 utu → $ 0.10
# 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/void-video-inpainting?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Void Video Inpainting

Ka tango i `video_url` me tētahi `prompt` e whakaahua ana i te papamuri e hiahiatia ana. Homai `quad_mask_video_url`, tukuna rānei `mask_prompt` kia hangaia he kōpare. Ko ngā mana ko `num_frames` (1-197), `num_inference_steps` (1-50), `guidance_scale`, `strength` me te `enable_pass2_refinement` kōwhiringa, he pōturi ake mō te ōrite ā-wā.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
video_urle hiahiatia ana video
Momourl · video
URL ataata pūtake kei roto te ahanoa e whāia ana mō te tango.
quad_mask_video_urlkōwhiringa
Momourl · video
Taunoa
URL ataata kanohi-tango; ki te ngaro, ka waihanga te taupānga i tētahi kanohi ataata rangitahi mā te pito ataata SAM-3 e whakamahi ana i `mask_prompt`, kātahi ka huri aunoatia ki te quadmask. Mō ngā hua pai, tukuna he quadmask āhua VOID mā ngā uara hina e 4: 255 mō te papamuri ka puritia, 127 mō te rohe pāngia, 63 mō te inaki, 0 mō te ahanoa ka tangohia. Ka whakaaetia hoki ngā kanohi ā-rua, 255 hei pupuri, 0 hei tango.
mask_promptkōwhiringa
Momostring | null
Tohutohu whāinga-kanohi mā SAM-3 hei waihanga kanohi ataata rangitahi ina kāore he `quad_mask_video_url`. Tautuhia he aha hei kanohi, hei tauira he ahanoa, he tangata rānei hei tango i te ataata pūtake.
prompte hiahiatia ana
Momostring
Whakamārama e tohu ana i te āhua o te papamuri ina tangohia te ahanoa.
enable_pass2_refinementkōwhiringa
Momoboolean
Taunoafalse
Whakapainga VOID kōwhiringa, ka pōturi ake te tukatuka mō te taurite wā pai ake pea i ngā topenga roa. Ka whakamahi i te whakapainga haruru warped hei Pass 2, whai muri i Pass 1.
negative_promptkōwhiringa
Momostring
TaunoaThe video is not of a high quality, it has a low resolution. Watermark present in each frame. The background is solid. Strange body and strange trajectory. Distortion.
Tohutohu tōraro e whakaahua ana i ngā hua kāore e hiahiatia ana, hei ārahi atu i te whakaputanga.
num_inference_stepskōwhiringa
Momointeger
Taunoa30
1 – 50
Tatau hipanga whakakore-haruru. Mā te whakanui ka pai ake te kounga, engari ka tāpiri roanga.
guidance_scalekōwhiringa
Momonumber
Taunoa1
0 – 20
Te kaha o te arataki kore-whakarōpū.
strengthkōwhiringa
Momonumber
Taunoa1
0 – 1
Kaha whakakore-haruru; ko 1.0 te whakakore-haruru oti.
seedkōwhiringa
Momointeger | null
Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua.
num_frameskōwhiringa
Momointeger
Taunoa85
1 – 197
Matapihi whakatau wā e hiahiatia ana, ka whakatikahia e te backend ki tētahi rahi haumaru CogVideoX o 69, 77, 85, ..., 197. Ka kōwhiria te rahi tata hei urutau ki te kōpeketanga wā me te papaki.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka whakahohe i ngā tirohanga haumaru mō ngā mea kua whakaputaina.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "void-video-inpainting",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "video_url": "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"
  },
  "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,
    "timings": {}
  },
  "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"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
video
object {url, content_type, file_name, file_size}Ataata hua whai muri i te tangohanga o te ahanoa.
seed
integerTe uara kākano i whakamahia i te whakaputanga.
timings
objectNgā taipitopito wā mō ia wāhanga o te paipa.

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/void-video-inpainting.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt