API Reference

Health

Infrastructure health check (API, RunPod config, R2 config).

Endpoint

GET /health

Example Request

curl -X GET https://api.removebgvideo.com/health

Response

FieldDescription
statushealthy or degraded
checks.apiAPI process status
checks.runpod_configuredRunPod API and endpoint configuration state
checks.r2_configuredObject storage configuration state

API Contract Notes

  • All clients should handle non-2xx responses as structured error payloads.
  • Use explicit JSON schema validation for request payloads on your side.
  • Treat output_url as an asynchronous artifact and not an immediate response contract.
  • Persist job lifecycle state transitions for auditing and support.

Integration Verification

CheckHow to Verify
AuthenticationCall endpoint with valid and invalid key, confirm 200 vs 401
Rate limitsBurst test and confirm 429 handling with backoff
IdempotencyRetry same request and verify no duplicate side effects
ObservabilityConfirm request_id/job_id appears in logs and dashboards

Health Monitoring

SignalAlert Threshold
Health endpoint downtime> 2 consecutive failures
Job failure rate> baseline + agreed error budget
Processing latency p95> SLO for 15+ minutes