MAKEUGC PLATFORM API · DOCS V2
Background Remover
Remove or replace a video background and download the processed output.
Workflow
- Supply a public source video URL.
- Choose transparency, a hex color or a replacement image.
- Submit and poll for output_url.
Example IDs and media URLs are placeholders. Replace them with values from your account and accessible media files.
Remove or replace a video background #
/background-remover/generate
Remove the background, apply a solid hex color, or composite the subject over an image. Creates a separate project job.
Request body
| Parameter | Description |
|---|---|
project_id
string
Optional
|
Existing project owned by your account. Omit to create one.
Allowed: |
video_url
string
Required
|
Public HTTP(S) media URL. Private addresses, credentials and data URIs are not accepted. |
background_image_url
string
Optional
|
Public HTTP(S) media URL. Private addresses, credentials and data URIs are not accepted. |
background_color
string
Optional
|
background color input.
Allowed:
Default: |
transparent_format
string
Optional
|
transparent format input.
Allowed:
Default: |
position_x
number
Optional
|
position x input.
Allowed:
Default: |
position_y
number
Optional
|
position y input.
Allowed:
Default: |
width_scale
number
Optional
|
width scale input.
Allowed:
Default: |
height_scale
number
Optional
|
height scale input.
Allowed:
Default: |
Request example
curl --fail-with-body --max-time 120 -X POST "https://app.makeugc.ai/api/platform/background-remover/generate" \
-H "X-Api-Key: $MAKEUGC_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"project_id": "project_123",
"video_url": "https://your-cdn.example/reference.mp4",
"background_color": "transparent",
"transparent_format": "webm_vp9"
}'
// Run on your server with Node.js 20+.
const apiKey = process.env.MAKEUGC_API_KEY;
if (!apiKey) throw new Error("Set MAKEUGC_API_KEY first");
const response = await fetch("https://app.makeugc.ai/api/platform/background-remover/generate", {
method: "POST",
headers: {
"X-Api-Key": apiKey,
"Content-Type": "application/json",
},
body: JSON.stringify({
"project_id": "project_123",
"video_url": "https://your-cdn.example/reference.mp4",
"background_color": "transparent",
"transparent_format": "webm_vp9"
}),
signal: AbortSignal.timeout(120000),
});
const text = await response.text();
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${text} (request ${response.headers.get("x-request-id")})`);
}
const result = JSON.parse(text);
console.log(result);
# Install the requests package before running.
import os
import requests
payload = {
"project_id": "project_123",
"video_url": "https://your-cdn.example/reference.mp4",
"background_color": "transparent",
"transparent_format": "webm_vp9"
}
response = requests.post(
"https://app.makeugc.ai/api/platform/background-remover/generate",
headers={"X-Api-Key": os.environ["MAKEUGC_API_KEY"]},
json=payload,
timeout=120,
)
if not response.ok:
raise RuntimeError(f"HTTP {response.status_code}: {response.text} "
f"(request {response.headers.get('x-request-id')})")
print(response.json())
200 response example
{
"status": true,
"data": {
"id": "job_123",
"project_id": "project_123",
"status": "processing"
}
}
All requests require X-Api-Key. See
errors & retries for unsuccessful
responses.
Get background processing status #
/background-remover/status
Poll the MakeUGC data.id, not an upstream provider ID. The completed file or archive is in output_url.
Parameters
| Parameter | Description |
|---|---|
id
string · query
Required
|
id input.
Allowed: |
Request example
curl --fail-with-body --max-time 120 -X GET "https://app.makeugc.ai/api/platform/background-remover/status?id=ID" \
-H "X-Api-Key: $MAKEUGC_API_KEY"
// Run on your server with Node.js 20+.
const apiKey = process.env.MAKEUGC_API_KEY;
if (!apiKey) throw new Error("Set MAKEUGC_API_KEY first");
const response = await fetch("https://app.makeugc.ai/api/platform/background-remover/status?id=ID", {
method: "GET",
headers: {
"X-Api-Key": apiKey,
},
signal: AbortSignal.timeout(120000),
});
const text = await response.text();
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${text} (request ${response.headers.get("x-request-id")})`);
}
const result = JSON.parse(text);
console.log(result);
# Install the requests package before running.
import os
import requests
response = requests.get(
"https://app.makeugc.ai/api/platform/background-remover/status?id=ID",
headers={"X-Api-Key": os.environ["MAKEUGC_API_KEY"]},
timeout=120,
)
if not response.ok:
raise RuntimeError(f"HTTP {response.status_code}: {response.text} "
f"(request {response.headers.get('x-request-id')})")
print(response.json())
200 response example
{
"status": true,
"data": {
"id": "job_123",
"project_id": "project_123",
"status": "completed",
"output_url": "https://your-cdn.example/transparent.webm"
}
}
All requests require X-Api-Key. See
errors & retries for unsuccessful
responses.