CN8 is an AI gateway: a single proxy layer that gives you access to AI capabilities — chatbots with RAG, multi-agent orchestration, LLM completions, dubbing, TTS, media generation, and production-grade video/audio processing — all through one consistent API with unified auth, billing, and usage tracking.
Per-frame foreground segmentation, then composite subject over white (remove), solid color (hex), or replacement image. Optional trim; audio muxed back; output MP4.
The service decodes the source video (or a trimmed segment if start/end are set), runs a segmentation model on each frame to get an alpha mask, refines the foreground for edges and hair, and composites the subject over the chosen base. Original audio is muxed back; output is H.264/AAC MP4 at the same resolution as the input.
/v1/proxy/studio-backgroundBackground remove/replace (async)
| Name | Type | Required | Description |
|---|---|---|---|
videoUrl | string | required | Direct URL of the source video. |
back_ground | string | optional | Hex colour (#RRGGBB) for solid replacement. Underscore in the field name. |
imageUrl | string | optional | URL of a replacement background image. Takes precedence over back_ground if both are set. |
start | string|number | optional | Trim start (seconds or hh:mm:ss) |
end | string|number | optional | Trim end (seconds or hh:mm:ss) |
{
"status": "accepted",
"message": "Job queued for processing",
"job": { "id": "550e8400-...", "status": "queued", "service": "studio-background" }
}
Poll the job endpoint until completed; then use the output video URL from the result. Billed per second of source (or trimmed) video.