REST API · v1 · reference
API reference
Every endpoint of https://actoria.ai/api/v1, generated from the same schemas the server validates against. Authenticate with Authorization: Bearer act_live_…; GET endpoints take query parameters, POST endpoints a JSON body. Field names match the MCP tools one to one. Machine-readable version: openapi.json; guides and examples in the overview.
account
Who you are: plan, balance, limits, models and prices.
/api/v1/accountscope read · tool get_accountAccount, balance and limits
Who you are in Actoria: plan, token balance, whether generation is allowed, and the hard limits (actors per frame, reference caps per model, parallel videos, upload sizes). Call first in a session.
curl "https://actoria.ai/api/v1/account" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/modelsscope read · tool list_modelsGeneration models
Models available for frames (first frame of a scene), final frames and videos: which are enabled, the default, duration ranges, resolutions, cost in tokens, reference caps and what each model needs (a frame, references). Disabled models are listed with enabled=false and can't be used.
| category | enum | Omit for all categoriesframevideofinalFrame |
curl "https://actoria.ai/api/v1/models" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/estimatescope read · tool estimate_costEstimate cost
Token cost of a frame, a video or a recast before generating it (duration/resolution are clamped to the model's range, see applied). Recast is charged per second of the source video.
| kindrequired | enum | framevideorecast |
| videoModel | enum | Video/recast only; default seedance (recast: seedance | seedance_20 | seedance_mini)wan22h3h3_hqwan3seedanceseedance_miniseedance_15seedance_20 |
| durationS | integer (1–30) | Video/recast only; default 5 (recast: length of the source video) |
| resolution | enum | Video/recast only; default 720p720p1080p4k |
curl "https://actoria.ai/api/v1/estimate?kind=frame" \
-H "Authorization: Bearer $ACTORIA_API_KEY"library
Actors, props and locations — the reusable references.
/api/v1/actorsscope read · tool list_actorsList actors
Your saved actors (characters). usable=false means the actor can't be filmed yet: a photo actor needs face verification on the website, a synthetic actor needs a portrait (create_actor generates it). Use actor ids in references.
| limit | integer (1–200) | default: 100 |
curl "https://actoria.ai/api/v1/actors" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/propsscope read · tool list_propsList props
Your saved props (objects/products with reference images). Props with an image are reproduced exactly; props without one participate as text.
| limit | integer (1–200) | default: 100 |
curl "https://actoria.ai/api/v1/props" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/locationsscope read · tool list_locationsList locations
Your saved locations (places/settings). At most one location per scene.
| limit | integer (1–200) | default: 100 |
curl "https://actoria.ai/api/v1/locations" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/library/searchscope read · tool search_referencesSearch library
Case-insensitive substring search over your actors, props and locations by name/description. Returns ids to use in references.
| queryrequired | string (≤ 80 chars) | |
| kinds | array<enum> (≤ 3 items) | Default: all kinds |
curl "https://actoria.ai/api/v1/library/search?query=%E2%80%A6" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/actorsscope generate · tool create_actorCreate an actor
Create a character. source=prompt: a synthetic actor from a description/traits — a portrait sheet is generated (costs tokens, returns a job to wait_job). source=photo: a REAL person from their photo (portrait of exactly one adult) — requires consent=true and the person must pass a face check by camera; the tool returns a verification link and the actor is unusable until verified. Never describe celebrities or real people in prompts.
| namerequired | string (≤ 60 chars) | |
| source | enum | promptphotodefault: "prompt" |
| prompt | string (≤ 1000 chars) | Free-text appearance for synthetic actors (fictional) |
| traits | object | |
| ↳gender | enum | malefemale |
| ↳age | enum | 18–2525–3535–4545–6060+ |
| ↳ethnicity | string (≤ 40 chars) | |
| ↳build | string (≤ 40 chars) | |
| ↳height | string (≤ 20 chars) | |
| ↳hair | string (≤ 80 chars) | |
| ↳eyes | string (≤ 40 chars) | |
| ↳outfit | string (≤ 120 chars) | |
| ↳vibe | string (≤ 80 chars) | |
| ↳extra | string (≤ 200 chars) | |
| image | one of | photo only: {type: url|base64} of the person's portrait, or {type: asset} of a previously uploaded actor photo |
| ↳type: "actor" | object | |
| ↳typerequired | const "actor" | |
| ↳idrequired | string | Saved actor id (act_…) from list_actors. Photo actors must be verified. |
| ↳type: "prop" | object | |
| ↳typerequired | const "prop" | |
| ↳idrequired | string | Saved prop id (prp_…) from list_props |
| ↳type: "location" | object | |
| ↳typerequired | const "location" | |
| ↳idrequired | string | Saved location id (loc_…) from list_locations; at most one per scene |
| ↳type: "asset" | object | |
| ↳typerequired | const "asset" | |
| ↳idrequired | string | Asset id (ast_…) returned by upload_reference; its kind decides how it is used |
| ↳type: "frame" | object | |
| ↳typerequired | const "frame" | |
| ↳sceneId | string | Own scene id — takes that scene's frame |
| ↳which | enum | Which frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last" |
| ↳url | string | Alternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own) |
| ↳type: "url" | object | |
| ↳typerequired | const "url" | |
| ↳urlrequired | string (≤ 2048 chars, URL) | Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset. |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | Short name used in prompts (e.g. 'red sneaker') |
| ↳prompt | string (≤ 500 chars) | Text description of the object/place for the prompt |
| ↳type: "base64" | object | |
| ↳typerequired | const "base64" | |
| ↳datarequired | string | Base64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images. |
| ↳mimeType | enum | image/pngimage/jpegimage/webp |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | |
| ↳prompt | string (≤ 500 chars) | |
| consent | boolean | photo only: you confirm the right to use this person's likeness and that they will pass the face check themselvesdefault: false |
| generatePortrait | boolean | prompt only: start the portrait job right away (needed before filming)default: true |
| callbackUrl | string (≤ 2048 chars, URL) | Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the portrait job finishes — see /developers |
curl -X POST https://actoria.ai/api/v1/actors \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'/api/v1/actors/{actorId}/verificationscope generate · tool verify_actorFace verification link
Status of a photo actor's face verification and a FRESH verification link (links expire within minutes — request a new one right before use). The person in the photo opens the link on their phone and passes the camera check; after that the actor becomes usable in generations. Already verified actors are reported as such without a new link.
| actorIdrequired | string | Photo actor id (act_…) from list_actors or create_actor |
curl -X POST https://actoria.ai/api/v1/actors/act_…/verification \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'/api/v1/actors/{actorId}/invitationscope generate · tool invite_actorInvitation link for someone else to confirm their face
For a photo actor that is NOT you (e.g. the second person from a reference): creates an invitation link bound to that actor. The person opens it on their phone, confirms consent, checks the attached photo ("Is this you?") and passes the camera check — the actor becomes verified and usable. The link lives 7 days; the permission is time-based (default 7 days, up to 90) or single-use.
| actorIdrequired | string | Photo actor id (act_…) from confirm_reference_people, create_actor or list_actors |
| grantType | enum | time — valid for grantDays; single_use — one video generationtimesingle_usedefault: "time" |
| grantDays | integer (1–90) | Permission length in days for grantType=time (default 7) |
curl -X POST https://actoria.ai/api/v1/actors/act_…/invitation \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'references
Direct images (URL, base64 or multipart) as temporary references.
/api/v1/referencesscope upload · tool upload_referenceUpload a reference image
Store an image (https URL or small base64) as a reference asset: kind=frame — a first frame to animate (must contain NO people); kind=prop — an object/product; kind=location — a place/setting. The image is moderated like website uploads. Assets expire in 7 days unless save_to_library=true (prop/location become library items). Reference the result as {type: "asset", id}. Real faces are rejected here — use create_actor(source: "photo") for people.
| kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| sourcerequired | one of | |
| ↳type: "url" | object | |
| ↳typerequired | const "url" | |
| ↳urlrequired | string (≤ 2048 chars, URL) | Public https URL of a PNG/JPEG/WebP, ≤ 12 MB |
| ↳type: "base64" | object | |
| ↳typerequired | const "base64" | |
| ↳datarequired | string | Base64 image data (data: URL prefix allowed), decoded ≤ 3 MB — prefer url for larger files |
| ↳mimeType | enum | image/pngimage/jpegimage/webp |
| name | string (≤ 60 chars) | Short name used in prompts and the library |
| prompt | string (≤ 500 chars) | Text description for prompts (material, colour, what matters) |
| save_to_library | boolean | prop/location only: keep it permanently as a library itemdefault: false |
curl -X POST https://actoria.ai/api/v1/references \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"frame","source":{"type":"url","url":"https://…"}}'/api/v1/references/uploadscope upload · tool upload_referenceUpload a reference image (multipart)
Store an image (https URL or small base64) as a reference asset: kind=frame — a first frame to animate (must contain NO people); kind=prop — an object/product; kind=location — a place/setting. The image is moderated like website uploads. Assets expire in 7 days unless save_to_library=true (prop/location become library items). Reference the result as {type: "asset", id}. Real faces are rejected here — use create_actor(source: "photo") for people. This variant accepts the file itself as multipart/form-data (field `file`).
| filerequired | string | PNG, JPEG or WebP, ≤ 12 MB |
| kindrequired | enum | frame — a first frame to animate (no people); prop — an object; location — a placeframeproplocation |
| name | string (≤ 60 chars) | |
| prompt | string (≤ 500 chars) | |
| save_to_library | boolean | prop/location only: keep it permanently as a library itemdefault: false |
curl -X POST https://actoria.ai/api/v1/references/upload \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-F "file=@photo.png" \
-F "kind=prop"/api/v1/references/pending/{pendingId}/confirmscope upload · tool confirm_reference_peopleConfirm the people found in a reference → photo actors
Second step after a people_found error: the direct image (frame / prop / location) had 1–2 people, each was cut into a portrait. Confirm which of them become photo actors (optionally named); the actors are created unverified — call verify_actor for yourself or invite_actor for someone else. The image itself is attached as a reference asset only when EVERY person is confirmed (create: true for all), and it becomes usable in generations once everyone in it has passed the face check. pendingId expires in an hour.
| pendingIdrequired | string | pendingId from the people_found error (valid for one hour) |
| people | array<object> (≤ 2 items) | Per-person choices; omitted people are created with default names |
| ↳indexrequired | integer (0–1) | Person index from people_found |
| ↳name | string (≤ 60 chars) | Actor name in the library (default: Person N) |
| ↳create | boolean | false — no actor for this person; the image is then NOT attacheddefault: true |
curl -X POST https://actoria.ai/api/v1/references/pending/…/confirm \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'photos
Standalone photos — a prompt plus references, no project needed.
/api/v1/photosscope generate · tool generate_photoGenerate a photo
Generate a standalone photo from a prompt and optional references (saved actors/props/location by id, or direct images with kind prop/location) — no project or scene needed; the result appears under Photos on the Videos tab. Takes 10–60 s, so by default the call waits and returns the image. Costs the frame price (estimate_cost kind=frame). Frame-kind references are ignored — the photo is the frame. Real faces only via verified photo actors.
| promptrequired | string (≤ 15000 chars) | What the photo shows, in English (mention saved references by name if you like) |
| references | array<one of> (≤ 12 items) | Actors (≤3 for 16:9, ≤2 otherwise), props, one location, or direct images with kind prop/locationdefault: [] |
| ↳type: "actor" | object | |
| ↳typerequired | const "actor" | |
| ↳idrequired | string | Saved actor id (act_…) from list_actors. Photo actors must be verified. |
| ↳type: "prop" | object | |
| ↳typerequired | const "prop" | |
| ↳idrequired | string | Saved prop id (prp_…) from list_props |
| ↳type: "location" | object | |
| ↳typerequired | const "location" | |
| ↳idrequired | string | Saved location id (loc_…) from list_locations; at most one per scene |
| ↳type: "asset" | object | |
| ↳typerequired | const "asset" | |
| ↳idrequired | string | Asset id (ast_…) returned by upload_reference; its kind decides how it is used |
| ↳type: "frame" | object | |
| ↳typerequired | const "frame" | |
| ↳sceneId | string | Own scene id — takes that scene's frame |
| ↳which | enum | Which frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last" |
| ↳url | string | Alternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own) |
| ↳type: "url" | object | |
| ↳typerequired | const "url" | |
| ↳urlrequired | string (≤ 2048 chars, URL) | Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset. |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | Short name used in prompts (e.g. 'red sneaker') |
| ↳prompt | string (≤ 500 chars) | Text description of the object/place for the prompt |
| ↳type: "base64" | object | |
| ↳typerequired | const "base64" | |
| ↳datarequired | string | Base64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images. |
| ↳mimeType | enum | image/pngimage/jpegimage/webp |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | |
| ↳prompt | string (≤ 500 chars) | |
| aspect | enum | 16:99:161:14:5default: "16:9" |
| frameModel | enum | See list_models (category frame); default: admin default, else Nano Banana with actors / Seedream withoutnanobananakrea2qwenseedreamfarmqwen21 |
| wait | boolean | Wait for the result and return the imagedefault: true |
| waitTimeoutS | integer (5–120) | default: 90 |
| callbackUrl | string (≤ 2048 chars, URL) | Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the job finishes — see /developers |
curl -X POST https://actoria.ai/api/v1/photos \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"…"}'/api/v1/photosscope read · tool list_photosList photos
Your standalone photos (generate_photo / the Photos section of the Videos tab), newest first — finished ones with URLs, plus pending and failed ones.
| limit | integer (1–100) | default: 20 |
| status | enum | done — only finished photos; pending — only generating/failedalldonependingdefault: "all" |
curl "https://actoria.ai/api/v1/photos" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/photos/{photoId}scope read · tool get_photoPhoto status
A photo made with generate_photo: status (queued/running/succeeded/failed), ETA, and the image URL when ready.
| photoIdrequired | string | photoId from generate_photo / list_photos (prj_…) |
curl "https://actoria.ai/api/v1/photos/prj_…" \
-H "Authorization: Bearer $ACTORIA_API_KEY"generation
First frames and videos inside projects and scenes.
/api/v1/framesscope read · tool list_framesList reusable frames
Recent frames you own (first/final/last frames of scenes, keyframes) — reuse them as {type: "frame", url} references or continue from a scene's last frame. withProvenance reports whether a frame can be animated by Seedance 2.5/2.0/Lite (only frames of BytePlus origin can).
| projectId | string | |
| limit | integer (1–50) | default: 20 |
| withProvenance | boolean | Also report seedanceCompatible per frame (reads files, slower)default: false |
curl "https://actoria.ai/api/v1/frames" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/videosscope read · tool list_videosList videos
Generated videos: scene clips and finished films (Repository). Use ids/URLs for audio tools, continuation and downloads.
| projectId | string | |
| limit | integer (1–50) | default: 20 |
| include | enum | scenesfinalalldefault: "all" |
curl "https://actoria.ai/api/v1/videos" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/framesscope generate · tool generate_frameGenerate a first frame
Create the first frame (still image) of a scene from a prompt and references — saved actors/props/location by id or direct images (url/base64 with kind prop/location). Creates a project and a scene when none is given; frames take 10–60 s, so by default the call waits and returns the image. Costs tokens (see estimate_cost). Not needed for video models that build the scene from references (Seedance 2.5/2.0/Lite, H3/Wan 3 without a frame) — generate_video can go straight from references.
| prompt | string (≤ 14500 chars) | Frame composition and setting, in English. Required unless references include an actor or a locationdefault: "" |
| references | array<one of> (≤ 12 items) | Actors (≤3 for 16:9, ≤2 otherwise), props, one location, or direct images (kind prop/location). Frame-kind references are not allowed heredefault: [] |
| ↳type: "actor" | object | |
| ↳typerequired | const "actor" | |
| ↳idrequired | string | Saved actor id (act_…) from list_actors. Photo actors must be verified. |
| ↳type: "prop" | object | |
| ↳typerequired | const "prop" | |
| ↳idrequired | string | Saved prop id (prp_…) from list_props |
| ↳type: "location" | object | |
| ↳typerequired | const "location" | |
| ↳idrequired | string | Saved location id (loc_…) from list_locations; at most one per scene |
| ↳type: "asset" | object | |
| ↳typerequired | const "asset" | |
| ↳idrequired | string | Asset id (ast_…) returned by upload_reference; its kind decides how it is used |
| ↳type: "frame" | object | |
| ↳typerequired | const "frame" | |
| ↳sceneId | string | Own scene id — takes that scene's frame |
| ↳which | enum | Which frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last" |
| ↳url | string | Alternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own) |
| ↳type: "url" | object | |
| ↳typerequired | const "url" | |
| ↳urlrequired | string (≤ 2048 chars, URL) | Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset. |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | Short name used in prompts (e.g. 'red sneaker') |
| ↳prompt | string (≤ 500 chars) | Text description of the object/place for the prompt |
| ↳type: "base64" | object | |
| ↳typerequired | const "base64" | |
| ↳datarequired | string | Base64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images. |
| ↳mimeType | enum | image/pngimage/jpegimage/webp |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | |
| ↳prompt | string (≤ 500 chars) | |
| sceneId | string | Regenerate the frame of an existing scene (given references replace its cast/props/location) |
| projectId | string | Add a new scene to this project; omitted → a new project is created |
| aspect | enum | New project only16:99:161:14:5default: "16:9" |
| projectTitle | string (≤ 80 chars) | |
| frameModel | enum | Default: admin default, else Nano Banana with actors / Seedream without. Props with images force nanobanana (except qwen21, which keeps props as text)nanobananakrea2qwenseedreamfarmqwen21 |
| wait | boolean | Wait for the result and return the imagedefault: true |
| waitTimeoutS | integer (5–120) | default: 90 |
| callbackUrl | string (≤ 2048 chars, URL) | Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the job finishes — see /developers |
curl -X POST https://actoria.ai/api/v1/frames \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'/api/v1/videosscope generate · tool generate_videoGenerate a video
Generate a video. Without projectId/sceneId it is a standalone video like the Videos tab: no studio project, the clip is assembled and lands under Videos — the call returns videoId; poll get_video (or pass wait: true). With sceneId (uses its first frame), continueFromSceneId (starts from that scene's last frame, same models and camera) or projectId, a scene video is made inside that project and the call returns a job — poll with wait_job. References: actors/props/location by id or direct images; optional first frame {type: "frame", sceneId|url} or an uploaded image {type: url|base64|asset, kind: "frame"} — Seedance 2.5/2.0/Lite only animate frames of their own origin (use seedance_15, h3, wan3 or wan22 for uploaded frames). Videos take 1–15 minutes. Costs tokens (estimate_cost).
| prompt | string (≤ 14500 chars) | What happens in the shot (action, dialogue in quotes, camera notes), in English. Required for new scenesdefault: "" |
| references | array<one of> (≤ 12 items) | Optional first frame (at most one), actors, props, one locationdefault: [] |
| ↳type: "actor" | object | |
| ↳typerequired | const "actor" | |
| ↳idrequired | string | Saved actor id (act_…) from list_actors. Photo actors must be verified. |
| ↳type: "prop" | object | |
| ↳typerequired | const "prop" | |
| ↳idrequired | string | Saved prop id (prp_…) from list_props |
| ↳type: "location" | object | |
| ↳typerequired | const "location" | |
| ↳idrequired | string | Saved location id (loc_…) from list_locations; at most one per scene |
| ↳type: "asset" | object | |
| ↳typerequired | const "asset" | |
| ↳idrequired | string | Asset id (ast_…) returned by upload_reference; its kind decides how it is used |
| ↳type: "frame" | object | |
| ↳typerequired | const "frame" | |
| ↳sceneId | string | Own scene id — takes that scene's frame |
| ↳which | enum | Which frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last" |
| ↳url | string | Alternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own) |
| ↳type: "url" | object | |
| ↳typerequired | const "url" | |
| ↳urlrequired | string (≤ 2048 chars, URL) | Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset. |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | Short name used in prompts (e.g. 'red sneaker') |
| ↳prompt | string (≤ 500 chars) | Text description of the object/place for the prompt |
| ↳type: "base64" | object | |
| ↳typerequired | const "base64" | |
| ↳datarequired | string | Base64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images. |
| ↳mimeType | enum | image/pngimage/jpegimage/webp |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | |
| ↳prompt | string (≤ 500 chars) | |
| sceneId | string | Animate an existing scene |
| continueFromSceneId | string | Chain: new scene starting from the last frame of this finished scene (cast/location inherited unless references override them) |
| projectId | string | Add a new scene to this project; omitted (with no sceneId) → standalone video under Videos, no project |
| aspect | enum | New project or standalone video only16:99:161:14:5default: "16:9" |
| projectTitle | string (≤ 80 chars) | Title of the new project or of the standalone video |
| videoModel | enum | See list_models; default: admin default or the project's last scene modelwan22h3h3_hqwan3seedanceseedance_miniseedance_15seedance_20 |
| durationS | integer (1–30) | Clamped to the model's range/steps — see applied.durationS |
| resolution | enum | 1080p: seedance/seedance_15/seedance_20/wan3; 4k: seedance_20 only; others 720p720p1080p4k |
| motion | enum | lowmediumhigh |
| camera | enum | staticpandollyorbithandheld |
| audio | boolean | Generate sound (default true; wan22 is always silent) |
| wait | boolean | Wait up to waitTimeoutS for the result (standalone: the assembled video; in a project: the job) — prefer get_video / wait_job pollingdefault: false |
| waitTimeoutS | integer (5–120) | default: 120 |
| callbackUrl | string (≤ 2048 chars, URL) | Webhook: https URL that receives a signed POST when done — video.succeeded / video.failed for a standalone video, job.succeeded / job.failed in a project — see /developers |
curl -X POST https://actoria.ai/api/v1/videos \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'/api/v1/videos/{videoId}scope read · tool get_videoVideo status
A standalone video made with generate_video (no projectId/sceneId): pipeline stage, ETA, and the final mp4 URL once assembled. Pass wait: true to block up to timeoutS seconds.
| videoIdrequired | string | videoId from generate_video (prj_…) |
| wait | boolean | Wait for the final video (progress is streamed)default: false |
| timeoutS | integer (5–120) | default: 60 |
curl "https://actoria.ai/api/v1/videos/prj_…" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/video-messagesscope generate · tool generate_video_messageTalking video message: one actor says the text to camera
A short talking video message (3–15 s, MiniMax H3): one actor looks straight into the camera and says `text` verbatim. Pass exactly one actor in references (a verified photo actor or a synthetic one). Optional prompt describes the setting, outfit and mood — a first frame is generated from it (+5 tokens, ~1 min); without prompt the actor's portrait is the opening frame. Optional voice sample (2–20 s of clear speech) sets the voice timbre. The clip length follows the text (about 5 syllables per second). Standalone like generate_video: returns videoId — poll get_video or pass wait: true; the clip lands under Videos. Cost: 8 tokens per second of the clip (+5 for the generated frame, +1 assembly).
| textrequired | string (≤ 400 chars) | What the character says, verbatim: 2 words to 300 characters; ru en es fr de it pt zh ja ko ar |
| referencesrequired | array<one of> (≤ 6 items) | Exactly one actor; props or a location only together with prompt (they go into the opening frame) |
| ↳type: "actor" | object | |
| ↳typerequired | const "actor" | |
| ↳idrequired | string | Saved actor id (act_…) from list_actors. Photo actors must be verified. |
| ↳type: "prop" | object | |
| ↳typerequired | const "prop" | |
| ↳idrequired | string | Saved prop id (prp_…) from list_props |
| ↳type: "location" | object | |
| ↳typerequired | const "location" | |
| ↳idrequired | string | Saved location id (loc_…) from list_locations; at most one per scene |
| ↳type: "asset" | object | |
| ↳typerequired | const "asset" | |
| ↳idrequired | string | Asset id (ast_…) returned by upload_reference; its kind decides how it is used |
| ↳type: "frame" | object | |
| ↳typerequired | const "frame" | |
| ↳sceneId | string | Own scene id — takes that scene's frame |
| ↳which | enum | Which frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last" |
| ↳url | string | Alternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own) |
| ↳type: "url" | object | |
| ↳typerequired | const "url" | |
| ↳urlrequired | string (≤ 2048 chars, URL) | Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset. |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | Short name used in prompts (e.g. 'red sneaker') |
| ↳prompt | string (≤ 500 chars) | Text description of the object/place for the prompt |
| ↳type: "base64" | object | |
| ↳typerequired | const "base64" | |
| ↳datarequired | string | Base64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images. |
| ↳mimeType | enum | image/pngimage/jpegimage/webp |
| ↳kindrequired | enum | How to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation |
| ↳name | string (≤ 60 chars) | |
| ↳prompt | string (≤ 500 chars) | |
| prompt | string (≤ 2000 chars) | Setting, outfit, mood for the opening frame (English). Omit to use the actor's portrait as the opening frame |
| lang | enum | Language of the text; default: detected from the script (Latin letters → English, so pass fr/de/it/pt explicitly)ruenesfrdeitptzhjakoar |
| voice | object | Voice sample: 2–20 s of clear speech without music (mp3/wav/m4a/ogg/flac) — only the timbre is used, the words are not |
| ↳url | string (≤ 2048 chars, URL) | https URL of the sample |
| ↳base64 | string | The sample as base64 (≤ 10 MB) |
| ↳mimeType | enum | audio/mpegaudio/mp3audio/wavaudio/x-wavaudio/mp4audio/x-m4aaudio/oggaudio/flac |
| aspect | enum | auto = proportions of the opening frame (portrait or generated frame)auto1:19:1616:9default: "auto" |
| quality | enum | sd ≈ 0.4 MP (e.g. 640×640, fastest), hd ≈ 0.9 MP (about twice as slow)sdhddefault: "sd" |
| seed | integer (0–2147483647) | Same seed and inputs → the same clip; omitted → random (returned in message.seed) |
| projectTitle | string (≤ 80 chars) | Title of the video under Videos |
| wait | boolean | Wait up to waitTimeoutS for the assembled clip — prefer get_video pollingdefault: false |
| waitTimeoutS | integer (5–120) | default: 120 |
| callbackUrl | string (≤ 2048 chars, URL) | Webhook: https URL that receives a signed POST (video.succeeded / video.failed) once the clip is ready — see /developers |
curl -X POST https://actoria.ai/api/v1/video-messages \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"…","references":[]}'jobs
Status and long-polling of generation jobs.
/api/v1/jobs/{jobId}scope read · tool get_jobJob status
Status of a generation job (queued/running/succeeded/failed), ETA, and the result URL when done. Failed jobs refund their tokens. Accepts frame/video jobs (job_…) and recast jobs (v2v_…: preparing/ready/running/done/failed with a stage).
| jobIdrequired | string |
curl "https://actoria.ai/api/v1/jobs/job_…" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/jobs/{jobId}/waitscope read · tool wait_jobWait for a job
Block up to timeoutS (max 240) seconds for a job to finish, streaming progress; returns the result with a small preview image (frame or video poster) and links to the full files. If it times out (timedOut=true) simply call it again.
| jobIdrequired | string |
| timeoutS | integer (5–120) | default: 60 |
curl "https://actoria.ai/api/v1/jobs/job_…/wait" \
-H "Authorization: Bearer $ACTORIA_API_KEY"projects
Projects, scenes, script-to-video and assembly.
/api/v1/projectsscope read · tool list_projectsList projects
Your projects (a project = aspect ratio + ordered scenes). Generation tools create a project automatically when none is given.
| limit | integer (1–200) | default: 50 |
curl "https://actoria.ai/api/v1/projects" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/projects/{projectId}scope read · tool get_projectGet project with scenes
A project and all its scenes (cast, props, frames, video URLs, active jobs, autorun state).
| projectIdrequired | string |
curl "https://actoria.ai/api/v1/projects/prj_…" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/scenes/{sceneId}scope read · tool get_sceneGet scene
One scene: prompts, models, cast, props, location, frames (first/final/last), video URL, keyframes and the active job if any.
| sceneIdrequired | string |
curl "https://actoria.ai/api/v1/scenes/scn_…" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/projects/from-scriptscope generate · tool create_script_videoVideo from a script
Turn a script (10–20000 chars, English preferred; Russian is translated) into a project with scenes: the text is split by paragraphs/time-codes, cast is matched by names, camera/motion inferred. With autorun=true the server pipeline generates every scene's frame and video and (assemble=true) stitches the film — follow progress with get_project; the finished film appears in list_videos (final). Creation itself is free; generation charges tokens per scene.
| scriptrequired | string (≤ 20000 chars) | |
| title | string (≤ 80 chars) | default: "" |
| aspect | enum | 16:99:161:14:5default: "16:9" |
| style | string | default: "cinematic" |
| actorIds | array<string> (≤ 10 items) | default: [] |
| locationId | string | null | default: null |
| propIds | array<string> (≤ 8 items) | default: [] |
| templateId | string | null | default: null |
| sceneDurations | array<number (1–60)> (≤ 40 items) | null | default: null |
| exact | boolean | default: false |
| videoModel | enum | null | default: null |
| sceneLenS | enum | null | default: null |
| resolution | enum | null | default: null |
| camera | enum | null | default: null |
| motion | enum | null | default: null |
| singleScene | boolean | null | default: null |
| autorun | boolean | Start the generation pipeline right awaydefault: true |
| assemble | boolean | Stitch the film when all scenes are ready (1 token per scene)default: true |
| audio | boolean | Voice the farm scenes (V2A) before assemblingdefault: false |
curl -X POST https://actoria.ai/api/v1/projects/from-script \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"script":"…"}'/api/v1/projects/{projectId}/finishscope generate · tool finish_projectFinish (assemble the film)
Stitch all scenes with videos into one film (Repository). Takes up to a couple of minutes; returns the final video. 1 token per scene.
| projectIdrequired | string |
curl -X POST https://actoria.ai/api/v1/projects/prj_…/finish \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'/api/v1/projects/{projectId}/autorun/stopscope generate · tool stop_autorunStop the pipeline
Stop a running script pipeline (the current generation finishes normally, nothing new starts).
| projectIdrequired | string |
curl -X POST https://actoria.ai/api/v1/projects/prj_…/autorun/stop \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'audio
Speech, sound effects, captions and audio edits.
/api/v1/audio/sourcesscope read · tool list_audio_sourcesAudio sources
Videos and scene clips you can add speech/sound/captions to (ids for the audio tools).
curl "https://actoria.ai/api/v1/audio/sources" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/audio/speechscope generate · tool generate_speechSpeech from text (TTS)
Synthesize a voice line for a video/scene (5 tokens). Returns an audio asset (poll get_audio_asset until done), then place it with apply_audio_edit. Voices: Wise_Woman (Wise woman), Calm_Woman (Calm woman), Lively_Girl (Lively girl), Sweet_Girl_2 (Sweet girl), Friendly_Person (Friendly person), Deep_Voice_Man (Deep voice man), Casual_Guy (Casual guy), Patient_Man (Patient man), Elegant_Man (Elegant man), Young_Knight (Young knight).
| kindrequired | enum | video = a finished film from list_videos(final); scene = a scene clipvideoscene |
| idrequired | string (≤ 64 chars) | final video id (fv_…) or scene id (scn_…) |
| textrequired | string (≤ 5000 chars) | |
| voice | enum | Wise_WomanCalm_WomanLively_GirlSweet_Girl_2Friendly_PersonDeep_Voice_ManCasual_GuyPatient_ManElegant_ManYoung_Knight |
| speed | number (0.5–2) | 1 = normal |
curl -X POST https://actoria.ai/api/v1/audio/speech \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"video","id":"…","text":"…"}'/api/v1/audio/sound-effectsscope generate · tool generate_sound_effectAI sound for a fragment
Generate ambient/foley sound for a 1–30 s fragment of a video/scene (video-to-audio; cost as for scene sound). Returns an audio asset to poll with get_audio_asset.
| kindrequired | enum | video = a finished film from list_videos(final); scene = a scene clipvideoscene |
| idrequired | string (≤ 64 chars) | final video id (fv_…) or scene id (scn_…) |
| startSrequired | number (0–3600) | |
| endSrequired | number (0–3600) | |
| prompt | string (≤ 500 chars) | What the sound should be (optional) |
curl -X POST https://actoria.ai/api/v1/audio/sound-effects \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"video","id":"…","startS":1,"endS":1}'/api/v1/audio/transcriptionsscope generate · tool transcribe_audioAuto captions (speech recognition)
Transcribe the speech of a video/scene (whole or a fragment) into timed captions (5 tokens, Whisper). Poll get_audio_asset; the transcript arrives in asset.transcript.captions — put them into apply_audio_edit captions.
| kindrequired | enum | video = a finished film from list_videos(final); scene = a scene clipvideoscene |
| idrequired | string (≤ 64 chars) | final video id (fv_…) or scene id (scn_…) |
| startS | number (0–3600) | |
| endS | number (0–3600) |
curl -X POST https://actoria.ai/api/v1/audio/transcriptions \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"video","id":"…"}'/api/v1/audio/assets/{assetId}scope read · tool get_audio_assetAudio asset status
Status of a speech/sound/caption asset: running → done (url, durationS, transcript) or failed (tokens refunded).
| assetIdrequired | string |
curl "https://actoria.ai/api/v1/audio/assets/aud_…" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/audio/editsscope generate · tool apply_audio_editApply an audio edit
Render and save an audio edit onto a video/scene: mutes (intervals), clips (placed audio assets from generate_speech/generate_sound_effect with gains) and burnt-in captions. The file is replaced in place; the original is kept for revert on the website. edl: {v: 1, mutes: [{start, end}], clips: [{id, assetId, start, gain?, baseGain?, trimEnd?}], captions?: [{id, start, end, text, pos?, size?}]}.
| kindrequired | enum | video = a finished film from list_videos(final); scene = a scene clipvideoscene |
| idrequired | string (≤ 64 chars) | final video id (fv_…) or scene id (scn_…) |
| edlrequired | object | |
| ↳vrequired | const 1 | |
| ↳mutesrequired | array<object> (≤ 64 items) | |
| ↳startrequired | number (0–3600) | |
| ↳endrequired | number (0–3600) | |
| ↳clipsrequired | array<object> (≤ 32 items) | |
| ↳idrequired | string (≤ 40 chars) | |
| ↳assetIdrequired | string | |
| ↳startrequired | number (0–3600) | |
| ↳gain | number (0–2) | |
| ↳baseGain | number (0–1) | |
| ↳trimEnd | number (0.05–3600) | |
| ↳captions | array<object> (≤ 200 items) | |
| ↳idrequired | string (≤ 40 chars) | |
| ↳startrequired | number (0–3600) | |
| ↳endrequired | number (0–3600) | |
| ↳textrequired | string (≤ 300 chars) | |
| ↳pos | enum | topmiddlebottom |
| ↳size | enum | sml |
| ↳clipId | string (≤ 40 chars) | |
| baseUrl | string (≤ 300 chars) | The source URL you edited (optional consistency check) |
curl -X POST https://actoria.ai/api/v1/audio/edits \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"video","id":"…","edl":{"v":1,"mutes":[],"clips":[]}}'recast
Recast (video → video) with your actors.
/api/v1/recast/sourcesscope read · tool list_recast_sourcesRecast sources
Everything needed for a recast: your finished videos (4–30 s are eligible), uploaded reference videos (status ready/preparing), actors usable for recast (synthetic actors with a Seedream portrait, verified photo actors; photo actors flagged h3Only work with model h3 only — no face check needed on our own GPU), props and locations with images, the models with per-second prices and limits, and the pending job if one is running.
curl "https://actoria.ai/api/v1/recast/sources" \
-H "Authorization: Bearer $ACTORIA_API_KEY"/api/v1/recast/uploadsscope upload · tool upload_recast_videoUpload a reference video for recast
Fetch a video by public https URL (MP4/MOV/WebM, 4–60 s, ≤100 MB, short side ≥300 px) and register it as a recast reference: frames are moderated, then the job becomes `ready` (poll get_job). Only 30 s are used. You must hold the rights to the footage and the consent of the people in it (rightsConfirmed=true). One upload at a time, daily limit applies. Free — the recast itself is charged.
| urlrequired | string (≤ 2048 chars, URL) | Public https URL of the video file |
| title | string (≤ 80 chars) | Name for the source (default: file name) |
| rightsConfirmed | boolean | You confirm the rights to this footage and the consent of the people in itdefault: false |
curl -X POST https://actoria.ai/api/v1/recast/uploads \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://…"}'/api/v1/recastsscope generate · tool recastRecast a video
Recast (video → video): take the motion, camera and timing from a source video and replace the people in it with your actors (in order of first appearance, ≤4), optionally props and a location. Source: your finished video (4–30 s) or an upload from upload_recast_video (status ready). Charged per second of the source (see list_recast_sources prices); one recast at a time; takes minutes — poll with wait_job. Seedance 2.5 handles up to 30 s (2.0 / Lite up to 15 s).
| sourcerequired | one of | |
| ↳type: "video" | object | |
| ↳typerequired | const "video" | |
| ↳idrequired | string | Your finished video id (fin_…) from list_videos(final) / list_recast_sources |
| ↳type: "upload" | object | |
| ↳typerequired | const "upload" | |
| ↳jobIdrequired | string | Upload id (v2v_…) from upload_recast_video, status ready; an upload stays in the library and can be recast again with other actors |
| actors | array<string> (≤ 4 items) | Actor ids in order of first appearance in the video (≤4). Photo actors must be verified (except with model h3 — our own GPU, no face check); synthetic actors need a Seedream portraitdefault: [] |
| props | array<string> (≤ 8 items) | Prop ids with images to feature exactly as pictureddefault: [] |
| locationId | string | Location id with an image — replaces the video's setting |
| description | string (≤ 500 chars) | What to change besides the people (clothes, mood, setting) — English preferred. Motion, camera and timing always follow the video |
| prompt | string (≤ 15000 chars) | Advanced: a full prompt sent instead of the generated one. It must reference @Video1 and assign every attached reference as @Image1…@ImageN (actors, then props, then the location) — a prompt that skips one is rejected (422); only the ENVIRONMENT line is fitted to the chosen model (H3 recreates the setting, Seedance keeps the video's) |
| model | enum | seedance = 2.5 (≤30 s, 720p/1080p); seedance_20 (≤15 s, up to 4k); seedance_mini (≤15 s, 720p); h3 = our own GPU (6–15 s, 720p, faces used as is, no external moderation, ~20 min)seedanceseedance_20seedance_minih3default: "seedance" |
| resolution | enum | 720p1080p4kdefault: "720p" |
| generateAudio | boolean | Let Seedance generate a soundtrack (off by default)default: false |
| keepDialogue | boolean | Put the source's original soundtrack on the resultdefault: true |
| outfitFromActor | boolean | Clothing from the actor's portrait (default); false — keep the clothing of the person in the video, replace only face, hair and skindefault: true |
| wait | boolean | Wait up to waitTimeoutS for the result (prefer wait_job polling — recasts take minutes)default: false |
| waitTimeoutS | integer (5–120) | default: 120 |
| callbackUrl | string (≤ 2048 chars, URL) | Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the job finishes — see /developers |
curl -X POST https://actoria.ai/api/v1/recasts \
-H "Authorization: Bearer $ACTORIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"source":{"type":"video","id":"…"}}'Errors
Every error is JSON with a human-readable error and a stable code. Validation errors add issues, payment errors add url, rate limits add retryAfterS and a Retry-After header. One long-poll (GET /jobs/{jobId}/wait) is capped at 120 s.
| invalid_request | 422 | The request body or query doesn't match the schema (see `issues`). |
| invalid_json | 400 | The body is not valid JSON. |
| invalid_token | 401 | Missing, unknown, revoked or expired API key / token. |
| insufficient_scope | 403 | The key lacks the scope the endpoint needs (`scope` says which). |
| forbidden | 403 | The account is blocked. |
| verify_email | 403 | Confirm your e-mail on the website first. |
| paywall | 402 | No active subscription or not enough tokens (`kind`, `required`, `available`, `url`). |
| not_found | 404 | Unknown endpoint, or the object doesn't exist / isn't yours. |
| scene_busy | 409 | The scene already has a running job. |
| concurrent_limit | 409 | Too many videos rendering at once for your plan (`lane`, `limit`). |
| payload_too_large | 413 | The request body exceeds the cap. |
| prompt_unsafe | 422 | The prompt mentions minors or other prohibited content (`term`). |
| actor_unverified | 422 | A photo actor hasn't passed the face check (`url`). Not required with videoModel h3/h3_hq (our own GPU) — and for frames of such scenes on qwen21/krea2/farm. |
| people_found | 422 | A direct image has 1–2 people: confirm them with `pendingId` (`POST /references/pending/:pendingId/confirm`) — each becomes a photo actor to verify. |
| reference_people_unverified | 422 | The reference contains people whose actors haven't passed the face check yet (`actorIds`). Not required with videoModel h3/h3_hq. |
| person_in_image | 422 | People in a frame/prop/location image that can't become actors (more than two etc.) — use verified photo actors instead. |
| moderation_rejected | 422 | The image failed moderation (explicit content, a minor, no face for an actor). |
| model_disabled | 422 | The requested model is switched off — see GET /models. |
| launch_rejected | 422 | The generation rules rejected the request (message explains). |
| rate_limited | 429 | Slow down and retry after `retryAfterS` seconds (`Retry-After` header). |
| provider_unavailable | 502 | The generation provider failed; tokens are refunded. |
| disabled | 503 | The API is temporarily switched off by the administrator. |
| internal | 500 | Unexpected error on our side. |