MAKEUGC PLATFORM API · DOCS V2
Gestures
Animate a still character with a short, natural gesture.
Workflow
- Provide a public image URL and a motion prompt.
- Submit the generation and save data.id.
- Poll for the final video.
Example IDs and media URLs are placeholders. Replace them with values from your account and accessible media files.
Generate gestures #
/gestures/generate
Animate a person in a reference image using a motion description.
Request body
| Parameter | Description |
|---|---|
project_id
string
Optional
|
Existing project owned by your account. Omit to create one.
Allowed: |
prompt
string
Required
|
prompt input.
Allowed: |
image_url
string
Required
|
Public HTTP(S) media URL. Private addresses, credentials and data URIs are not accepted. |
Request example
curl --fail-with-body --max-time 120 -X POST "https://app.makeugc.ai/api/platform/gestures/generate" \
-H "X-Api-Key: $MAKEUGC_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"project_id": "project_123",
"image_url": "https://your-cdn.example/product.jpg",
"prompt": "The person smiles and gently waves toward the camera."
}'
// 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/gestures/generate", {
method: "POST",
headers: {
"X-Api-Key": apiKey,
"Content-Type": "application/json",
},
body: JSON.stringify({
"project_id": "project_123",
"image_url": "https://your-cdn.example/product.jpg",
"prompt": "The person smiles and gently waves toward the camera."
}),
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",
"image_url": "https://your-cdn.example/product.jpg",
"prompt": "The person smiles and gently waves toward the camera."
}
response = requests.post(
"https://app.makeugc.ai/api/platform/gestures/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",
"credits_charged": 0.5
}
}
All requests require X-Api-Key. See
errors & retries for unsuccessful
responses.
Get gesture status #
/gestures/status
Poll the submitted gesture job until video_url is available.
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/gestures/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/gestures/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/gestures/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.