Peke ki ngā ihirangi

Pixelcut Video Background Removal

Whakauru

id tauira pixelcut/video-background-removal
# 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/pixelcut/video-background-removal?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"
  }'

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

Ngā kōnae pēnei i te tauira: $ 0.22 220 whiwhinga API · ≈ ₽ 23.20 ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Pixelcut Tango Papamuri #transform#utility#rembg

Ka tango i te papamuri o tētahi ataata, ka kaweake kia mārama, ki tētahi tae pūmau rānei, i ngā hōputu maha

Pixelcut · 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 video_url
Whakataka he kōnae,

URL e tohu ana ki te ataata tāuru.

Arā atu background · output_format · background_color
background taunoa transparent

Papamuri mō te putanga: 'transparent', he ingoa tae tatūkē, 'custom' rānei mō tētahi tae i tīpakohia mā te kaiwhiri background_color.

Whakakapi i te whakatakotoranga ataata putanga; ki te kore he tīpakonga mārama, ka whakamahia te kimi aunoa, me webm_vp9 hei taunoa mō te pūataata.

Tae pūmau mō tētahi papamuri ritenga; ka whakamahia anake mēnā ko te tīpakonga papamuri 'custom'.

POST /run/pixelcut/video-background-removal?wait=20 utu → $ 0.22
# 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/pixelcut/video-background-removal?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"
  }'

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

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ō Pixelcut Video Background Removal

Ka tango anga-ki-te-anga i te papamuri o te ataata kei `video_url`. Ka taea e `background` te transparent, black, white, green, blue, magenta, te ritenga rānei mā `background_color`. Kei `output_format` ngā momo webm, mp4, mov, mkv me gif, ā, ko webm_vp9 te taunoa ina mārama.

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 e tohu ana ki te ataata tāuru.
backgroundkōwhiringa
Momoenum
Taunoatransparent
transparentblackwhitegreenbluemagentacustom
Papamuri mō te putanga: 'transparent', he ingoa tae tatūkē, 'custom' rānei mō tētahi tae i tīpakohia mā te kaiwhiri background_color.
background_colorkōwhiringa
Momoobject
Tae pūmau mō tētahi papamuri ritenga; ka whakamahia anake mēnā ko te tīpakonga papamuri 'custom'.
background_color.rkōwhiringa
Momointeger
Taunoa0
0 – 255
background_color.gkōwhiringa
Momointeger
Taunoa0
0 – 255
background_color.bkōwhiringa
Momointeger
Taunoa0
0 – 255
output_formatkōwhiringa
Momoenum
webm_vp9mp4_h264mp4_h265mov_proresksmov_h265mkv_h264mkv_h265mkv_vp9gif
Whakakapi i te whakatakotoranga ataata putanga; ki te kore he tīpakonga mārama, ka whakamahia te kimi aunoa, me webm_vp9 hei taunoa mō te pūataata.
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": "pixelcut/video-background-removal",
  "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": 220,
    "usd": "0.22",
    "charged": 220,
    "refunded": 0
  },
  "input": {
    "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
    }
  },
  "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"
  }
}
Ō 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}Kōnae ataata i hangaia e te tauira.

Ētahi atu tauira: Tango Papamuri

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