API for developers

DownMagic API for media automation paid, metered and production-ready

Integrate background removal, conversion and media workflows into your own product with API keys, monthly credits, Stripe billing, usage stats and IP-restricted access.

Customer API keys

Create, rotate, revoke and restrict keys from the dashboard.

Usage credits

Track requests and credits per account and per API key.

IP allowlists

Limit each key to exact IPs or CIDR ranges.

Stripe billing

Checkout, subscriptions and customer portal are built in.

API for developers

API services for your product

Use DownMagic API for background removal, media conversion and downloader workflows with API keys, usage credits, billing and IP restrictions.

Background remover API

Remove image backgrounds and return transparent PNG files through a paid API endpoint.

Media converter API

Convert audio, video and image files through async jobs with metered usage.

Downloader API

Create authorized URL download jobs such as YouTube to MP4 or MP3 with the same worker pipeline.

API documentation with real request examples

Review authentication, API key management, IP restrictions, usage credits, error codes and examples for cURL, JavaScript and Python.

Read API docs
# Remove background API
curl -X POST "https://api.downmagic.com/background/remove" \
  -H "Authorization: Bearer dm_live_your_api_key" \
  -F "[email protected]" \
  --output portrait_downmagic.png

# File converter API
curl -X POST "https://api.downmagic.com/convert" \
  -H "Authorization: Bearer dm_live_your_api_key" \
  -F "[email protected]" \
  -F "outputFormat=mp4" \
  -F "quality=720"

# Authorized downloader API, for example YouTube to MP4
curl -X POST "https://api.downmagic.com/download" \
  -H "Authorization: Bearer dm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.youtube.com/watch?v=VIDEO_ID","outputFormat":"mp4","ownershipConfirmed":true}'

FAQ

Do I need to pay before using the API?

Yes. API keys can only be created and used after an active API subscription, except for internal admin accounts.

Can I restrict API keys by IP?

Yes. Each key can be limited to specific IP addresses or CIDR ranges.

Can I see usage by API key?

Yes. The dashboard shows monthly requests, credits and failures for every key.