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
library
references
photos
generation
jobs
projects
audio
recast

account

Who you are: plan, balance, limits, models and prices.

GET/api/v1/accountscope read · tool get_account

Account, 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.

Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/account" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/modelsscope read · tool list_models

Generation 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.

Query parameters
categoryenumOmit for all categoriesframevideofinalFrame
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/models" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/estimatescope read · tool estimate_cost

Estimate 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.

Query parameters
kindrequiredenumframevideorecast
videoModelenumVideo/recast only; default seedance (recast: seedance | seedance_20 | seedance_mini)wan22h3h3_hqwan3seedanceseedance_miniseedance_15seedance_20
durationSinteger (1–30)Video/recast only; default 5 (recast: length of the source video)
resolutionenumVideo/recast only; default 720p720p1080p4k
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/estimate?kind=frame" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"

library

Actors, props and locations — the reusable references.

GET/api/v1/actorsscope read · tool list_actors

List 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.

Query parameters
limitinteger (1–200)default: 100
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/actors" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/propsscope read · tool list_props

List props

Your saved props (objects/products with reference images). Props with an image are reproduced exactly; props without one participate as text.

Query parameters
limitinteger (1–200)default: 100
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/props" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/locationsscope read · tool list_locations

List locations

Your saved locations (places/settings). At most one location per scene.

Query parameters
limitinteger (1–200)default: 100
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/locations" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/library/searchscope read · tool search_references

Search library

Case-insensitive substring search over your actors, props and locations by name/description. Returns ids to use in references.

Query parameters
queryrequiredstring (≤ 80 chars)
kindsarray<enum> (≤ 3 items)Default: all kinds
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/library/search?query=%E2%80%A6" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/actorsscope generate · tool create_actor

Create 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.

Request body (application/json)
namerequiredstring (≤ 60 chars)
sourceenumpromptphotodefault: "prompt"
promptstring (≤ 1000 chars)Free-text appearance for synthetic actors (fictional)
traitsobject
↳genderenummalefemale
↳ageenum18–2525–3535–4545–6060+
↳ethnicitystring (≤ 40 chars)
↳buildstring (≤ 40 chars)
↳heightstring (≤ 20 chars)
↳hairstring (≤ 80 chars)
↳eyesstring (≤ 40 chars)
↳outfitstring (≤ 120 chars)
↳vibestring (≤ 80 chars)
↳extrastring (≤ 200 chars)
imageone ofphoto only: {type: url|base64} of the person's portrait, or {type: asset} of a previously uploaded actor photo
↳type: "actor"object
↳typerequiredconst "actor"
↳idrequiredstringSaved actor id (act_…) from list_actors. Photo actors must be verified.
↳type: "prop"object
↳typerequiredconst "prop"
↳idrequiredstringSaved prop id (prp_…) from list_props
↳type: "location"object
↳typerequiredconst "location"
↳idrequiredstringSaved location id (loc_…) from list_locations; at most one per scene
↳type: "asset"object
↳typerequiredconst "asset"
↳idrequiredstringAsset id (ast_…) returned by upload_reference; its kind decides how it is used
↳type: "frame"object
↳typerequiredconst "frame"
↳sceneIdstringOwn scene id — takes that scene's frame
↳whichenumWhich frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last"
↳urlstringAlternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own)
↳type: "url"object
↳typerequiredconst "url"
↳urlrequiredstring (≤ 2048 chars, URL)Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset.
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)Short name used in prompts (e.g. 'red sneaker')
↳promptstring (≤ 500 chars)Text description of the object/place for the prompt
↳type: "base64"object
↳typerequiredconst "base64"
↳datarequiredstringBase64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images.
↳mimeTypeenumimage/pngimage/jpegimage/webp
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)
↳promptstring (≤ 500 chars)
consentbooleanphoto only: you confirm the right to use this person's likeness and that they will pass the face check themselvesdefault: false
generatePortraitbooleanprompt only: start the portrait job right away (needed before filming)default: true
callbackUrlstring (≤ 2048 chars, URL)Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the portrait job finishes — see /developers
Responses: 201· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/actors \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"…"}'
POST/api/v1/actors/{actorId}/verificationscope generate · tool verify_actor

