Developers
API reference
Novelity licenses real people's likenesses for AI stills, with the owner's consent and policy enforced by machine. The REST API and the MCP server are one contract: an agent borrows a face with a bearer credential and an asset id. It never uploads a photo of anyone, and vendor reference ids never leave our servers.
- Base URL
- https://staging.novelity.ai.id/api/v1
- OpenAPI 3.1
- /api/v1/openapi.json
Five calls
Quickstart
With an API key in PLATFORM_API_KEY: find a face, check its policy, price it, license it, generate, then fetch the labeled outputs. Every call is plain JSON over HTTPS.
# 1. Find a Soul Ready face that allows your use casecurl "https://staging.novelity.ai.id/api/v1/assets?allow_use_case=fiction_microdrama_stills&max_price=300" \ -H "Authorization: Bearer $PLATFORM_API_KEY"# 2. Price one Scout license (no side effects)curl -X POST https://staging.novelity.ai.id/api/v1/quote \ -H "Authorization: Bearer $PLATFORM_API_KEY" -H "Content-Type: application/json" \ -d '{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"scout","units":1}'# 3. Buy it (spends credits; the Idempotency-Key makes a retry safe)curl -X POST https://staging.novelity.ai.id/api/v1/licenses \ -H "Authorization: Bearer $PLATFORM_API_KEY" -H "Content-Type: application/json" \ -H "Idempotency-Key: 5d1f3a52-8c1e-4f5e-9d3a-2b7c9e0f1a44" \ -d '{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"scout","use_case":"fiction_microdrama_stills"}'# 4. Generate: the policy engine answers at once (201 queued, 202 held, or a code)curl -X POST https://staging.novelity.ai.id/api/v1/jobs \ -H "Authorization: Bearer $PLATFORM_API_KEY" -H "Content-Type: application/json" \ -d '{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack_id":"scout","prompt":"Night street after rain, she glances back","aspect_ratio":"16:9"}'# 5. Poll until completed; outputs carry signed URLs (1 hour) and the AI labelcurl https://staging.novelity.ai.id/api/v1/jobs/job_k3vn6tb5wryca7hq2m4x -H "Authorization: Bearer $PLATFORM_API_KEY"Bearer credentials
Authentication
Send Authorization: Bearer … on every call except /openapi.json. There are two kinds of credential and they aren't interchangeable: using one on the other's endpoints answers FORBIDDEN with details.required_scope. Session cookies are never accepted here.
Buyer API key
Bearer sk_live_…
- One organization, many keys (up to 10). Issued only to approved buyer orgs: every account starts pending and a person on our team reviews it. Apply once for your org.
- An org admin creates keys in the console under API keys. The key is shown once; we store only its sha256.
- While the org isn't approved, every call answers
ACCOUNT_PENDINGorACCOUNT_REJECTED(403,details.status). The check runs on every request, so a suspension applies at once. - A key stops working when it is revoked, and when the member who created it is banned or leaves the org.
Owner token
Bearer ot_…
- For likeness owners, separate from buyer keys: console → Settings → Owner tokens (up to 10), shown once.
- Reaches only the owner's own assets:
list_usage,pause_assetand resume. Someone else's asset answers NOT_FOUND, so its existence never leaks. - It can't grant consent, edit a policy, revoke a likeness or move money. Those stay in the owner's own console session.
Keep credentials server-side. The API sends no CORS headers, so browsers can't call it cross-origin, and a key in a web page would leak anyway. Missing, malformed, unknown, revoked and disabled credentials answer UNAUTHENTICATED (401) with details.reason.
The contract
Conventions
- JSON in and out, snake_case keys. Bodies must be
application/json; unknown fields and query parameters are refused (422), never ignored. - Money is an integer in minor units with a currency (IDR: whole rupiah;
3840000= Rp3.840.000), with display strings informatted. The platform fee is 15% of gross andplatform_fee + owner_share = gross. - Public ids only:
ip_faces,pk_packs,lic_licenses,job_jobs,org_buyer orgs,cns_consent records. Timestamps are ISO 8601 in UTC. - Lists page with an opaque
cursor: passnext_cursorback until it is null. - Every response has
X-Request-Id(alsoerror.request_id) andCache-Control: no-store. - Changes are additive: new fields may appear, so ignore fields you don't know.
25 operations
Endpoints
Replace the sample ids with real ones from search results. Each endpoint lists every error code it can answer with; the full table is under Errors.
/api/v1/assets
API keyMCP · search_assetsSearch licensable faces
Publicly offered faces only, newest publication first, cursor-paginated. Filters combine with AND. Cards carry the offered packs (prices in minor units, IDR rupiah) and preview URLs (AI-generated, or photos the owner allowed; never raw photos). Tier listed can be quoted but not licensed; soul_ready can generate.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
look | query | string | Free text; every word must match a look tag, the name or the bio. At most 6 words. |
age_band | query | 18-24 | 25-34 | 35-44 | 45-54 | 55+ | |
gender | query | female | male | non_binary | unspecified | |
allow_use_case | query | fiction_microdrama_stills | commercial_non_sensitive | social_organic | The owner must allow it. A hard-denied value is a 422 (details.reason = hard_denied). |
max_price | query | string | Whole rupiah (IDR), e.g. 2400000 or 2.400.000: the cheapest offered pack costs at most this |
cursor | query | string | next_cursor from the previous page |
limit | query | string | 1-48, default 24 |
curl "https://staging.novelity.ai.id/api/v1/assets?look=curly&age_band=25-34&allow_use_case=fiction_microdrama_stills&max_price=300" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "results": [ { "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "display_name": "Rani", "age_band": "25-34", "gender": "female", "look_tags": [ "curly hair", "freckles" ], "tier": "soul_ready", "allowed_use_cases": [ "fiction_microdrama_stills", "commercial_non_sensitive" ], "territory": "worldwide", "packs": [ { "pack": "scout", "pack_id": "pk_7hq2m4xk3vn6tb5wryca", "name": "Scout", "description": "Stills and a character sheet for internal pitch. For testing a face.", "cap": 20, "days": 30, "price": 720000, "formatted_price": "Rp720.000" }, { "pack": "episode", "pack_id": "pk_3tb6wr5jyc2vq7kxm4hn", "name": "Episode", "description": "One commercial or fiction stills project. The main unit.", "cap": 80, "days": 60, "price": 3840000, "formatted_price": "Rp3.840.000" } ], "previews": [ { "url": "https://staging.novelity.ai.id/api/catalog/previews/pho_m4xk3vn6tb5wryca7hq2", "kind": "owner_approved", "label": "Owner-approved preview" } ] } ], "next_cursor": null}/api/v1/assets/{asset_id}/policy
API keyMCP · get_asset_policyRead a face's policy and packs
What a buyer may do with one face (allowed use cases, the platform's hard-deny list, the owner's own limits, territory, rating, whether the owner reviews every job) and what each offered pack costs.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
asset_id | path · required | string | The face's public id (ip_…) |
curl "https://staging.novelity.ai.id/api/v1/assets/ip_2vq7kxm4hn3tb6wr5jyc/policy" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "tier": "soul_ready", "allowed_use_cases": [ "fiction_microdrama_stills", "commercial_non_sensitive" ], "hard_deny": [ "adult", "political", "religious_campaign", "gambling", "online_lending", "medical_financial_claim", "impersonation_other_person" ], "territory": "worldwide", "max_rating": "PG13", "owner_limits": [ "No alcohol or smoking", "No swimwear" ], "review_required": false, "listing_duration": "m12", "listing_expires_at": "2027-09-25T00:00:00.000Z", "currency": "IDR", "packs": [ { "pack": "scout", "pack_id": "pk_7hq2m4xk3vn6tb5wryca", "name": "Scout", "description": "Stills and a character sheet for internal pitch. For testing a face.", "cap": 20, "days": 30, "price": 720000, "formatted_price": "Rp720.000" }, { "pack": "episode", "pack_id": "pk_3tb6wr5jyc2vq7kxm4hn", "name": "Episode", "description": "One commercial or fiction stills project. The main unit.", "cap": 80, "days": 60, "price": 3840000, "formatted_price": "Rp3.840.000" } ]}/api/v1/quote
API keyMCP · quotePrice licenses of a pack
N licenses of one pack of one face, with the platform fee and the owner's share. Money is exactly what a purchase will charge. No side effects.
curl -X POST "https://staging.novelity.ai.id/api/v1/quote" \ -H "Authorization: Bearer $PLATFORM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"episode","units":2}'{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "pack": "episode", "units": 2}{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "pack": "episode", "units": 2, "currency": "IDR", "unit_price": 3840000, "gross": 7680000, "platform_fee": 1152000, "owner_share": 6528000, "platform_fee_bps": 1500, "cap_per_unit": 80, "days": 60, "total_generations": 160, "formatted": { "unit_price": "Rp3.840.000", "gross": "Rp7.680.000", "platform_fee": "Rp1.152.000", "owner_share": "Rp6.528.000" }}/api/v1/licenses
API keyMCP · purchase_licenseBuy licenses (spends credits)
Buys `units` licenses of one pack and debits the org's credits in the same transaction. Only soul_ready faces can be licensed, for a use case the owner allows. No refunds for unused generations or creative preference; technical failures return generations. Send an Idempotency-Key so a retry never charges twice.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | 1-255 visible ASCII characters (a UUID is ideal). The same key + the same request within 24 h replays the first answer (Idempotent-Replayed: true) instead of doing it twice. |
curl -X POST "https://staging.novelity.ai.id/api/v1/licenses" \ -H "Authorization: Bearer $PLATFORM_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack":"scout","use_case":"fiction_microdrama_stills","units":1}'{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "pack": "scout", "use_case": "fiction_microdrama_stills", "units": 1}{ "licenses": [ { "license_id": "lic_5wryca7hq2m4xk3vn6tb", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "asset_name": "Rani", "asset_state": "live", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "territory": "worldwide", "cap": 20, "gens_used": 0, "gens_remaining": 20, "status": "active", "purchased_at": "2026-09-25T09:30:00.000Z", "expires_at": "2026-10-25T09:30:00.000Z", "revoked_at": null, "currency": "IDR", "gross": 720000, "platform_fee": 108000, "owner_share": 612000, "formatted": { "gross": "Rp720.000", "platform_fee": "Rp108.000", "owner_share": "Rp612.000" }, "consent_id": "cns_q7kxm4hn3tb6wr5jyc2v", "consent_version": 1 } ], "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "pack": "scout", "use_case": "fiction_microdrama_stills", "units": 1, "currency": "IDR", "unit_price": 720000, "gross": 720000, "platform_fee": 108000, "owner_share": 612000, "platform_fee_bps": 1500, "balance_after": 8560000, "formatted": { "unit_price": "Rp720.000", "gross": "Rp720.000", "platform_fee": "Rp108.000", "owner_share": "Rp612.000", "balance_after": "Rp8.560.000" }}/api/v1/licenses
API keyList your org's licenses
Newest first (up to 500). status is computed: active, exhausted (cap used), expired (window over) or revoked (the owner revoked the face).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
asset_id | query | string | |
status | query | active | exhausted | expired | revoked | |
limit | query | string | 1-500, default 200 |
curl "https://staging.novelity.ai.id/api/v1/licenses?asset_id=ip_2vq7kxm4hn3tb6wr5jyc&status=active" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "licenses": [ { "license_id": "lic_5wryca7hq2m4xk3vn6tb", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "asset_name": "Rani", "asset_state": "live", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "territory": "worldwide", "cap": 20, "gens_used": 4, "gens_remaining": 16, "status": "active", "purchased_at": "2026-09-25T09:30:00.000Z", "expires_at": "2026-10-25T09:30:00.000Z", "revoked_at": null, "currency": "IDR", "gross": 720000, "platform_fee": 108000, "owner_share": 612000, "formatted": { "gross": "Rp720.000", "platform_fee": "Rp108.000", "owner_share": "Rp612.000" }, "consent_id": "cns_q7kxm4hn3tb6wr5jyc2v", "consent_version": 1 } ]}/api/v1/jobs
API keyMCP · start_jobStart a generation job
The policy engine decides at once, checking in order: the face (live, soul_ready, consent active), the license (yours, this face, not revoked or expired, enough generations), the use case, the territory, the prompt classifier, and holds. 201: queued, generations reserved. 202: held for a person (job.hold); poll get_job. Refusals return the first failed check's code; a refusal tied to your license is recorded (details.job_id). The face is referenced by asset_id only: no photos are ever uploaded.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | 1-255 visible ASCII characters (a UUID is ideal). The same key + the same request within 24 h replays the first answer (Idempotent-Replayed: true) instead of doing it twice. |
curl -X POST "https://staging.novelity.ai.id/api/v1/jobs" \ -H "Authorization: Bearer $PLATFORM_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{"asset_id":"ip_2vq7kxm4hn3tb6wr5jyc","pack_id":"pk_7hq2m4xk3vn6tb5wryca","prompt":"Night street after rain, she glances back over her shoulder, neon reflections, cinematic still","aspect_ratio":"16:9","batch_size":1}'{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "pack_id": "pk_7hq2m4xk3vn6tb5wryca", "prompt": "Night street after rain, she glances back over her shoulder, neon reflections, cinematic still", "aspect_ratio": "16:9", "batch_size": 1}{ "job": { "job_id": "job_k3vn6tb5wryca7hq2m4x", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "asset_name": "Rani", "license_id": "lic_5wryca7hq2m4xk3vn6tb", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "prompt": "Night street after rain, she glances back over her shoulder, neon reflections, cinematic still", "aspect_ratio": "16:9", "batch_size": 1, "status": "queued", "hold": null, "error": null, "gens_charged": 1, "outputs": [], "label": null, "consent_version": 1, "created_at": "2026-09-25T09:41:51.000Z", "submitted_at": null, "completed_at": null, "ended_at": null }, "outcome": "queued"}{ "job": { "job_id": "job_k3vn6tb5wryca7hq2m4x", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "asset_name": "Rani", "license_id": "lic_5wryca7hq2m4xk3vn6tb", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "prompt": "Night street after rain, she glances back over her shoulder, neon reflections, cinematic still", "aspect_ratio": "16:9", "batch_size": 1, "status": "held", "hold": { "code": "OWNER_REVIEW_REQUIRED", "message": "This request is waiting for a review. We will update you within 72 hours.", "expires_at": "2026-09-28T09:41:51.000Z" }, "error": null, "gens_charged": 0, "outputs": [], "label": null, "consent_version": 1, "created_at": "2026-09-25T09:41:51.000Z", "submitted_at": null, "completed_at": null, "ended_at": null, "buyer_message": { "code": "held_for_review", "title": "In review", "message": "This request is waiting for a review. We will update you within 72 hours." } }, "outcome": "held"}Error codes
- VALIDATION_FAILED
- IDEMPOTENCY_KEY_REUSED
- NOT_FOUND
- ASSET_PAUSED
- ASSET_REVOKED
- ASSET_NOT_LIVE
- NOT_SOUL_READY
- CONSENT_REQUIRED
- LICENSE_DENIED
- LICENSE_EXPIRED
- CAP_REACHED
- USE_CASE_NOT_ALLOWED
- TERRITORY_MISMATCH
- DENY_ADULT
- DENY_POLITICAL
- DENY_RELIGIOUS
- DENY_GAMBLING
- DENY_LENDING
- DENY_CLAIM
- DENY_IMPERSONATION
- UNAUTHENTICATED
- FORBIDDEN
- ACCOUNT_PENDING
- ACCOUNT_REJECTED
- RATE_LIMITED
- CALL_BLOCKED
- INTERNAL
- 202 MANUAL_REVIEW
- 202 OWNER_REVIEW_REQUIRED
- 202 ABUSE_HOLD
/api/v1/jobs
API keyList your org's jobs
The latest jobs (default 100, at most 200), newest first. Use get_job for outputs.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
status | query | held | queued | submitted | completed | failed | denied | cancelled | |
asset_id | query | string | |
limit | query | string | 1-200, default 100 |
curl "https://staging.novelity.ai.id/api/v1/jobs?status=completed&limit=20" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "jobs": [ { "job_id": "job_k3vn6tb5wryca7hq2m4x", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "asset_name": "Rani", "pack_name": "Scout", "status": "completed", "hold_code": null, "error_code": null, "batch_size": 1, "aspect_ratio": "16:9", "outputs": 1, "prompt_preview": "Night street after rain, she glances back over her shoulder, neon reflections, cinematic still", "created_at": "2026-09-25T09:41:51.000Z" } ]}/api/v1/jobs/{job_id}
API keyMCP · get_jobRead a job and its outputs
Status, the hold or error, and for completed jobs the outputs with signed URLs that expire within one hour (call again for fresh ones). Every image carries the AI label, visibly and in its metadata. Also the license and the consent text version the job ran under.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
job_id | path · required | string | job_… |
curl "https://staging.novelity.ai.id/api/v1/jobs/job_k3vn6tb5wryca7hq2m4x" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "job_id": "job_k3vn6tb5wryca7hq2m4x", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "asset_name": "Rani", "license_id": "lic_5wryca7hq2m4xk3vn6tb", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "prompt": "Night street after rain, she glances back over her shoulder, neon reflections, cinematic still", "aspect_ratio": "16:9", "batch_size": 1, "status": "completed", "hold": null, "error": null, "gens_charged": 1, "outputs": [ { "index": 1, "output_id": "out_m4xk3vn6tb5wryca7hq2", "verify_url": "https://staging.novelity.ai.id/verify/out_m4xk3vn6tb5wryca7hq2", "filename": "job_k3vn6tb5wryca7hq2m4x_1.jpg", "width": 1536, "height": 864, "content_type": "image/jpeg", "url": "https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.jpg&e=1790000000&s=3f9c…", "download_url": "https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.jpg&e=1790000000&s=3f9c…&dl=job_k3vn6tb5wryca7hq2m4x_1.jpg", "thumb_url": "https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.thumb.jpg&e=1790000000&s=3f9c…", "label": "AI · licensed likeness", "urls_expire_at": "2026-09-25T10:42:05.000Z" } ], "label": "AI-generated image with licensed likeness", "consent_version": 1, "created_at": "2026-09-25T09:41:51.000Z", "submitted_at": "2026-09-25T09:41:52.000Z", "completed_at": "2026-09-25T09:42:01.000Z", "ended_at": "2026-09-25T09:42:01.000Z"}/api/v1/owner/assets/{asset_id}/usage
owner tokenMCP · list_usageHow your face is used, and what it earned
The owner dashboard's report, byte for byte the same numbers: earned (the licenses' ledger rows), used (completed jobs' share), generations, attempts your policy blocked (counts only), jobs waiting for review, licenses sold, and one page of jobs with buyer org, pack, redacted prompt summary, labeled thumbnails (signed, 1 hour) and gross / fee / net. Your own assets only.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
asset_id | path · required | string | The face's public id (ip_…) |
from | query | string | YYYY-MM-DD (UTC), inclusive |
to | query | string | YYYY-MM-DD (UTC), inclusive |
org | query | string | Only this buyer org |
pack | query | scout | episode | |
cursor | query | string | next_cursor from the previous page (jobs) |
limit | query | string | Jobs per page, 1-200, default 50 |
curl "https://staging.novelity.ai.id/api/v1/owner/assets/ip_2vq7kxm4hn3tb6wr5jyc/usage?from=2026-09-01&to=2026-09-30" \ -H "Authorization: Bearer $PLATFORM_OWNER_TOKEN"{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "display_name": "Rani", "asset_status": "live", "tier": "soul_ready", "paused_at": null, "currency": "IDR", "filters": { "from": null, "to": null, "buyer_org_id": null, "pack": null }, "earned": { "licenses_sold": 1, "gross": 720000, "platform_fee": 108000, "owner_net": 612000, "formatted": { "gross": "Rp720.000", "platform_fee": "Rp108.000", "owner_net": "Rp612.000" } }, "used": { "jobs_completed": 1, "gens_consumed": 1, "gross_alloc": 36000, "fee_alloc": 5400, "net_alloc": 30600, "formatted": { "gross_alloc": "Rp36.000", "fee_alloc": "Rp5.400", "net_alloc": "Rp30.600" } }, "generations": { "cap": 20, "used": 1, "consumed": 1, "reserved": 0, "remaining": 19 }, "blocked": { "total": 1, "categories": [ { "code": "DENY_ADULT", "label": "Adult or sexual content", "kind": "policy", "count": 1 } ] }, "waiting_now": { "total": 0, "owner_review": 0, "staff_review": 0 }, "licenses": [ { "license_id": "lic_5wryca7hq2m4xk3vn6tb", "purchased_at": "2026-09-25T09:30:00.000Z", "buyer_org_id": "org_4hn3tb6wr5jyc2vq7kxm", "buyer_org": "Northlight Studio", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "territory": "worldwide", "status": "active", "expires_at": "2026-10-25T09:30:00.000Z", "revoked_at": null, "cap": 20, "gens_used": 1, "gens_consumed": 1, "gens_reserved": 0, "gross": 720000, "platform_fee": 108000, "owner_net": 612000, "gross_alloc": 36000, "fee_alloc": 5400, "net_alloc": 30600, "formatted": { "gross": "Rp720.000", "platform_fee": "Rp108.000", "owner_net": "Rp612.000", "gross_alloc": "Rp36.000", "fee_alloc": "Rp5.400", "net_alloc": "Rp30.600" } } ], "licenses_truncated": false, "jobs": [ { "job_id": "job_k3vn6tb5wryca7hq2m4x", "created_at": "2026-09-25T09:41:51.000Z", "completed_at": "2026-09-25T09:42:01.000Z", "buyer_org_id": "org_4hn3tb6wr5jyc2vq7kxm", "buyer_org": "Northlight Studio", "license_id": "lic_5wryca7hq2m4xk3vn6tb", "pack": "scout", "pack_name": "Scout", "use_case": "fiction_microdrama_stills", "status": "completed", "withheld": false, "outcome": null, "batch_size": 1, "gens_charged": 1, "gens_reserved": 0, "prompt_summary": "Night street after rain, she glances back over her shoulder, neon reflections, cinematic still", "thumbnails": [ { "index": 1, "url": "https://staging.novelity.ai.id/api/files?k=outputs%2Fip_2vq7kxm4hn3tb6wr5jyc%2Fjob_k3vn6tb5wryca7hq2m4x%2F1.thumb.jpg&e=1790000000&s=3f9c…", "label": "AI · licensed likeness" } ], "thumbnails_expire_at": "2026-09-25T10:45:00.000Z", "gross_alloc": 36000, "fee_alloc": 5400, "net_alloc": 30600, "formatted": { "gross_alloc": "Rp36.000", "fee_alloc": "Rp5.400", "net_alloc": "Rp30.600" } } ], "next_cursor": null}/api/v1/owner/assets/{asset_id}/pause
owner tokenMCP · pause_assetPause future use of your face
Immediate: the next start_job by any buyer gets ASSET_PAUSED, held and queued jobs are cancelled with their generations returned, in-flight ones are cancelled upstream where still possible. Finished jobs stay with their buyers. The talent's pause ends active licenses with a pro rata credit refund of unused generations (D10 C4); a resume does not restore them. Pausing a paused face is a no-op (changed: false). Reversible with resume.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
asset_id | path · required | string | The face's public id (ip_…) |
curl -X POST "https://staging.novelity.ai.id/api/v1/owner/assets/ip_2vq7kxm4hn3tb6wr5jyc/pause" \ -H "Authorization: Bearer $PLATFORM_OWNER_TOKEN"{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "status": "paused", "paused_at": "2026-09-25T10:00:00.000Z", "changed": true, "stopped_jobs": { "cancelled": 1, "cancel_requested": 0 }, "note": "Future use is paused: new jobs are refused with ASSET_PAUSED, and jobs that were waiting were cancelled with their generations returned. Finished jobs stay with their buyers. Active licenses ended, and buyers got a pro rata credit refund for unused generations. Resume at any time."}/api/v1/owner/assets/{asset_id}/resume
owner tokenResume a paused face
paused → live: buyers with active licenses can start jobs again. Jobs the pause cancelled stay cancelled. Resuming a live face is a no-op (changed: false).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
asset_id | path · required | string | The face's public id (ip_…) |
curl -X POST "https://staging.novelity.ai.id/api/v1/owner/assets/ip_2vq7kxm4hn3tb6wr5jyc/resume" \ -H "Authorization: Bearer $PLATFORM_OWNER_TOKEN"{ "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "status": "live", "paused_at": null, "changed": true, "note": "The likeness is live again: buyers with active licenses can start new jobs. Jobs the pause cancelled stay cancelled."}/api/v1/me
key or tokenWho this credential is
An API key: its org (always approved when this answers), credit balance and rate limit. An owner token: the owner's display name and assets.
curl "https://staging.novelity.ai.id/api/v1/me" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "type": "api_key", "scopes": [ "buyer" ], "key": { "key_id": "key_6tb5wryca7hq2m4xk3vn", "name": "Pipeline agent", "prefix": "sk_live_abcdef", "created_at": "2026-09-25T09:00:00.000Z", "last_used_at": "2026-09-25T09:41:51.000Z" }, "org": { "org_id": "org_4hn3tb6wr5jyc2vq7kxm", "name": "Northlight Studio", "status": "approved", "distribution_territory": "worldwide" }, "credits": { "balance": 8560000, "currency": "IDR", "formatted": "Rp8.560.000" }, "rate_limit": { "limit": 60, "window_seconds": 60 }}/api/v1/openapi.json
publicThis OpenAPI 3.1 document
No credential needed.
curl "https://staging.novelity.ai.id/api/v1/openapi.json"{ "openapi": "3.1.0", "info": { "title": "Novelity API", "version": "1" }, "paths": {}}Error codes
/api/v1/owner/earnings
owner tokenYour balance, pending payouts and ledger entries
balance_cents is earned minus clawbacks minus paid out. Earnings are payable hold_days after the sale: on_hold_cents are younger, withheld_cents are past the hold but wait for an open report, released_cents are payable. available_cents = released minus paid out minus payouts in progress (pending_cents; held_cents of it wait for approval) and is what you can request. entries are your ledger rows (owner_share and payout), newest first, cursor-paginated.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
cursor | query | string | next_cursor from the previous page |
limit | query | string | Entries per page, 1-200, default 50 |
curl "https://staging.novelity.ai.id/api/v1/owner/earnings?limit=20" \ -H "Authorization: Bearer $PLATFORM_OWNER_TOKEN"{ "currency": "IDR", "balance_cents": 1920000, "available_cents": 1120000, "pending_cents": 800000, "held_cents": 800000, "on_hold_cents": 0, "withheld_cents": 0, "released_cents": 1920000, "next_release_at": null, "lifetime_earned_cents": 1920000, "paid_out_cents": 0, "min_payout_cents": 750000, "hold_days": 14, "formatted": { "balance": "Rp1.920.000", "available": "Rp1.120.000", "pending": "Rp800.000", "held": "Rp800.000", "on_hold": "Rp0", "withheld": "Rp0", "lifetime_earned": "Rp1.920.000", "paid_out": "Rp0" }, "entries": [ { "entry_id": "led_q7kxm4hn3tb6wr5jyc2v", "type": "owner_share", "amount_cents": 1920000, "formatted": "Rp1.920.000", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc", "license_id": "lic_5wryca7hq2m4xk3vn6tb", "payout_id": null, "memo": "Owner share of lic_5wryca7hq2m4xk3vn6tb", "created_at": "2026-11-20T09:00:00.000Z" } ], "next_cursor": null}/api/v1/owner/payouts
owner tokenRequest a payout
Asks to be paid amount_cents. At least min_payout_cents and at most available_cents (earnings past the hold minus payouts). One payout at a time: a request while another is in progress is INVALID_STATE with details.reason payout_open. Two different admins then approve it (after hold_until, which is the request time unless PAYOUT_REVIEW_HOLD_DAYS is set). V1 has no payment rail: marking it paid only writes the ledger entry (reference stub). Send an Idempotency-Key so a retry never requests twice.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key | header | string | 1-255 visible ASCII characters (a UUID is ideal). The same key + the same amount replays the first answer (Idempotent-Replayed: true); the same key with another amount is IDEMPOTENCY_KEY_REUSED. |
curl -X POST "https://staging.novelity.ai.id/api/v1/owner/payouts" \ -H "Authorization: Bearer $PLATFORM_OWNER_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{"amount_cents":800000}'{ "amount_cents": 800000}{ "payout": { "payout_id": "pay_7hq2m4xk3vn6tb5wryca", "owner_user_id": "usr_k3vn6tb5wryca7hq2m4x", "amount_cents": 800000, "amount_minor": 800000, "currency": "IDR", "formatted": "Rp800.000", "kind": "request", "status": "held", "hold_until": "2026-12-12T09:00:00.000Z", "approvals": 0, "paid_at": null, "fail_reason": null, "reference": null, "created_at": "2026-11-28T09:00:00.000Z", "updated_at": "2026-11-28T09:00:00.000Z" }}/api/v1/owner/payouts
owner tokenYour payouts
Your payout requests, newest first, cursor-paginated, optionally one status.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
status | query | requested | held | approved | paid | failed | cancelled | |
cursor | query | string | next_cursor from the previous page |
limit | query | string | Payouts per page, 1-200, default 50 |
curl "https://staging.novelity.ai.id/api/v1/owner/payouts?status=held" \ -H "Authorization: Bearer $PLATFORM_OWNER_TOKEN"{ "payouts": [ { "payout_id": "pay_7hq2m4xk3vn6tb5wryca", "owner_user_id": "usr_k3vn6tb5wryca7hq2m4x", "amount_cents": 800000, "amount_minor": 800000, "currency": "IDR", "formatted": "Rp800.000", "kind": "request", "status": "held", "hold_until": "2026-12-12T09:00:00.000Z", "approvals": 0, "paid_at": null, "fail_reason": null, "reference": null, "created_at": "2026-11-28T09:00:00.000Z", "updated_at": "2026-11-28T09:00:00.000Z" } ], "next_cursor": null}/api/v1/jobs/{job_id}/cancel
API keyCancel a held or waiting job
A held job, or a queued one not yet sent for generation, is cancelled and its reserved generations go back to the licence. A job already sent can't be recalled (INVALID_STATE, details.reason already_started); a finished one neither (job_finished). Cancelling again answers changed: false.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
job_id | path · required | string | job_… |
curl -X POST "https://staging.novelity.ai.id/api/v1/jobs/job_k3vn6tb5wryca7hq2m4x/cancel" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "job_id": "job_k3vn6tb5wryca7hq2m4x", "status": "cancelled", "changed": true, "generations_returned": 1, "message": "You cancelled this job before it ran. Nothing was generated and the generations were returned to your license."}/api/v1/jobs/{job_id}/review-request
API keyAsk for a review of a finished job's image
Asks our team to look at an image again (category quality, likeness_mismatch, label_missing or other). Finished jobs only. One open request per job and image: asking again returns it (200, created false). Our team's answer appears in resolution.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
job_id | path · required | string | job_… |
curl -X POST "https://staging.novelity.ai.id/api/v1/jobs/job_k3vn6tb5wryca7hq2m4x/review-request" \ -H "Authorization: Bearer $PLATFORM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"category":"quality","details":"The hands look wrong in this image."}'{ "category": "quality", "details": "The hands look wrong in this image."}{ "request": { "request_id": "jrq_m4xk3vn6tb5wryca7hq2", "job_id": "job_k3vn6tb5wryca7hq2m4x", "output_id": null, "kind": "review", "category": "quality", "details": "The hands look wrong in this image.", "status": "open", "resolution": null, "created_at": "2026-11-29T09:00:00.000Z", "resolved_at": null }, "created": true}{ "request": { "request_id": "jrq_m4xk3vn6tb5wryca7hq2", "job_id": "job_k3vn6tb5wryca7hq2m4x", "output_id": null, "kind": "review", "category": "quality", "details": null, "status": "open", "resolution": null, "created_at": "2026-11-29T09:00:00.000Z", "resolved_at": null }, "created": false}/api/v1/jobs/{job_id}/report
API keyReport a problem with a finished job's image
Reports a problem (category broken_file, wrong_output, offensive, rights_concern or other). Finished jobs only. One open report per job and image: reporting again returns it (200, created false). A likeness that shows someone other than the person who listed it is a takedown (/takedown), not this report.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
job_id | path · required | string | job_… |
curl -X POST "https://staging.novelity.ai.id/api/v1/jobs/job_k3vn6tb5wryca7hq2m4x/report" \ -H "Authorization: Bearer $PLATFORM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"category":"broken_file"}'{ "category": "broken_file"}{ "request": { "request_id": "jrq_m4xk3vn6tb5wryca7hq2", "job_id": "job_k3vn6tb5wryca7hq2m4x", "output_id": null, "kind": "problem", "category": "broken_file", "details": null, "status": "open", "resolution": null, "created_at": "2026-11-29T09:00:00.000Z", "resolved_at": null }, "created": true}{ "request": { "request_id": "jrq_m4xk3vn6tb5wryca7hq2", "job_id": "job_k3vn6tb5wryca7hq2m4x", "output_id": null, "kind": "problem", "category": "broken_file", "details": null, "status": "open", "resolution": null, "created_at": "2026-11-29T09:00:00.000Z", "resolved_at": null }, "created": false}/api/v1/webhooks
API keyRegister a webhook endpoint
Sends job.completed and job.failed events for your organization's jobs to a public https URL (at most 5 endpoints). The signing secret is returned once. Each delivery is a POST with a JSON body { id, type, created_at, data } and the Standard Webhooks headers webhook-id (the event id, the same on every retry), webhook-timestamp (unix seconds) and webhook-signature (v1,<base64 HMAC-SHA256 of "id.timestamp.body" with the base64 part of your whsec_ secret). Answer 2xx within 10 s; otherwise we retry after 1 min, 5 min, 30 min, 2 h and 6 h.
curl -X POST "https://staging.novelity.ai.id/api/v1/webhooks" \ -H "Authorization: Bearer $PLATFORM_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url":"https://hooks.example.com/likeness","events":["job.completed","job.failed"],"description":"Render pipeline"}'{ "url": "https://hooks.example.com/likeness", "events": [ "job.completed", "job.failed" ], "description": "Render pipeline"}{ "webhook": { "webhook_id": "whe_k3vn6tb5wryca7hq2m4x", "url": "https://hooks.example.com/likeness", "description": "Render pipeline", "events": [ "job.completed", "job.failed" ], "status": "active", "disabled_reason": null, "disabled_at": null, "consecutive_failures": 0, "secret_version": 1, "created_at": "2026-11-29T09:00:00.000Z", "stats": { "succeeded": 0, "failed": 0, "retrying": 0, "last_delivery_at": null } }, "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"}/api/v1/webhooks
API keyList your webhook endpoints
Every endpoint of your organization with its status and delivery counts.
curl "https://staging.novelity.ai.id/api/v1/webhooks" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "webhooks": [ { "webhook_id": "whe_k3vn6tb5wryca7hq2m4x", "url": "https://hooks.example.com/likeness", "description": "Render pipeline", "events": [ "job.completed", "job.failed" ], "status": "active", "disabled_reason": null, "disabled_at": null, "consecutive_failures": 0, "secret_version": 1, "created_at": "2026-11-29T09:00:00.000Z", "stats": { "succeeded": 0, "failed": 0, "retrying": 0, "last_delivery_at": null } } ]}/api/v1/webhooks/{webhook_id}/test
API keySend a test event
Queues a signed webhook.test event to the endpoint (delivered within seconds; see its deliveries). The endpoint must be active.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
webhook_id | path · required | string | whe_… |
curl -X POST "https://staging.novelity.ai.id/api/v1/webhooks/{webhook_id}/test" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "delivery": { "delivery_id": "whd_m4xk3vn6tb5wryca7hq2", "event_id": "evt_wryca7hq2m4xk3vn6tb5", "type": "webhook.test", "job_id": null, "status": "pending", "retrying": false, "attempts": 0, "last_status_code": null, "last_error": null, "next_attempt_at": null, "delivered_at": null, "test": true, "created_at": "2026-11-29T09:01:00.000Z" }}/api/v1/webhooks/{webhook_id}/deliveries
API keyThe delivery log of an endpoint
The latest deliveries (newest first, up to 50): status, attempts, the last HTTP status or error, and the next retry.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
webhook_id | path · required | string | whe_… |
curl "https://staging.novelity.ai.id/api/v1/webhooks/{webhook_id}/deliveries" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "webhook_id": "whe_k3vn6tb5wryca7hq2m4x", "deliveries": [ { "delivery_id": "whd_m4xk3vn6tb5wryca7hq2", "event_id": "evt_wryca7hq2m4xk3vn6tb5", "type": "webhook.test", "job_id": null, "status": "pending", "retrying": false, "attempts": 0, "last_status_code": null, "last_error": null, "next_attempt_at": null, "delivered_at": null, "test": true, "created_at": "2026-11-29T09:01:00.000Z" } ]}/api/v1/webhooks/{webhook_id}/disable
API keyDisable an endpoint
No new deliveries go to it; pending ones end failed. Disabling again answers changed: false.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
webhook_id | path · required | string | whe_… |
curl -X POST "https://staging.novelity.ai.id/api/v1/webhooks/{webhook_id}/disable" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "webhook": { "webhook_id": "whe_k3vn6tb5wryca7hq2m4x", "url": "https://hooks.example.com/likeness", "description": "Render pipeline", "events": [ "job.completed", "job.failed" ], "status": "disabled", "disabled_reason": "manual", "disabled_at": "2026-11-29T10:00:00.000Z", "consecutive_failures": 0, "secret_version": 1, "created_at": "2026-11-29T09:00:00.000Z", "stats": { "succeeded": 0, "failed": 0, "retrying": 0, "last_delivery_at": null } }, "changed": true}/api/v1/webhooks/{webhook_id}/enable
API keyEnable an endpoint again
Also after it was disabled for failing; its failure count restarts. Enabling an active one answers changed: false.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
webhook_id | path · required | string | whe_… |
curl -X POST "https://staging.novelity.ai.id/api/v1/webhooks/{webhook_id}/enable" \ -H "Authorization: Bearer $PLATFORM_API_KEY"{ "webhook": { "webhook_id": "whe_k3vn6tb5wryca7hq2m4x", "url": "https://hooks.example.com/likeness", "description": "Render pipeline", "events": [ "job.completed", "job.failed" ], "status": "active", "disabled_reason": null, "disabled_at": null, "consecutive_failures": 0, "secret_version": 1, "created_at": "2026-11-29T09:00:00.000Z", "stats": { "succeeded": 0, "failed": 0, "retrying": 0, "last_delivery_at": null } }, "changed": true}Machine-readable
Errors
Every failure is the same envelope. Branch on code, never on message; retry only when retryable is true (and honor Retry-After). No error asks you to wait for a person: holds are not errors, they are 202 answers.
{ "error": { "code": "LICENSE_DENIED", "message": "You have no active license for this face and pack. License a pack first.", "retryable": false, "details": { "reason": "no_active_license", "hint": "purchase_license", "pack_id": "pk_7hq2m4xk3vn6tb5wryca", "asset_id": "ip_2vq7kxm4hn3tb6wr5jyc" }, "request_id": "req_yca7hq2m4xk3vn6tb5wr" }}| Code | HTTP | Retryable | Meaning | What to do |
|---|---|---|---|---|
| UNAUTHENTICATED | 401 | no | No valid credential. details.reason: missing, malformed, unknown, revoked or disabled (the key's creator no longer has access, or the owner account is banned). | Send Authorization: Bearer with a working key or token. A revoked or disabled key never comes back: create a new one in the console. |
| FORBIDDEN | 403 | no | The wrong kind of credential for this endpoint. details.required_scope is buyer (an API key) or owner (an owner token). | Call with the credential named in details.required_scope. |
| ACCOUNT_PENDING | 403 | no | Your buyer org is still under review (decision D1: the API is for approved orgs). details.status = pending. | Wait for the review decision (we email you). Nothing to retry until then. |
| ACCOUNT_REJECTED | 403 | no | Your buyer org was not approved or is suspended (details.status: rejected or suspended). | Stop calling; contact support. Keys of this org don't work. |
| RATE_LIMITED | 429 | yes | More than 60 requests a minute on this key or token (details.scope = credential), too many failed authentications from your network (details.scope = ip), or the call check slowed this key down because its recent calls look like scraping or policy probing (details.scope = call_check, details.category). | Wait Retry-After seconds (details.retry_after_seconds), then retry the same request. |
| CALL_BLOCKED | 403 | no | The call check blocked this key or token for a while: its recent calls look like scraping or enumeration, or like targeting a real person (details.category, details.blocked_for_seconds). Our team reviews every block. | Stop and look at what your integration is doing. Calls are refused until details.blocked_for_seconds pass; contact support if this is a mistake. |
| VALIDATION_FAILED | 422 | no | The request is malformed. details.fields names each problem by the field or parameter you sent. | Fix the named fields and send again. Unknown fields and parameters are refused, not ignored. |
| NOT_FOUND | 404 | no | No such resource for this credential. Another org's job and another owner's asset look exactly like missing ones. | Check the id (ip_, job_, lic_ …). Don't retry unchanged. |
| IDEMPOTENCY_KEY_REUSED | 422 | no | This Idempotency-Key already did a different request in the last 24 hours. | Use a new key for a new request; reuse a key only to retry the identical request. |
| INSUFFICIENT_CREDITS | 402 | no | The org's credit balance doesn't cover the purchase. details: balance, required, shortfall (minor units, IDR rupiah). | A member of your org requests a top-up in the console (credits are invoiced), then retry. |
| LICENSE_DENIED | 403 | no | No license for this. details.reason: pack_not_offered (details.offered lists the packs), no_active_license or pack_not_found (details.hint = purchase_license), not_found, other_asset, revoked, pack_mismatch. | With hint purchase_license: buy a license (POST /licenses) and start the job again. With pack_not_offered: pick a pack from details.offered. |
| USE_CASE_NOT_ALLOWED | 403 | no | The use case isn't allowed for this face (details.allowed_use_cases), is hard-denied (details.reason = hard_denied), the prompt doesn't fit the license's use case, or it goes against one of the owner's limits (details.reason = owner_limit, details.limit = the text; see owner_limits in get_asset_policy). | Choose an allowed use case, or rewrite the prompt to fit the licensed use. |
| TERRITORY_MISMATCH | 403 | no | The owner licenses this face for ID-only distribution and your org distributes worldwide. | Choose another face; the territory is the owner's choice. |
| DENY_ADULT | 403 | no | The prompt is adult or sexual, or above PG-13 (details.reason = above_pg13). | Rewrite the prompt. The same prompt gets the same answer. |
| DENY_POLITICAL | 403 | no | The prompt is political (parties, candidates, elections, campaigns). | Rewrite the prompt. The same prompt gets the same answer. |
| DENY_RELIGIOUS | 403 | no | The prompt is religious campaigning. | Rewrite the prompt. The same prompt gets the same answer. |
| DENY_GAMBLING | 403 | no | The prompt promotes gambling. | Rewrite the prompt. The same prompt gets the same answer. |
| DENY_LENDING | 403 | no | The prompt promotes online lending or loans. | Rewrite the prompt. The same prompt gets the same answer. |
| DENY_CLAIM | 403 | no | The prompt makes a medical or financial claim. | Rewrite the prompt. The same prompt gets the same answer. |
| DENY_IMPERSONATION | 403 | no | The prompt casts the face as another real person. | The face may appear only as itself or a fictional character. |
| ASSET_PAUSED | 409 | no | Future use of this face is paused; new jobs are refused. A pause by the owner ends active licenses with a pro rata credit refund (D10 C4). | Don't retry in a loop. Choose another face, or check get_asset_policy later: the owner may resume. |
| ASSET_REVOKED | 409 | no | The owner revoked the likeness. Its licenses are revoked; finished jobs stay yours. | Choose another face. Future use is over. |
| ASSET_NOT_LIVE | 409 | no | The face isn't offered right now (details.reason: not_live, not_listed, not_published, listing_expired). | Choose another face. |
| NOT_SOUL_READY | 409 | no | The face can't generate: it is Listed (browse and quote only) or needs retraining (details.reason: listed, no_reference, retrain_required). | Quote it if you like; license and generate with a soul_ready face. |
| CONSENT_REQUIRED | 409 | no | The owner's likeness consent behind the trained reference is no longer active. | Choose another face. |
| CAP_REACHED | 409 | no | The license has fewer generations left than batch_size (details.remaining, cap). | Use batch_size 1, another license, or buy a new one. |
| LICENSE_EXPIRED | 409 | no | The license's window ended (details.expired_at). | Buy a new license. |
| INVALID_STATE | 409 | no | The asset can't make this change from its current status (details.status), e.g. pausing a revoked face; or a payout request that can't be made (details.reason: insufficient_balance with available_cents, payout_open with payout_id when one is already in progress, or kyc_required). | Read the status (GET /me lists your assets); don't retry unchanged. |
| INTERNAL | 500 | yes | Unexpected server error. | Retry with backoff. If it persists, contact support with error.request_id. |
Holds (202, not errors)
POST /jobs can answer 202 with { job, outcome: "held" }: the job exists and waits for a person, at most 72 hours (then it is cancelled with HOLD_EXPIRED). Nothing is reserved while it waits. Poll get_job.
| Hold | Waits for | Why |
|---|---|---|
| MANUAL_REVIEW | our trust & safety team | The prompt check was unsure (or unavailable). Most checks take minutes; nothing is reserved while it waits. |
| OWNER_REVIEW_REQUIRED | the likeness owner | The owner reviews every generation of this face (review_required in the policy). |
| ABUSE_HOLD | our trust & safety team | A takedown report on this face is open. New jobs wait until it's resolved; existing jobs stay. |
Job outcome codes
A job that ends denied, failed or cancelled carries error.code on GET /jobs/{job_id}: a refusal code from the table above for denied jobs, or one of these. Technical failures return the generations to your license.
| Code | Meaning |
|---|---|
| GENERATION_FAILED | The generation failed on our provider's side. The generations were returned to your license; try again. |
| GENERATION_NSFW | This generation couldn't be completed: our provider's content check declined it. The generations were returned to your license. Try a different prompt. |
| GENERATION_TIMEOUT | The generation took too long and was stopped. The generations were returned to your license. |
| PROVIDER_ERROR | A technical problem stopped this job. The generations were returned to your license; try again. |
| HOLD_EXPIRED | Nobody reviewed this request within 72 hours, so it was cancelled. Nothing was charged. |
| OUTPUT_WITHHELD | The finished images didn't pass our output check, so they were not released. The generations were returned to your license. |
| ASSET_PAUSED | This likeness is currently paused. Nothing was generated and no generations were used. |
| ASSET_REVOKED | The owner revoked this likeness. Future use has stopped; nothing was generated from it. |
| ASSET_NOT_LIVE | This likeness isn't available right now. |
| NOT_SOUL_READY | This likeness can't generate right now (it has no trained character reference in this environment). |
| CONSENT_REQUIRED | The owner's likeness consent for this face is no longer active. |
| LICENSE_DENIED | This license can't be used for this job. License a pack of this face first. |
| LICENSE_EXPIRED | This license's window has ended. |
| ACCOUNT_PENDING | Your buyer account is under review. We will email you when a decision is made. |
| ACCOUNT_REJECTED | This buyer account can't generate. |
| CANCELLED_BY_BUYER | You cancelled this job before it ran. Nothing was generated and the generations were returned to your license. |
| OWNER_DECLINED | The owner declined this request. |
Codes used only by the web console (uploads, consent, invites) never come back from v1: NOT_IMPLEMENTED, INVITE_INVALID, ACCOUNT_EXISTS, ALREADY_USED, FILE_TOO_LARGE, UNSUPPORTED_FILE_TYPE, IMAGE_TOO_SMALL, DUPLICATE_PHOTO, SLOT_FULL, CONSENT_STALE, CONSENT_STEPS_REQUIRED, REQUIREMENTS_NOT_MET.
Safe retries
Idempotency
POST /licenses and POST /jobs accept an Idempotency-Key header (1–255 visible ASCII characters; a UUID is ideal). Send one per intended purchase or job and reuse it only to retry that same request.
- The same key and the same request within 24 hours replays the first answer with
Idempotent-Replayed: true. Nothing is charged or reserved again. - The same key with a different request answers
IDEMPOTENCY_KEY_REUSED(422). - Keys are per org and per operation. The key is stored in the same transaction as the purchase or job, so it exists only if that request committed.
- Refused requests store nothing: after, say, a top-up, the same key is evaluated again.
Fair use
Rate limits
- 60 requests per minute per API key or owner token: a bucket of 60 that refills at 1 per second. Every answer carries
X-RateLimit-LimitandX-RateLimit-Remaining. - Over the limit:
RATE_LIMITED(429) withRetry-Afteranddetails.retry_after_seconds. It is retryable: wait, then send the same request. - Requests with a missing or invalid credential share a smaller bucket per network (30, refilling one every 2 seconds). Valid credentials are never slowed by it.
- In the closed beta the limiter lives in each server process, so it is enforced per process, like the application form's limit.
For agents
MCP server
The mcp/ package is a stdio MCP server that calls this API. It exposes 8 tools; which ones appear depends on the credentials you give it. Tool errors carry the same machine code and retryable flag.
cd mcpnpm installnpm run build # -> dist/index.jsPLATFORM_API_URL=https://staging.novelity.ai.idPLATFORM_API_KEY=sk_live_… # buyer toolsPLATFORM_OWNER_TOKEN=ot_… # owner tools (optional, either or both)claude mcp add platform \ --env PLATFORM_API_URL=https://staging.novelity.ai.id \ --env PLATFORM_API_KEY=sk_live_… \ -- node /absolute/path/to/mcp/dist/index.js{ "mcpServers": { "platform": { "command": "node", "args": [ "/absolute/path/to/mcp/dist/index.js" ], "env": { "PLATFORM_API_URL": "https://staging.novelity.ai.id", "PLATFORM_API_KEY": "sk_live_…" } } }}| Tool | REST | Credential |
|---|---|---|
| search_assets | GET /api/v1/assets | API key |
| get_asset_policy | GET /api/v1/assets/{asset_id}/policy | API key |
| quote | POST /api/v1/quote | API key |
| purchase_license | POST /api/v1/licenses | API key |
| start_job | POST /api/v1/jobs | API key |
| get_job | GET /api/v1/jobs/{job_id} | API key |
| list_usage | GET /api/v1/owner/assets/{asset_id}/usage | owner token |
| pause_asset | POST /api/v1/owner/assets/{asset_id}/pause | owner token |
start_job needs a license: when it answers LICENSE_DENIED with details.hint = purchase_license, the agent calls purchase_license and starts the job again. pause_asset stops future use at once; finished jobs stay with their buyers.
Closed beta
Phase 1 limits
- Still images only. No video, lipsync or voice.
- Packs are capped, never unlimited: Scout is 20 generations over 30 days, Episode is 80 over 60 days. 1–10 licenses per purchase.
- One job is 1 or 4 images, and each counts against the license. Aspect ratios: 1:1, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 16:9, 9:16, 21:9.
- PG-13 at most. Never allowed, for any face: adult, political, religious campaign, gambling, online lending, medical financial claim, impersonation other person.
- Only Soul Ready faces can be licensed and generated with; Listed faces are browse-and-quote only. Likeness consistency is not guaranteed.
- Credits are invoiced by our team during the beta (no card payments): an org member requests a top-up in the console.
- Output links are signed and expire within an hour; call get_job again for fresh ones. Every image is labeled “AI-generated image with licensed likeness”, visibly and in its metadata. Keep the label when you publish.