MAKEUGC PLATFORM API · DOCS V2
Templates
Generate product videos from the current app template catalog, with reproducible variation selection.
Workflow
- List templates and inspect require_fields.
- Provide the requested product, actor, voice and text inputs.
- Choose a seed, model, duration and aspect ratio, then generate.
- Save the returned variation choices and poll for the video.
Example IDs and media URLs are placeholders. Replace them with values from your account and accessible media files.
List templates #
/templates/list
List current app templates, preview media, categories and require_fields for each template.
Parameters
| Parameter | Description |
|---|---|
category
string · query
Optional
|
category input.
Allowed: |
Request example
curl --fail-with-body --max-time 120 -X GET "https://app.makeugc.ai/api/platform/templates/list" \
-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/templates/list", {
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/templates/list",
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": {
"templates": [
{
"id": "template_123",
"title": "Product spotlight",
"description": "A product demonstration",
"preview_url": "https://your-cdn.example/reference.mp4",
"credit": null,
"category": [
"Product ads"
],
"require_fields": {
"product_image": {
"type": "image",
"required": true
},
"product_name": {
"type": "input",
"required": true,
"max": 100
}
}
}
]
}
}
All requests require X-Api-Key. See
errors & retries for unsuccessful
responses.
Generate a template video #
/templates/generate
Generate with a current app template, a seed and the required inputs declared by that template.
Request body
| Parameter | Description |
|---|---|
project_id
string
Optional
|
Existing project owned by your account. Omit to create one.
Allowed: |
template_id
string
Required
|
template id input.
Allowed: |
seed
integer | string
Required
|
seed input.
Allowed: |
product_image
string
Optional
|
Public HTTP(S) media URL. Private addresses, credentials and data URIs are not accepted. |
product_images
string[]
Optional
|
product images input.
Allowed: |
actor_image
string
Optional
|
Public HTTP(S) media URL. Private addresses, credentials and data URIs are not accepted. |
actor_image_2
string
Optional
|
Public HTTP(S) media URL. Private addresses, credentials and data URIs are not accepted. |
voice_id
string
Optional
|
MakeUGC voice id from GET /video/voices.
Allowed: |
model
string
Optional
|
model input.
Allowed:
Default: |
duration
string
Optional
|
duration input.
Allowed:
Default: |
aspect_ratio
string
Optional
|
aspect ratio input.
Allowed:
Default: |
hook
string
Optional
|
hook input.
Allowed: |
fields
object
Optional
|
Only keys declared in the selected template's require_fields. Billing and ownership fields are rejected.
Default: |
Request example
curl --fail-with-body --max-time 120 -X POST "https://app.makeugc.ai/api/platform/templates/generate" \
-H "X-Api-Key: $MAKEUGC_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"project_id": "project_123",
"template_id": "template_123",
"seed": 12345,
"product_image": "https://your-cdn.example/product.jpg",
"model": "seedance-2.0-fast",
"duration": "15",
"aspect_ratio": "9:16",
"fields": {
"product_name": "Morning Cup"
}
}'
// 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/templates/generate", {
method: "POST",
headers: {
"X-Api-Key": apiKey,
"Content-Type": "application/json",
},
body: JSON.stringify({
"project_id": "project_123",
"template_id": "template_123",
"seed": 12345,
"product_image": "https://your-cdn.example/product.jpg",
"model": "seedance-2.0-fast",
"duration": "15",
"aspect_ratio": "9:16",
"fields": {
"product_name": "Morning Cup"
}
}),
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",
"template_id": "template_123",
"seed": 12345,
"product_image": "https://your-cdn.example/product.jpg",
"model": "seedance-2.0-fast",
"duration": "15",
"aspect_ratio": "9:16",
"fields": {
"product_name": "Morning Cup"
}
}
response = requests.post(
"https://app.makeugc.ai/api/platform/templates/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",
"model": "seedance-2.0-fast",
"credits_used": 1.5,
"seed": 12345,
"variation_picks": {}
}
}
All requests require X-Api-Key. See
errors & retries for unsuccessful
responses.
Get template video status #
/templates/status
Poll the ID from /templates/generate, scoped to your API key's account.
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/templates/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/templates/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/templates/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",
"video_url": "https://your-cdn.example/result.mp4"
}
}
All requests require X-Api-Key. See
errors & retries for unsuccessful
responses.