Face 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.

Path parameters
actorIdrequiredstringPhoto actor id (act_…) from list_actors or create_actor
Responses: 200· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/actors/act_…/verification \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/api/v1/actors/{actorId}/invitationscope generate · tool invite_actor

Invitation 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.

Path parameters
actorIdrequiredstringPhoto actor id (act_…) from confirm_reference_people, create_actor or list_actors
Request body (application/json)
grantTypeenumtime — valid for grantDays; single_use — one video generationtimesingle_usedefault: "time"
grantDaysinteger (1–90)Permission length in days for grantType=time (default 7)
Responses: 201· errors as {error, code} — see errors
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.

POST/api/v1/referencesscope upload · tool upload_reference

Upload 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.

Request body (application/json)
kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
sourcerequiredone of
↳type: "url"object
↳typerequiredconst "url"
↳urlrequiredstring (≤ 2048 chars, URL)Public https URL of a PNG/JPEG/WebP, ≤ 12 MB
↳type: "base64"object
↳typerequiredconst "base64"
↳datarequiredstringBase64 image data (data: URL prefix allowed), decoded ≤ 3 MB — prefer url for larger files
↳mimeTypeenumimage/pngimage/jpegimage/webp
namestring (≤ 60 chars)Short name used in prompts and the library
promptstring (≤ 500 chars)Text description for prompts (material, colour, what matters)
save_to_librarybooleanprop/location only: keep it permanently as a library itemdefault: false
Responses: 201· errors as {error, code} — see errors
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://…"}}'
POST/api/v1/references/uploadscope upload · tool upload_reference

