# Rosto > Turn one consenting selfie into a living, emotionally-rich avatar that animates > in any browser — breathing, blinking, speaking (viseme lip-sync) and expressing > a full range of genuine emotion, with no AI at runtime. Rosto is an API plus an embeddable browser rig. You create an avatar once (a model stylizes the photo and builds a quality-checked set of expressions), then the served runtime animates it live in any browser. There are no model calls while the avatar plays. ## Start here - Console (bring a face to life in a browser): https://app.rosto.ai - API base: https://studio.rosto.ai - MCP server for agents (JSON-RPC, streamable HTTP): https://mcp.rosto.ai/mcp - Quickstart / developer docs: https://studio.rosto.ai/docs - OpenAPI: https://studio.rosto.ai/openapi.json (interactive explorer: https://studio.rosto.ai/api-explorer) - Avatar Package spec (the portable format, self-host + agent integration): https://studio.rosto.ai/docs-site/avatar-package ## Embed an existing avatar (a public token is the capability)
## Create via the API Authenticate with `x-api-key`. Get a key from the Console — sign in with Google, GitHub or Discord (or redeem an invite code, if you have one). 1. POST https://studio.rosto.ai/v1/avatars body: {"image_base64": "", "mime_type": "image/jpeg", "consent_attested": true} -> {"avatar": {"id": "...", "public_token": "..."}} (consent_attested MUST be true; the photo is kept encrypted only until the avatar is accepted, then deleted) 2. POST https://studio.rosto.ai/v1/avatars//frames (build the expression set; may be async) POST https://studio.rosto.ai/v1/avatars//approve (publish it: a new avatar is unapproved, and its public manifest is 404 until approved; manage scope, or press approve in the Console) body for a REAL face: {"resembles": true} — only once the person has said it looks like them; without it, 409 likeness_required. Personas and mascots need no body. add "build": true to publish AND build in one step: the build's entitlement is taken first, so a 402 purchase_required publishes nothing (GET /v1/avatars/ says build_needs_owning beforehand). 3. GET https://studio.rosto.ai/pub//manifest.json (the runtime loads this) 4. POST https://studio.rosto.ai/v1/avatars//own (buy it: one credit. Making an avatar and hosting it here are FREE; owning it unlocks the download) 5. GET https://studio.rosto.ai/v1/avatars//export (download a standalone, self-hostable ZIP: portable manifest + base + frames + rig + runnable index.html + README + AGENTS.md; requires manage scope + an OWNED avatar) 6. GET https://studio.rosto.ai/v1/avatars//stickers?captions=matched (eight looping reactions as GIF + 512px WebP, rendered from the frames at no model cost) 7. GET https://studio.rosto.ai/pub//lottie/.json (the same eight as Lottie 5.5 — one image layer per page, STEP-hold opacity; `?mode=natural` for the quieter register) ## Drive the rig (no AI at runtime) ONE CALL PER LINE. The word is what the line IS — a dialogue act, not a sentiment: rig.direct({ intent, say, audio, visemes }) — mood + state + expression + head + lip-sync, together visemes come from POST https://studio.rosto.ai/visemes {text} -> AvatarRig.trackFromAudio(buf, units). Without them the mouth is derived from SPELLING, which scores no better than animating to a different line's audio — that is the demo path, not production. rig.direct("attend") — between turns; "ponder" while you work INTENTS (14): greet await attend ponder empathize apologize reassure laugh celebrate agree disagree surprised curious farewell If you are an LLM writing the reply, return the intent in the SAME structured output — one enum field, no extra call, no added latency. Pick the act your sentence PERFORMS, not its sentiment and not the user's mood: "I'm sorry your package broke" is `empathize`, not `sad`. Most turns are attend/agree/empathize/ ponder; forcing a vivid one every turn is the fastest way to look fake. An intent is a COMPLETE performance: the same intent gives the same face whatever preceded it. Never compose one from smaller commands, never clear state first, never stack a mood to correct for the last turn. Lower-level vocabulary, for what an intent cannot say: rig.setState("idle"|"listening"|"thinking"|"speaking"|"acknowledging"|"holding") rig.setMood(mood); rig.express(emotion) rig.direct({say, audio, visemes}) // visemes: POST /visemes -> trackFromAudio rig.follow({cue: true}) // OPT-IN gaze-follow (off = she looks at the viewer); clamped, pauses // during intents, shows a cue. Or mount(el, m, {followPointer: true}), // or the avatar's Console setting. unfollow() detaches rig.command({...}) / rig.play([...]) — a JSON command stream can drive it automatically The RIG exports the vocabulary: AvatarRig.STATES / .EMOTIONS / .INTENTS. The manifest lists the FRAMES this avatar has — the pages the rig composites, not the emotions it composes from them. A missing frame dims one channel; the emotion still plays. Full standard: https://studio.rosto.ai/docs-site#drive ## Data retention and revocation - Raw photo: deleted on approve/own/delete, and within 14 days of upload at the latest. - Avatars, account, keys, credits: until you delete them (DELETE /v1/avatars/, DELETE /v1/account?confirm=delete-my-account). - Revocation: a deleted avatar or rotated token 404s at once; cached manifests live up to 60 s (max-age=60); the CDN is purged. - A deleted or revoked API key is refused on its next request. ## MCP tools (for agents) POST https://mcp.rosto.ai/mcp (JSON-RPC 2.0; discovery card: https://mcp.rosto.ai/.well-known/mcp.json) - start_free() -> approve_url + user_code + claim_code (show the person the link and the user_code; they pick it out of three and choose read-only or "may create"; keep claim_code secret, then start_free(claim_code) -> api_key + scopes; start_free(invite_code) still works) - create_avatar(api_key, image_base64, mime_type, consent) -> avatar_id, public_token (with a start_free key the avatar is pending until the PERSON confirms whose face it is, that they are an adult, and accepts it at consent_url in the Console; until then it is not public and get_embed_guide says it is waiting on them) - list_personas(api_key) / create_persona_avatar(api_key, role_id, look_id?, gender?, age_band?, skin_tone?, hair_colour?, hair_style?) (enumerated values from list_personas; setting ANY attribute drops the look's other traits, e.g. East/South Asian features, so pass skin_tone too) -> a wholly synthetic persona: no photo, no consent subject - build_frames(api_key, avatar_id) - preview(public_token, or avatar_id + api_key; verbose? for the expression list) - get_embed_guide(public_token, or avatar_id + api_key) - approve(api_key, avatar_id) (needs manage scope; a start_free key does not have it, so the person presses Accept in the Console) - own(api_key, avatar_id) -> buy the avatar; the downloadable bundle unlocks (needs manage scope too: with a start_free key the purchase is the person's) - get_credits(api_key) / buy_credits(api_key) - get_avatar(api_key, avatar_id) -> status, links, domain lock (never keys) - rotate_token(api_key, avatar_id) -> new public_token; old embeds stop at once (manage scope) - domains(api_key, avatar_id, domains?) -> read, or set the embed domain lock ([] unlocks; manage scope) - export(api_key, avatar_id) -> an OWNED avatar's self-hostable ZIP (manage scope; daily cap; over 1 MB it answers with the REST download URL instead of the bytes) Resources (resources/read): spec://avatar-package, guide://animation - find_avatars(api_key, external_ref) / delete_avatar(api_key, avatar_id or external_ref) (external_ref = YOUR id, passed at creation; delete is permanent and needs manage scope) Creating any avatar is free; `own` is the only charge. ## Invariants (always true) - Making an avatar and hosting it on Rosto (with the badge) are free; the single charge is OWNING one, which unlocks the self-hostable download. - Consent is required for every avatar; the consent record is kept even after deletion. - The uploaded photo is kept encrypted only until the avatar is accepted, then permanently deleted. - No AI at runtime: the playing avatar is a pure browser rig. - Public tokens are revocable to the CDN edge (rotate or delete). - AI-generated media is provenance-stamped (IPTC digitalSourceType: trainedAlgorithmicMedia).