SDK Reference

Client

Initialize and configure SDK clients.

Official SDK Repositories

SDKRepository
Node.js SDKhttps://github.com/JsonChao/removebgvideo-node
Python SDKhttps://github.com/JsonChao/removebgvideo-python

Node.js Client

import { RemoveBGVideoClient } from 'removebgvideo-node';

const client = new RemoveBGVideoClient(process.env.REMOVEBGVIDEO_API_KEY!);

Python Client

from removebgvideo import RemoveBGVideoClient

client = RemoveBGVideoClient(api_key='YOUR_API_KEY')

Timeouts and Retries

Configure request timeout and retry policy based on your SLA and batch size.

Recommended SDK Usage Pattern

  1. Initialize singleton client per service process.
  2. Wrap SDK calls with your own timeout/retry decorators.
  3. Map SDK/domain errors into internal error taxonomy.
  4. Capture job_id and business context in your tracing system.

SDK Hardening Checklist

  • Add per-call timeout defaults and circuit breaking.
  • Track SDK version in logs for post-incident debugging.
  • Test SDK upgrade in staging with archived production payloads.
  • Implement fallback strategy by model and output format.

Client Lifecycle Management

  • Use one client instance per process where possible.
  • Inject client through service container for testability.
  • Wrap client errors into domain-level exceptions.