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'])