Upload 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`).

Form fields (multipart/form-data)
filerequiredstringPNG, JPEG or WebP, ≤ 12 MB
kindrequiredenumframe — a first frame to animate (no people); prop — an object; location — a placeframeproplocation
namestring (≤ 60 chars)
promptstring (≤ 500 chars)
save_to_librarybooleanprop/location only: keep it permanently as a library itemdefault: false
Responses: 201· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/references/upload \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -F "file=@photo.png" \
  -F "kind=prop"
POST/api/v1/references/pending/{pendingId}/confirmscope upload · tool confirm_reference_people

Confirm 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.

Path parameters
pendingIdrequiredstringpendingId from the people_found error (valid for one hour)
Request body (application/json)
peoplearray<object> (≤ 2 items)Per-person choices; omitted people are created with default names
↳indexrequiredinteger (0–1)Person index from people_found
↳namestring (≤ 60 chars)Actor name in the library (default: Person N)
↳createbooleanfalse — no actor for this person; the image is then NOT attacheddefault: true
Responses: 201· errors as {error, code} — see errors
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.

POST/api/v1/photosscope generate · tool generate_photo

Generate 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.

Request body (application/json)
promptrequiredstring (≤ 15000 chars)What the photo shows, in English (mention saved references by name if you like)
referencesarray<one of> (≤ 12 items)Actors (≤3 for 16:9, ≤2 otherwise), props, one location, or direct images with kind prop/locationdefault: []
↳type: "actor"object
↳typerequiredconst "actor"
↳idrequiredstringSaved actor id (act_…) from list_actors. Photo actors must be verified.
↳type: "prop"object
↳typerequiredconst "prop"
↳idrequiredstringSaved prop id (prp_…) from list_props
↳type: "location"object
↳typerequiredconst "location"
↳idrequiredstringSaved location id (loc_…) from list_locations; at most one per scene
↳type: "asset"object
↳typerequiredconst "asset"
↳idrequiredstringAsset id (ast_…) returned by upload_reference; its kind decides how it is used
↳type: "frame"object
↳typerequiredconst "frame"
↳sceneIdstringOwn scene id — takes that scene's frame
↳whichenumWhich frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last"
↳urlstringAlternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own)
↳type: "url"object
↳typerequiredconst "url"
↳urlrequiredstring (≤ 2048 chars, URL)Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset.
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)Short name used in prompts (e.g. 'red sneaker')
↳promptstring (≤ 500 chars)Text description of the object/place for the prompt
↳type: "base64"object
↳typerequiredconst "base64"
↳datarequiredstringBase64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images.
↳mimeTypeenumimage/pngimage/jpegimage/webp
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)
↳promptstring (≤ 500 chars)
aspectenum16:99:161:14:5default: "16:9"
frameModelenumSee list_models (category frame); default: admin default, else Nano Banana with actors / Seedream withoutnanobananakrea2qwenseedreamfarmqwen21
waitbooleanWait for the result and return the imagedefault: true
waitTimeoutSinteger (5–120)default: 90
callbackUrlstring (≤ 2048 chars, URL)Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the job finishes — see /developers
Responses: 201202· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/photos \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"…"}'
GET/api/v1/photosscope read · tool list_photos

List photos

Your standalone photos (generate_photo / the Photos section of the Videos tab), newest first — finished ones with URLs, plus pending and failed ones.

Query parameters
limitinteger (1–100)default: 20
statusenumdone — only finished photos; pending — only generating/failedalldonependingdefault: "all"
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/photos" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/photos/{photoId}scope read · tool get_photo

Photo status

A photo made with generate_photo: status (queued/running/succeeded/failed), ETA, and the image URL when ready.

Path parameters
photoIdrequiredstringphotoId from generate_photo / list_photos (prj_…)
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/photos/prj_…" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"

generation

First frames and videos inside projects and scenes.

GET/api/v1/framesscope read · tool list_frames

List 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).

Query parameters
projectIdstring
limitinteger (1–50)default: 20
withProvenancebooleanAlso report seedanceCompatible per frame (reads files, slower)default: false
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/frames" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/videosscope read · tool list_videos

List videos

Generated videos: scene clips and finished films (Repository). Use ids/URLs for audio tools, continuation and downloads.

Query parameters
projectIdstring
limitinteger (1–50)default: 20
includeenumscenesfinalalldefault: "all"
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/videos" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/framesscope generate · tool generate_frame

Generate 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.

Request body (application/json)
promptstring (≤ 14500 chars)Frame composition and setting, in English. Required unless references include an actor or a locationdefault: ""
referencesarray<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
↳typerequiredconst "actor"
↳idrequiredstringSaved actor id (act_…) from list_actors. Photo actors must be verified.
↳type: "prop"object
↳typerequiredconst "prop"
↳idrequiredstringSaved prop id (prp_…) from list_props
↳type: "location"object
↳typerequiredconst "location"
↳idrequiredstringSaved location id (loc_…) from list_locations; at most one per scene
↳type: "asset"object
↳typerequiredconst "asset"
↳idrequiredstringAsset id (ast_…) returned by upload_reference; its kind decides how it is used
↳type: "frame"object
↳typerequiredconst "frame"
↳sceneIdstringOwn scene id — takes that scene's frame
↳whichenumWhich frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last"
↳urlstringAlternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own)
↳type: "url"object
↳typerequiredconst "url"
↳urlrequiredstring (≤ 2048 chars, URL)Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset.
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)Short name used in prompts (e.g. 'red sneaker')
↳promptstring (≤ 500 chars)Text description of the object/place for the prompt
↳type: "base64"object
↳typerequiredconst "base64"
↳datarequiredstringBase64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images.
↳mimeTypeenumimage/pngimage/jpegimage/webp
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)
↳promptstring (≤ 500 chars)
sceneIdstringRegenerate the frame of an existing scene (given references replace its cast/props/location)
projectIdstringAdd a new scene to this project; omitted → a new project is created
aspectenumNew project only16:99:161:14:5default: "16:9"
projectTitlestring (≤ 80 chars)
frameModelenumDefault: admin default, else Nano Banana with actors / Seedream without. Props with images force nanobanana (except qwen21, which keeps props as text)nanobananakrea2qwenseedreamfarmqwen21
waitbooleanWait for the result and return the imagedefault: true
waitTimeoutSinteger (5–120)default: 90
callbackUrlstring (≤ 2048 chars, URL)Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the job finishes — see /developers
Responses: 201202· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/frames \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/api/v1/videosscope generate · tool generate_video

Generate 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).

Request body (application/json)
promptstring (≤ 14500 chars)What happens in the shot (action, dialogue in quotes, camera notes), in English. Required for new scenesdefault: ""
referencesarray<one of> (≤ 12 items)Optional first frame (at most one), actors, props, one locationdefault: []
↳type: "actor"object
↳typerequiredconst "actor"
↳idrequiredstringSaved actor id (act_…) from list_actors. Photo actors must be verified.
↳type: "prop"object
↳typerequiredconst "prop"
↳idrequiredstringSaved prop id (prp_…) from list_props
↳type: "location"object
↳typerequiredconst "location"
↳idrequiredstringSaved location id (loc_…) from list_locations; at most one per scene
↳type: "asset"object
↳typerequiredconst "asset"
↳idrequiredstringAsset id (ast_…) returned by upload_reference; its kind decides how it is used
↳type: "frame"object
↳typerequiredconst "frame"
↳sceneIdstringOwn scene id — takes that scene's frame
↳whichenumWhich frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last"
↳urlstringAlternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own)
↳type: "url"object
↳typerequiredconst "url"
↳urlrequiredstring (≤ 2048 chars, URL)Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset.
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)Short name used in prompts (e.g. 'red sneaker')
↳promptstring (≤ 500 chars)Text description of the object/place for the prompt
↳type: "base64"object
↳typerequiredconst "base64"
↳datarequiredstringBase64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images.
↳mimeTypeenumimage/pngimage/jpegimage/webp
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)
↳promptstring (≤ 500 chars)
sceneIdstringAnimate an existing scene
continueFromSceneIdstringChain: new scene starting from the last frame of this finished scene (cast/location inherited unless references override them)
projectIdstringAdd a new scene to this project; omitted (with no sceneId) → standalone video under Videos, no project
aspectenumNew project or standalone video only16:99:161:14:5default: "16:9"
projectTitlestring (≤ 80 chars)Title of the new project or of the standalone video
videoModelenumSee list_models; default: admin default or the project's last scene modelwan22h3h3_hqwan3seedanceseedance_miniseedance_15seedance_20
durationSinteger (1–30)Clamped to the model's range/steps — see applied.durationS
resolutionenum1080p: seedance/seedance_15/seedance_20/wan3; 4k: seedance_20 only; others 720p720p1080p4k
motionenumlowmediumhigh
cameraenumstaticpandollyorbithandheld
audiobooleanGenerate sound (default true; wan22 is always silent)
waitbooleanWait up to waitTimeoutS for the result (standalone: the assembled video; in a project: the job) — prefer get_video / wait_job pollingdefault: false
waitTimeoutSinteger (5–120)default: 120
callbackUrlstring (≤ 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
Responses: 201202· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/videos \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
GET/api/v1/videos/{videoId}scope read · tool get_video

Video 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.

Path parameters
videoIdrequiredstringvideoId from generate_video (prj_…)
Query parameters
waitbooleanWait for the final video (progress is streamed)default: false
timeoutSinteger (5–120)default: 60
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/videos/prj_…" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/video-messagesscope generate · tool generate_video_message

Talking 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).

Request body (application/json)
textrequiredstring (≤ 400 chars)What the character says, verbatim: 2 words to 300 characters; ru en es fr de it pt zh ja ko ar
referencesrequiredarray<one of> (≤ 6 items)Exactly one actor; props or a location only together with prompt (they go into the opening frame)
↳type: "actor"object
↳typerequiredconst "actor"
↳idrequiredstringSaved actor id (act_…) from list_actors. Photo actors must be verified.
↳type: "prop"object
↳typerequiredconst "prop"
↳idrequiredstringSaved prop id (prp_…) from list_props
↳type: "location"object
↳typerequiredconst "location"
↳idrequiredstringSaved location id (loc_…) from list_locations; at most one per scene
↳type: "asset"object
↳typerequiredconst "asset"
↳idrequiredstringAsset id (ast_…) returned by upload_reference; its kind decides how it is used
↳type: "frame"object
↳typerequiredconst "frame"
↳sceneIdstringOwn scene id — takes that scene's frame
↳whichenumWhich frame of the scene: last = last frame of its finished video (best for continuation), first, finalfirstlastfinaldefault: "last"
↳urlstringAlternatively an exact frame URL previously returned by list_frames / get_scene / wait_job (must be your own)
↳type: "url"object
↳typerequiredconst "url"
↳urlrequiredstring (≤ 2048 chars, URL)Public https URL of a PNG/JPEG/WebP (≤12 MB). Fetched, moderated and stored as an asset.
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)Short name used in prompts (e.g. 'red sneaker')
↳promptstring (≤ 500 chars)Text description of the object/place for the prompt
↳type: "base64"object
↳typerequiredconst "base64"
↳datarequiredstringBase64 image data (data: URL prefix allowed). Decoded size ≤ 3 MB — prefer 'url' for larger images.
↳mimeTypeenumimage/pngimage/jpegimage/webp
↳kindrequiredenumHow to use the image: frame = first frame the video starts from (no people allowed); prop = object/product to reproduce exactly; location = place/setting referenceframeproplocation
↳namestring (≤ 60 chars)
↳promptstring (≤ 500 chars)
promptstring (≤ 2000 chars)Setting, outfit, mood for the opening frame (English). Omit to use the actor's portrait as the opening frame
langenumLanguage of the text; default: detected from the script (Latin letters → English, so pass fr/de/it/pt explicitly)ruenesfrdeitptzhjakoar
voiceobjectVoice sample: 2–20 s of clear speech without music (mp3/wav/m4a/ogg/flac) — only the timbre is used, the words are not
↳urlstring (≤ 2048 chars, URL)https URL of the sample
↳base64stringThe sample as base64 (≤ 10 MB)
↳mimeTypeenumaudio/mpegaudio/mp3audio/wavaudio/x-wavaudio/mp4audio/x-m4aaudio/oggaudio/flac
aspectenumauto = proportions of the opening frame (portrait or generated frame)auto1:19:1616:9default: "auto"
qualityenumsd ≈ 0.4 MP (e.g. 640×640, fastest), hd ≈ 0.9 MP (about twice as slow)sdhddefault: "sd"
seedinteger (0–2147483647)Same seed and inputs → the same clip; omitted → random (returned in message.seed)
projectTitlestring (≤ 80 chars)Title of the video under Videos
waitbooleanWait up to waitTimeoutS for the assembled clip — prefer get_video pollingdefault: false
waitTimeoutSinteger (5–120)default: 120
callbackUrlstring (≤ 2048 chars, URL)Webhook: https URL that receives a signed POST (video.succeeded / video.failed) once the clip is ready — see /developers
Responses: 201202· errors as {error, code} — see errors
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.

GET/api/v1/jobs/{jobId}scope read · tool get_job

Job 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).

Path parameters
jobIdrequiredstring
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/jobs/job_…" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/jobs/{jobId}/waitscope read · tool wait_job

Wait 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.

Path parameters
jobIdrequiredstring
Query parameters
timeoutSinteger (5–120)default: 60
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/jobs/job_…/wait" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"

projects

Projects, scenes, script-to-video and assembly.

GET/api/v1/projectsscope read · tool list_projects

List projects

Your projects (a project = aspect ratio + ordered scenes). Generation tools create a project automatically when none is given.

Query parameters
limitinteger (1–200)default: 50
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/projects" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/projects/{projectId}scope read · tool get_project

Get project with scenes

A project and all its scenes (cast, props, frames, video URLs, active jobs, autorun state).

Path parameters
projectIdrequiredstring
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/projects/prj_…" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
GET/api/v1/scenes/{sceneId}scope read · tool get_scene

Get scene

One scene: prompts, models, cast, props, location, frames (first/final/last), video URL, keyframes and the active job if any.

Path parameters
sceneIdrequiredstring
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/scenes/scn_…" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/projects/from-scriptscope generate · tool create_script_video

Video 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.

Request body (application/json)
scriptrequiredstring (≤ 20000 chars)
titlestring (≤ 80 chars)default: ""
aspectenum16:99:161:14:5default: "16:9"
stylestringdefault: "cinematic"
actorIdsarray<string> (≤ 10 items)default: []
locationIdstring | nulldefault: null
propIdsarray<string> (≤ 8 items)default: []
templateIdstring | nulldefault: null
sceneDurationsarray<number (1–60)> (≤ 40 items) | nulldefault: null
exactbooleandefault: false
videoModelenum | nulldefault: null
sceneLenSenum | nulldefault: null
resolutionenum | nulldefault: null
cameraenum | nulldefault: null
motionenum | nulldefault: null
singleSceneboolean | nulldefault: null
autorunbooleanStart the generation pipeline right awaydefault: true
assemblebooleanStitch the film when all scenes are ready (1 token per scene)default: true
audiobooleanVoice the farm scenes (V2A) before assemblingdefault: false
Responses: 201· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/projects/from-script \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"script":"…"}'
POST/api/v1/projects/{projectId}/finishscope generate · tool finish_project

Finish (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.

Path parameters
projectIdrequiredstring
Responses: 200· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/projects/prj_…/finish \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
POST/api/v1/projects/{projectId}/autorun/stopscope generate · tool stop_autorun

Stop the pipeline

Stop a running script pipeline (the current generation finishes normally, nothing new starts).

Path parameters
projectIdrequiredstring
Responses: 200· errors as {error, code} — see errors
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.

GET/api/v1/audio/sourcesscope read · tool list_audio_sources

Audio sources

Videos and scene clips you can add speech/sound/captions to (ids for the audio tools).

Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/audio/sources" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/audio/speechscope generate · tool generate_speech

Speech 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).

Request body (application/json)
kindrequiredenumvideo = a finished film from list_videos(final); scene = a scene clipvideoscene
idrequiredstring (≤ 64 chars)final video id (fv_…) or scene id (scn_…)
textrequiredstring (≤ 5000 chars)
voiceenumWise_WomanCalm_WomanLively_GirlSweet_Girl_2Friendly_PersonDeep_Voice_ManCasual_GuyPatient_ManElegant_ManYoung_Knight
speednumber (0.5–2)1 = normal
Responses: 202· errors as {error, code} — see errors
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":"…"}'
POST/api/v1/audio/sound-effectsscope generate · tool generate_sound_effect

AI 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.

Request body (application/json)
kindrequiredenumvideo = a finished film from list_videos(final); scene = a scene clipvideoscene
idrequiredstring (≤ 64 chars)final video id (fv_…) or scene id (scn_…)
startSrequirednumber (0–3600)
endSrequirednumber (0–3600)
promptstring (≤ 500 chars)What the sound should be (optional)
Responses: 202· errors as {error, code} — see errors
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}'
POST/api/v1/audio/transcriptionsscope generate · tool transcribe_audio

Auto 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.

Request body (application/json)
kindrequiredenumvideo = a finished film from list_videos(final); scene = a scene clipvideoscene
idrequiredstring (≤ 64 chars)final video id (fv_…) or scene id (scn_…)
startSnumber (0–3600)
endSnumber (0–3600)
Responses: 202· errors as {error, code} — see errors
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":"…"}'
GET/api/v1/audio/assets/{assetId}scope read · tool get_audio_asset

Audio asset status

Status of a speech/sound/caption asset: running → done (url, durationS, transcript) or failed (tokens refunded).

Path parameters
assetIdrequiredstring
Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/audio/assets/aud_…" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/audio/editsscope generate · tool apply_audio_edit

Apply 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?}]}.

Request body (application/json)
kindrequiredenumvideo = a finished film from list_videos(final); scene = a scene clipvideoscene
idrequiredstring (≤ 64 chars)final video id (fv_…) or scene id (scn_…)
edlrequiredobject
↳vrequiredconst 1
↳mutesrequiredarray<object> (≤ 64 items)
↳startrequirednumber (0–3600)
↳endrequirednumber (0–3600)
↳clipsrequiredarray<object> (≤ 32 items)
↳idrequiredstring (≤ 40 chars)
↳assetIdrequiredstring
↳startrequirednumber (0–3600)
↳gainnumber (0–2)
↳baseGainnumber (0–1)
↳trimEndnumber (0.05–3600)
↳captionsarray<object> (≤ 200 items)
↳idrequiredstring (≤ 40 chars)
↳startrequirednumber (0–3600)
↳endrequirednumber (0–3600)
↳textrequiredstring (≤ 300 chars)
↳posenumtopmiddlebottom
↳sizeenumsml
↳clipIdstring (≤ 40 chars)
baseUrlstring (≤ 300 chars)The source URL you edited (optional consistency check)
Responses: 200· errors as {error, code} — see errors
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.

GET/api/v1/recast/sourcesscope read · tool list_recast_sources

Recast 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.

Responses: 200· errors as {error, code} — see errors
curl "https://actoria.ai/api/v1/recast/sources" \
  -H "Authorization: Bearer $ACTORIA_API_KEY"
POST/api/v1/recast/uploadsscope upload · tool upload_recast_video

Upload 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.

Request body (application/json)
urlrequiredstring (≤ 2048 chars, URL)Public https URL of the video file
titlestring (≤ 80 chars)Name for the source (default: file name)
rightsConfirmedbooleanYou confirm the rights to this footage and the consent of the people in itdefault: false
Responses: 202· errors as {error, code} — see errors
curl -X POST https://actoria.ai/api/v1/recast/uploads \
  -H "Authorization: Bearer $ACTORIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://…"}'
POST/api/v1/recastsscope generate · tool recast

Recast 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).

Request body (application/json)
sourcerequiredone of
↳type: "video"object
↳typerequiredconst "video"
↳idrequiredstringYour finished video id (fin_…) from list_videos(final) / list_recast_sources
↳type: "upload"object
↳typerequiredconst "upload"
↳jobIdrequiredstringUpload id (v2v_…) from upload_recast_video, status ready; an upload stays in the library and can be recast again with other actors
actorsarray<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: []
propsarray<string> (≤ 8 items)Prop ids with images to feature exactly as pictureddefault: []
locationIdstringLocation id with an image — replaces the video's setting
descriptionstring (≤ 500 chars)What to change besides the people (clothes, mood, setting) — English preferred. Motion, camera and timing always follow the video
promptstring (≤ 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)
modelenumseedance = 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"
resolutionenum720p1080p4kdefault: "720p"
generateAudiobooleanLet Seedance generate a soundtrack (off by default)default: false
keepDialoguebooleanPut the source's original soundtrack on the resultdefault: true
outfitFromActorbooleanClothing from the actor's portrait (default); false — keep the clothing of the person in the video, replace only face, hair and skindefault: true
waitbooleanWait up to waitTimeoutS for the result (prefer wait_job polling — recasts take minutes)default: false
waitTimeoutSinteger (5–120)default: 120
callbackUrlstring (≤ 2048 chars, URL)Webhook: https URL that receives a signed POST (job.succeeded / job.failed) when the job finishes — see /developers
Responses: 201202· errors as {error, code} — see errors
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_request422The request body or query doesn't match the schema (see `issues`).
invalid_json400The body is not valid JSON.
invalid_token401Missing, unknown, revoked or expired API key / token.
insufficient_scope403The key lacks the scope the endpoint needs (`scope` says which).
forbidden403The account is blocked.
verify_email403Confirm your e-mail on the website first.
paywall402No active subscription or not enough tokens (`kind`, `required`, `available`, `url`).
not_found404Unknown endpoint, or the object doesn't exist / isn't yours.
scene_busy409The scene already has a running job.
concurrent_limit409Too many videos rendering at once for your plan (`lane`, `limit`).
payload_too_large413The request body exceeds the cap.
prompt_unsafe422The prompt mentions minors or other prohibited content (`term`).
actor_unverified422A 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_found422A direct image has 1–2 people: confirm them with `pendingId` (`POST /references/pending/:pendingId/confirm`) — each becomes a photo actor to verify.
reference_people_unverified422The reference contains people whose actors haven't passed the face check yet (`actorIds`). Not required with videoModel h3/h3_hq.
person_in_image422People in a frame/prop/location image that can't become actors (more than two etc.) — use verified photo actors instead.
moderation_rejected422The image failed moderation (explicit content, a minor, no face for an actor).
model_disabled422The requested model is switched off — see GET /models.
launch_rejected422The generation rules rejected the request (message explains).
rate_limited429Slow down and retry after `retryAfterS` seconds (`Retry-After` header).
provider_unavailable502The generation provider failed; tokens are refunded.
disabled503The API is temporarily switched off by the administrator.
internal500Unexpected error on our side.