Create an avatar
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:
| Body | Content type | Contents |
|---|---|---|
| Image | multipart/form-data | The 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. |
| Zip | multipart/form-data (file) or application/zip | avatar.json plus image/, voice/, prompt/prompt.txt and knowledge/. |
| JSON | application/json | The manifest, with an assets block naming each file by https URL or upload:<uploadId>. |
- Engine:
engineisv1(default) orv2. A v2 create capturesseedPreviews.countcandidates and, withseedSelection: 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_requiredwithout it). Building spends no credits. Atmee V2 HD is for Enterprise customers on custom plans; contact us for access.v2hd(Atmee V2 HD, whereGET /v1/accountreportslimits.v2Pro) builds the same way on a larger model, at 640 x 640 unlessresolutionnames another oflimits.v2ProResolutions; it needs V2 access and V2 HD on the account (Enterprise;403 v2_pro_not_in_planwithout it). Where it is not offered,engine: v2hdis503 engine_unavailable.v2pro, V2 HD's former name, is still accepted and read asv2hd. - 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, andmissingInputsnames what to add withPUT /v1/avatars/{avatarId}/appearanceorPUT /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
appearancestage with aportrait_*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-LimitandX-RateLimit-Remaining, and429 rate_limitedwhen the captures do not fit. - Scopes:
avatars:write, plusbilling:writewith asponsorblock.
| Manifest field | Rule |
|---|---|
persona | whoPrompt (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. |
previewMessage | The 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). |
previews | true generates preview clips (default off; change it with PATCH). |
seedPreviews, seedSelection | v2 only, and only with the portrait and the voice: count candidates (default 1, at most 10), and auto (default) or manual selection. |
knowledge.facts | The avatar's knowledge as text, at most 32,000 characters (400 invalid_manifest). |
knowledge.questionnaire | Answers to Creator Studio's knowledge questions (listed by GET /v1/avatars/{avatarId}/knowledge), each at most 2,000 characters. |
knowledge.descriptions | Maps a knowledge file name to a short description. |
blackoutRecovery, runtimeSeed, resolution | v2 render settings (see their schemas). v1 avatars ignore the first two and refuse resolution (400 invalid_input). |
v2 conversations do not use knowledge yet.
X-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.
- 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*11name*string1 <= length <= 100description?stringlanguage?stringvisibility?string"private""unlisted"previews?booleanpreviewMessage?stringengine?string"v1""v2""v2hd""v2pro"seedPreviews?seedSelection?string"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?RuntimeSeedThe 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.
0 <= value <= 2147483647resolution?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.
Created and ready; a render-only avatar (image without a voice) has nothing to build.
application/json- response
avatarId*stringuuidkind*AvatarKindconversational 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.
"conversational""render_only"status*stringready for a render-only avatar (nothing to build), draft for one created without its portrait or voice, building otherwise.
"building""ready""draft"missingInputs?array<>What a draft was created without; absent otherwise.
statusUrl*stringengine?AvatarEngineRender 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).
"v1""v2""v2hd"sponsor?curl -X POST 'https://api.atmanity.us/v1/avatars' \ -H 'Content-Type: application/json' \ -d '{ "schemaVersion": 1, "name": "string"}'{ "avatarId": "ac572b6e-802b-4b9e-a602-0786d4441e67", "kind": "conversational", "status": "building", "missingInputs": [ "image" ], "statusUrl": "string", "engine": "v1", "sponsor": { "transferredMicrocredits": 0, "replayed": true, "error": "string" }}
