Actors
An Actor is a recurring on-camera character for a project, with a portrait and a reference sheet. You can list and read them freely. Creating or regenerating one costs credits, so the API never charges directly: it parks a priced Approve card in the owner's chat, and the run starts only when a signed-in person approves it.
- Your serverAsks for an ActorThe answer is 202 with an approval id. Nothing is charged.
- BrainpercentParks an Approve cardIn the owner’s chat, with the price.
- The ownerApproves in the appOnly now is the run charged and started.
- Your serverPolls the ActorUntil status is ready. A failed run is refunded.
| Method | Path | Needs | Cost |
|---|---|---|---|
| GET | /api/v1/actors?project_id=… | read | Free |
| GET | /api/v1/actors/{id} | read | Free |
| POST | /api/v1/actors | write | Free to request. The approved run is charged. |
| POST | /api/v1/actors/{id}/regenerate | write | Free to request. The approved run is charged. |
| GET | /api/v1/actors/approvals/{id} | read | Free |
/api/v1/actorsEvery Actor in one of your projects. Not paginated; meta.total is the count.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| project_id | uuid | Required | Your project |
curl "https://www.brainpercent.app/api/v1/actors?project_id=1f8b4518-128d-4b2c-8b81-aa3939dbb7b5" \
-H "Authorization: Bearer $BP_KEY"{
"success": true,
"data": [
{
"id": "4f94f23c-8be6-4808-a935-f9085e22d479",
"project_id": "1f8b4518-128d-4b2c-8b81-aa3939dbb7b5",
"name": "Volt",
"role": "brand host",
"background_story": "Volt speaks with quick energy and guides viewers through fast wins.",
"status": "ready",
"is_default": false,
"origin": "generated",
"style": "photoreal",
"portrait_url": "https://…/portrait.png",
"sheet": [
{
"view": "front",
"label": "Front",
"url": "https://…/front.png"
}
],
"reference_photo_count": 2,
"stage": null,
"error_message": null,
"created_at": "2026-10-20T10:00:00+00:00",
"updated_at": "2026-10-20T10:04:00+00:00"
}
],
"meta": {
"timestamp": "2026-10-29T15:40:14.123Z",
"total": 1
}
}/api/v1/actors/:idOne Actor plus latest_job. Poll this after an approved run: status goes generating, then ready (or failed, which is refunded). latest_job.state follows the paid job: charged, processing, completed or refunded.
curl https://www.brainpercent.app/api/v1/actors/4f94f23c-8be6-4808-a935-f9085e22d479 \
-H "Authorization: Bearer $BP_KEY"{
"success": true,
"data": {
"id": "4f94f23c-8be6-4808-a935-f9085e22d479",
"name": "Volt",
"status": "ready",
"portrait_url": "https://…/portrait.png",
"latest_job": {
"state": "completed",
"updated_at": "2026-10-20T10:04:00+00:00"
}
},
"meta": {
"timestamp": "2026-10-29T15:40:14.123Z"
}
}/api/v1/actorsAsk for a new Actor. Nothing is charged here. The response is 202 with an approval_id, the credit_cost the owner will be asked to approve, and approve_in, the chat link where they approve it. The card expires at expires_at.
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| project_id | uuid | Required | Your project |
| brief | string | Required | Who the Actor is, 40 to 1500 characters |
| style | string | Optional | photoreal, stylized, illustrated, render3d |
| reference_image_urls | string[] | Optional | 1 to 5 https image URLs of the real person or character |
| reference_actor_id | uuid | Optional | Build a new Actor from the original photos stored on an existing one |
| green_screen | boolean | Optional | Ask for a green-screen sheet |
| tier | string | Optional | Character type: normal, freak, total, insects, frogs, cats, dogs, capybaras, birds |
| selection | object | Optional | Character options, category key to a list of option keys (lowercase, digits, underscore) |
| thread_id | uuid | Optional | Put the card in an existing chat thread of the same project |
curl -X POST https://www.brainpercent.app/api/v1/actors \
-H "Authorization: Bearer $BP_KEY" \
-H "Content-Type: application/json" \
-d '{
"project_id": "1f8b4518-128d-4b2c-8b81-aa3939dbb7b5",
"brief": "A warm, expert barista in her thirties who explains brewing simply.",
"style": "photoreal"
}'{
"success": true,
"data": {
"status": "awaiting_approval",
"approval_id": "9a1c2d3e-4f50-4617-8a9b-0c1d2e3f4a5b",
"actor_id": "4f94f23c-8be6-4808-a935-f9085e22d479",
"reference_photo_count": 0,
"thread_id": "c2d3e4f5-0617-4829-9a0b-1c2d3e4f5a6b",
"credit_cost": 1.2,
"summary": "Create an Actor",
"expires_at": "2026-10-30T15:40:14.123Z",
"charged": false,
"approve_in": "https://www.brainpercent.app/chat?thread=c2d3e4f5-0617-4829-9a0b-1c2d3e4f5a6b",
"poll_url": "/api/v1/actors/approvals/9a1c2d3e-4f50-4617-8a9b-0c1d2e3f4a5b",
"actor_url": "/api/v1/actors/4f94f23c-8be6-4808-a935-f9085e22d479"
},
"meta": {
"timestamp": "2026-10-29T15:40:14.123Z"
}
}The credit_cost in the example is illustrative; the response carries the live price for that request.
/api/v1/actors/:id/regenerateAsk for a new sheet for an existing Actor. Same approval flow and 202 body as create. The Actor's original uploads are reused unless you send reference_image_urls; the current sheet keeps working until the new one is saved. 409 while the Actor is already generating.
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| brief | string | Required | 40 to 1500 characters |
| style | string | Optional | photoreal, stylized, illustrated, render3d |
| reference_image_urls | string[] | Optional | 1 to 5 https image URLs |
| green_screen | boolean | Optional | Ask for a green-screen sheet |
| thread_id | uuid | Optional | Existing chat thread of the same project |
curl -X POST https://www.brainpercent.app/api/v1/actors/4f94f23c-8be6-4808-a935-f9085e22d479/regenerate \
-H "Authorization: Bearer $BP_KEY" \
-H "Content-Type: application/json" \
-d '{"brief": "Same barista, now in a bright cafe with morning light."}'{
"success": true,
"data": {
"status": "awaiting_approval",
"approval_id": "9a1c2d3e-4f50-4617-8a9b-0c1d2e3f4a5b",
"actor_id": "4f94f23c-8be6-4808-a935-f9085e22d479",
"charged": false
},
"meta": {
"timestamp": "2026-10-29T15:40:14.123Z"
}
}/api/v1/actors/approvals/:idWhere a parked card stands. There is no approve route on the API: approving is always a person in the app.
curl https://www.brainpercent.app/api/v1/actors/approvals/9a1c2d3e-4f50-4617-8a9b-0c1d2e3f4a5b \
-H "Authorization: Bearer $BP_KEY"{
"success": true,
"data": {
"approval_id": "9a1c2d3e-4f50-4617-8a9b-0c1d2e3f4a5b",
"thread_id": "c2d3e4f5-0617-4829-9a0b-1c2d3e4f5a6b",
"state": "approved",
"executed": true,
"summary": "Create an Actor",
"credit_cost": 1.2,
"expires_at": "2026-10-30T15:40:14.123Z",
"decided_at": "2026-10-29T15:52:02.000Z"
},
"meta": {
"timestamp": "2026-10-29T15:40:14.123Z"
}
}Approval states
| state | Meaning |
|---|---|
| pending | Waiting for the owner. Nothing charged. |
| approved | Approved. When executed is true the paid run started; poll the Actor. |
| rejected | Declined. Nothing ran, nothing was charged. |
| expired | Not answered in time. Nothing ran, nothing was charged. |
Errors
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | Bad id, brief too short or long, unknown field, non-https image URL |
| 403 | FORBIDDEN | No projects scope, or no write on a POST |
| 404 | NOT_FOUND | Project, Actor, thread or approval is not yours |
| 409 | CONFLICT | Regenerate while the Actor is already generating |
| 409 | THREAD_PROJECT_MISMATCH | thread_id belongs to another project |
| 422 | ACTOR_REQUEST_REJECTED | The request cannot be prepared (the message says why) |
| 503 | APPROVAL_UNAVAILABLE | The approval card could not be parked right now |