SDK Reference
Video & Foreground
Run removal and handle transparent foreground assets.
SDK Reference
Run removal and handle transparent foreground assets.
import { RemoveBGVideoClient } from 'removebgvideo-node';
const client = new RemoveBGVideoClient(process.env.REMOVEBGVIDEO_API_KEY!);
const created = await client.createJob({
video_url: 'https://cdn.example.com/input.mp4',
model: 'original',
output_format: 'webm',
bg_type: 'transparent',
auto_start: true,
});
const result = await client.waitForCompletion(created.id);
console.log(result.output_url);from removebgvideo import RemoveBGVideoClient
client = RemoveBGVideoClient(api_key='YOUR_API_KEY')
job = client.create_job(
video_url='https://cdn.example.com/input.mp4',
model='human',
bg_type='transparent',
output_format='webm',
auto_start=True
)
result = client.wait_for_completion(job['id'])
print(result['output_url'])Video & Foreground belongs to the SDK Reference section and covers run removal and handle transparent foreground assets.
The page is written for developers and operators who need predictable video background removal behavior in production, not just a one-off demo request.
Before you promote this workflow, test it with at least one short clip, one longer clip, and one visually difficult clip from your actual product or customer segment.
For support and debugging, persist the original input reference, selected model, output format, credit usage, and final job status alongside your internal user or project id.
| Question | Answer |
|---|---|
| Is Video & Foreground required for every integration? | Use it when the topic affects your setup, quality target, or operational workflow. |
| What should I test before going live? | Verify success, failure, timeout, retry, and insufficient-credit paths with realistic video files and the same output format you plan to ship. |
| How does this connect to the rest of the API? | Most workflows connect upload or source URL handling, job creation, status polling, output retrieval, usage tracking, and operational logging. |