Choose Your Approach
There are two main ways to remove backgrounds from videos:🛠️ SDK Method
Best for: Complete workflows, video composition
Language: Node.js, Python
Features: Automatic error handling, progress tracking
🌐 Direct API
Best for: Simple scripts, custom integrations
Language: Any (HTTP requests)
Features: Full control, webhook integration
SDK Method (Recommended)
The easiest way to get started with background removal:- Node.js
- Python
SDK Features
- Automatic Error Handling: SDK catches and explains common errors
- Progress Tracking: Optional callbacks for processing status
- Format Selection: Easy format configuration
- File Management: Handles uploads and downloads automatically
Direct API Method
For custom integrations and maximum control:URL Workflow
Perfect when your videos are already hosted online:1
Create Job from URL
uploaded status (ready to process)2
Start Processing
3
Monitor & Download
completed, then download from provided URLsReal-time Notifications with Webhooks
Instead of polling the status endpoint, get instant notifications when processing completes:File Upload Workflow
For local video files:1
Create Job
2
Upload Video
3
Start Processing
4
Monitor & Download
completed, then download from provided URLsComplete Examples
- cURL - URL Workflow
- cURL - File Upload Workflow
- Node.js SDK - URL Workflow
- Node.js SDK - File Workflow
- Python SDK - URL Workflow
- Python SDK - File Workflow
Error Handling
Common Issues
- Insufficient Credits
- Invalid API Key
- File Too Large
API-Specific Errors
Background Options with cURL
Here are the correct cURL commands for different background types:- Color Backgrounds
- Transparent Backgrounds
Format Selection
Choose the format that best fits your workflow:
Note: For detailed technical usage of each format, see the Output Formats Guide.
Performance Tips
For Large Files
- Use URL workflow for files >100MB
- Process long videos in segments
- Consider reducing resolution before processing
For Batch Processing
- Process videos sequentially, not in parallel
- Implement retry logic for network issues
- Monitor credit usage to avoid depletion
For Production Use
- Use webhooks for real-time notifications (see above)
- Use background threads for processing
- Implement proper error handling and retry logic
- Store job IDs for status tracking
- Monitor your credit usage and balance
What’s Next?
🎨 Add Custom Backgrounds
Layer your transparent video with colors, images, or videos
📖 Output Formats Guide
Technical details for using different transparent video formats
