curl -X POST "https://mvp.tryunsora.com/api/v1/influencer-studio/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Fitness creator in athleisure, gym mirror selfie, natural light",
"aspectRatio": "9:16",
"styleMode": "mirror_selfie",
"cameraAngle": "pov"
}'
curl -X POST "https://mvp.tryunsora.com/api/v1/influencer-studio/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Luxury travel influencer at rooftop pool, golden hour",
"aspectRatio": "4:3",
"count": 3,
"styleMode": "golden_hour",
"age": 25
}'
{
"success": true,
"generations": [
{
"id": "<string>",
"status": "<string>"
}
],
"creditsDeducted": 123,
"creditsRemaining": 123
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}AI influencer
Create influencer
Queue one or more AI influencer portrait jobs to generate consistent, on-brand photos of your virtual creator from a reference image.
POST
/
influencer-studio
/
create
curl -X POST "https://mvp.tryunsora.com/api/v1/influencer-studio/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Fitness creator in athleisure, gym mirror selfie, natural light",
"aspectRatio": "9:16",
"styleMode": "mirror_selfie",
"cameraAngle": "pov"
}'
curl -X POST "https://mvp.tryunsora.com/api/v1/influencer-studio/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Luxury travel influencer at rooftop pool, golden hour",
"aspectRatio": "4:3",
"count": 3,
"styleMode": "golden_hour",
"age": 25
}'
{
"success": true,
"generations": [
{
"id": "<string>",
"status": "<string>"
}
],
"creditsDeducted": 123,
"creditsRemaining": 123
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}{
"error": "<string>",
"success": true,
"code": "<string>",
"message": "<string>"
}Creates AI influencer image job(s). Each image in
Multiple images (
count is a separate generation and costs 4 credits. Poll each id with Poll image status.
To keep one face across every post and video, read the guide: consistent AI influencer.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer uns_* API key or Clerk JWT |
Idempotency-Key | No | Max 128 chars. Replays the same response for 24h on API key requests |
Content-Type | Yes | application/json |
Request body
Number of images to generate (separate jobs). Min
1, max 10. Default: 1. Values outside that range are clamped, not rejected.Optional look / lighting preset.Allowed:
ugc, casual_daylight, cozy_indoor, low_light_intimate, raw_flash, golden_hour, moody_night, car_selfie, mirror_selfie, luxury_influencer, cinematic, travel_content, beauty_closeup, party_night_outAsync completion
Poll eachgenerations[].id via Poll generation status until COMPLETED or FAILED. Webhooks are not supported on the public API.
Response
Single image (count: 1):
{
"success": true,
"generations": [
{ "id": "cm123abc", "status": "QUEUED" }
],
"creditsDeducted": 4,
"creditsRemaining": 96
}
count > 1) return one entry per job in generations. Credits deducted = 4 × count.
Example
curl -X POST "https://mvp.tryunsora.com/api/v1/influencer-studio/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Fitness creator in athleisure, gym mirror selfie, natural light",
"aspectRatio": "9:16",
"styleMode": "mirror_selfie",
"cameraAngle": "pov"
}'
curl -X POST "https://mvp.tryunsora.com/api/v1/influencer-studio/create" \
-H "Authorization: Bearer uns_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Luxury travel influencer at rooftop pool, golden hour",
"aspectRatio": "4:3",
"count": 3,
"styleMode": "golden_hour",
"age": 25
}'
Errors
| HTTP | When |
|---|---|
400 | Missing/invalid prompt, aspectRatio, cameraAngle, styleMode, or age |
401 | Invalid auth |
402 | Insufficient credits |
404 | User not found |
500 | Server error |
Authorizations
Headers
API key requests only. Retrying with the same key within 24 hours replays the first response (with the Idempotent-Replayed: true header) instead of charging again. The body isn't compared; reusing the key on a different endpoint returns 409 IDEMPOTENCY_CONFLICT. Keys over 128 characters are ignored.
Maximum string length:
128Body
application/json

