Atmee.aiDocs
APIAPI referenceAvatars

Create an avatar

POST
/v1/avatars

Creates an avatar from a portrait, a voice sample, a persona and knowledge. A complete avatar builds in the background (202, status: building): follow it with GET /v1/avatars/{avatarId}.

Send one of three body shapes:

BodyContent typeContents
Imagemultipart/form-dataThe portrait as the file part, plus name (and optional description). Makes a render-only avatar: 201, ready at once. Add a voice later to make it talk.
Zipmultipart/form-data (file) or application/zipavatar.json plus image/, voice/, prompt/prompt.txt and knowledge/.
JSONapplication/jsonThe manifest, with an assets block naming each file by https URL or upload:<uploadId>.
  • Engine: engine is v1 (default) or v2. A v2 create captures seedPreviews.count candidates and, with seedSelection: auto (default), serves the first that completes. Building Atmee V2 needs Atmee V2 access: Pro and up, or an invite code below Pro (403 v2_access_required without it). Building spends no credits. Atmee V2 HD is for Enterprise customers on custom plans; contact us for access. v2hd (Atmee V2 HD, where GET /v1/account reports limits.v2Pro) builds the same way on a larger model, at 640 x 640 unless resolution names another of limits.v2ProResolutions; it needs V2 access and V2 HD on the account (Enterprise; 403 v2_pro_not_in_plan without it). Where it is not offered, engine: v2hd is 503 engine_unavailable. v2pro, V2 HD's former name, is still accepted and read as v2hd.
  • Drafts: the portrait and the voice are optional in zip and JSON bodies. Without either (other than a v1 avatar with a portrait, which is render-only) the avatar is a draft, and missingInputs names what to add with PUT /v1/avatars/{avatarId}/appearance or PUT /v1/avatars/{avatarId}/voice.
  • Portrait: use a front-facing photo of one person, head and shoulders, the face at least a third of the frame, in even light, with the lips slightly parted. A clearly bad portrait fails the appearance stage with a portrait_* reason.
  • Uploads: a create that succeeds consumes its uploads; one that fails leaves them usable for a retry.
  • Captures count against the account's limit of 10 queued or running. A v2 create returns X-RateLimit-Limit and X-RateLimit-Remaining, and 429 rate_limited when the captures do not fit.
  • Scopes: avatars:write, plus billing:write with a sponsor block.
Manifest fieldRule
personawhoPrompt (who the avatar is), whatPrompt (what it does with the visitor; in a zip, prompt/prompt.txt instead, not both), preferredAlias, spokenName, knownAliases, greeting, selfIntroduction (derived from whoPrompt when absent), guardrails, conversationalHabits. personality and scenario are older names of whoPrompt and whatPrompt; a field under both names is 400 invalid_manifest.
previewMessageThe line preview clips speak; omit it for a default sentence in the avatar's language. On v2 at most 300 Unicode code points (400 preview_message_too_long).
previewstrue generates preview clips (default off; change it with PATCH).
seedPreviews, seedSelectionv2 only, and only with the portrait and the voice: count candidates (default 1, at most 10), and auto (default) or manual selection.
knowledge.factsThe avatar's knowledge as text, at most 32,000 characters (400 invalid_manifest).
knowledge.questionnaireAnswers to Creator Studio's knowledge questions (listed by GET /v1/avatars/{avatarId}/knowledge), each at most 2,000 characters.
knowledge.descriptionsMaps a knowledge file name to a short description.
blackoutRecovery, runtimeSeed, resolutionv2 render settings (see their schemas). v1 avatars ignore the first two and refuse resolution (400 invalid_input).

v2 conversations do not use knowledge yet.

Authorization

headerX-Api-Key<token>

Your secret API key (sk_atmee_...; older keys start sk_live_), sent as X-Api-Key. Keep it on your server and never send it to a browser.

Request Body

  1. body

avatar.json plus an assets block. Field rules match the zip manifest and are enforced by the service (400 invalid_manifest, naming the field); only the shape is checked here.

schemaVersion*1
Value in1
name*string
Length1 <= length <= 100
description?string
language?string
visibility?string
Value in"private""unlisted"
previews?boolean
previewMessage?string
engine?string
Value in"v1""v2""v2hd""v2pro"
seedPreviews?
seedSelection?string
Value in"auto""manual"
blackoutRecovery?

