Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

Stable caller-generated key. Reusing it with the same body returns the original resource; a different body returns 409.

Required string length: 1 - 255

Body

application/json
script
string
required

Exact text spoken through TTS; the brain is never invoked.

Required string length: 1 - 20000
personaId
string
required

Saved persona to snapshot. Mutually exclusive with direct configuration fields.

avatarId
string
voiceId
string
avatarModel
string
Example:

"cara-4-latest"

directorNotes
object | null
languageCode
string
Example:

"en"

voiceSpeed
number
Required range: -1 <= x <= 1
voiceGenerationOptions
Cartesia Sonic-3 · object

Voice generation options for Cartesia Sonic-3 models.

videoWidth
integer
Required range: x >= 1
videoHeight
integer
Required range: x >= 1
environment
object

Optional engine routing for the render session, as on the session token endpoint. Internal accounts only; other accounts get 403.

metadata
object

Caller metadata, up to 16 KB serialized. It is stored and returned as sent. A zero-data-retention video, which includes every video created on a regional host, doesn't store it: its responses return {}. Keep your own mapping from the video id to your records.

retentionSeconds
integer

Seconds to keep the recording, session report and job content after the job ends; Lab then deletes them within about a minute. Without a value they are kept until deleted, except with Zero Data Retention, where the default is 600 and the most 43200. Download the recording as soon as it is ready.

Required range: 300 <= x <= 2592000

Response

Accepted. Poll the returned resource.

id
string
required
Example:

"avv_123"

status
enum<string>
required
Available options:
pending,
running,
finalizing,
completed,
failed,
cancelled
truncated
boolean
required
effectiveMaxDurationSeconds
integer
required
region
enum<string> | null
required

Region the job is pinned to: eu when created on api.eu.anam.ai, us when created on api.us.anam.ai. Its session, recording and retries stay in that region. Null when created on api.anam.ai.

Available options:
eu,
us,
null
zeroDataRetention
boolean
required

Whether the job runs with Zero Data Retention, which keeps its script, and a direct request's style prompts, out of Lab's database. A persona-sourced job's director notes stay in its stored persona. Always true for a job created on a regional host.

content
object
required
createdAt
string<date-time>
required
metadata
object
required
completionReason
enum<string> | null
Available options:
script_completed,
max_duration_reached,
cancelled,
null
durationSeconds
number | null
sessionId
string | null

Underlying normal EngineSession ID. Use its recording deletion endpoint for deletion.

failure
object | null
retryOf
string | null
startedAt
string<date-time> | null
completedAt
string<date-time> | null