/VIDEO/video-background-removal
Video

Video Background Removal API

Isolate the subject in a video and export it with a transparent or solid-color background. Keep the original audio if needed.

  • Video to video

Starting at

$0.005

per second of output

4 parameters · 1 price options

Video Background Removal API pricing

OptionPrice per second
Standard$0.005
1curl -X POST https://api.api-stock.com/api/v1/generation/create \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "video-background-removal",
6 "input": {
7 "videoUrl": "https://example.com/input.png",
8 "backgroundColor": "transparent",
9 "outputFormat": "webm",
10 "preserveAudio": true
11 }
12 }'

Parameters

NameTypeRequiredDefaultDescription
videoUrlstringYes—Public source video URL. MP4, MOV or WebM, up to 100 MiB.
backgroundColorstringNotransparentBackground for the output. Transparent backgrounds require WebM.One of: transparent, black, white, gray, red, green, blue, yellow, cyan, magenta, orange
outputFormatstringNowebmOutput format. WebM uses VP9 and supports transparency. MP4 uses H.264 and requires a solid background.One of: webm, mp4
preserveAudiobooleanNotrueKeep the original audio track when possible.

Frequently asked questions

How much does Video Background Removal cost?

Video Background Removal starts at $0.005 per second of output on API Stock. The final charge depends on the selected settings.

How do I get an API key for Video Background Removal?

Create an account and API key on API Stock, then fund your balance. The same key works with Video Background Removal and other catalog models.

How do I call the Video Background Removal API?

POST to https://api.api-stock.com/api/v1/generation/create with your API key and model "video-background-removal". Use the returned task id for polling or receive a webhook.

What input parameters does Video Background Removal accept?

Video Background Removal accepts 4 input parameters, including the required field(s) videoUrl. See their types, defaults and allowed values above.

What happens if a Video Background Removal request fails?

API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.

Can I use Video Background Removal with the same API key as other models?

Yes. Use your API Stock API key and balance for Video Background Removal and other catalog models.