Examples & Integrations
SDK Cookbook
Copy-paste ready SDK patterns for common production workflows.
Examples & Integrations
Copy-paste ready SDK patterns for common production workflows.
import { RemoveBGVideoClient } from 'removebgvideo-node';
const client = new RemoveBGVideoClient(process.env.REMOVEBGVIDEO_API_KEY!);
const created = await client.createJob({
video_url: 'https://cdn.removebgvideo.com/uploads/input.mp4',
model: 'original',
bg_type: 'transparent',
output_format: 'webm',
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.removebgvideo.com/uploads/input.mp4',
model='pro',
bg_type='transparent',
output_format='webm',
auto_start=False
)
client.start_job(
job['id'],
model='pro',
text_prompt='person, staff, glowing ring, clothing accessories'
)
result = client.wait_for_completion(job['id'])
print(result['output_url'])For high volume, enqueue one job per source video and process asynchronously.