Blackout recovery of the v2 renderer. While the avatar listens, it screens each generated chunk for a fade to black (or fully black frames) and shows a healthy listening clip in place of a failed one, returning to live frames on the first healthy chunk. On by default. Send only the settings to change; an absent or null one keeps its current value (on create: its default). Ignored for v1 avatars (the setting exists only on the v2 renderer): nothing is stored and the rest of the request behaves as without it. It changes how sessions render, never the avatar's build: no candidate is captured or cancelled. A change applies from the next session.

runtimeSeed?RuntimeSeed

The v2 renderer's runtime seed: it seeds a session's noise and motion after the first chunk, so another seed gives the same avatar different movement; the serving candidate stays the same. Default 42 (the renderer default; send 42 to go back to it). Absent or null keeps the current value (on create: the default). Ignored for v1 avatars: nothing is stored and the rest of the request behaves as without it. It is no build input: nothing is captured or rebuilt, and a change applies from the next session.

Range0 <= value <= 2147483647
resolution?

A v2 avatar's frame size in pixels: width and height are each a multiple of 32 from 256 to 1024, and width x height is at most 262,144 (512 x 512); a larger frame is 400 invalid_manifest. Default 512 x 512 (square). A deployment offers only some sizes (512 x 512 always; GET /v1/account limits.v2Resolutions lists them): another is 400 invalid_input ("resolution WxH is not offered; offered: ..."). On an avatar it is a build input of v2 avatars only (400 invalid_input for a v1 avatar): the portrait is preprocessed at that size, so a change on PATCH builds a new version with new candidates, like a new portrait; sending the current size again builds nothing. Absent or null keeps the current size (on create: the default).

Atmee V2 HD is for Enterprise customers on custom plans; contact us for access. A v2hd avatar has its own rule and sizes: at most 414,720 pixels (864 x 480), default 640 x 640, and only the sizes limits.v2ProResolutions lists (640 x 640 always; e.g. 864 x 480, 480 x 864, 736 x 544, 544 x 736); 512 x 512 and the other v2 sizes are not V2 HD sizes.

voice?
persona?
knowledge?
sponsor?
assets?

The files of a JSON create, by URL. Same limits as the zip folders (image jpg/png/webp <=10 MB, voice 10-60 s <=12 MB, knowledge <=20 files). The image is the portrait; front-facing, face at least about a third of the frame, lips slightly parted (see the operation). With an image and no voice a v1 avatar is render-only; without the image (or a v2 one without the voice) it is a draft.

Response Body

Created and ready; a render-only avatar (image without a voice) has nothing to build.

application/json
  1. response
avatarId*string
Formatuuid
kind*AvatarKind

conversational avatars have a voice and a persona and can run a full Atmanity session once built. render_only avatars have a portrait only: they are ready immediately and render video for an external agent, but readyToChat stays false until a voice is added via PUT /voice.

Value in"conversational""render_only"
status*string

ready for a render-only avatar (nothing to build), draft for one created without its portrait or voice, building otherwise.

Value in"building""ready""draft"
missingInputs?array<>

What a draft was created without; absent otherwise.

statusUrl*string
engine?AvatarEngine

Render engine: v1, the original renderer, or v2, which serves a selected candidate (see GET /v1/avatars/{avatarId}/candidates). Atmee V2 HD is for Enterprise customers on custom plans; contact us for access. Or v2hd (Atmee V2 HD), a larger v2 model on its own GPU pool: it builds, previews and serves exactly like v2 (candidates, versions, conductor, seeds) at larger frame sizes (resolution, 640 x 640 by default; GET /v1/account limits.v2ProResolutions), at its own per-minute rates (GET /v1/account pricing, sessionV2HdPerMinuteMicrocredits and the like). Creating v2hd needs Atmee V2 access and V2 HD on the account (Enterprise; 403 v2_pro_not_in_plan; limits.v2Pro), and is offered only where limits.v2Pro is reported (elsewhere 503 engine_unavailable).

Value in"v1""v2""v2hd"
sponsor?
Example Request
curl -X POST 'https://api.atmanity.us/v1/avatars' \  -H 'Content-Type: application/json' \  -d '{  "schemaVersion": 1,  "name": "string"}'
Example Response
{  "avatarId": "ac572b6e-802b-4b9e-a602-0786d4441e67",  "kind": "conversational",  "status": "building",  "missingInputs": [    "image"  ],  "statusUrl": "string",  "engine": "v1",  "sponsor": {    "transferredMicrocredits": 0,    "replayed": true,    "error": "string"  }}