API Platform

REST API for generating avatars, synthesizing voice, driving live sessions, and embedding agents — from any language.

What the API does

The bitHuman API lets you create, manage, and drive avatar agents from any programming language. Reach for it when you don’t need a native SDK — backends, CI scripts, or platforms where Python, Swift, or Kotlin aren’t a fit.

Everything is plain HTTPS + JSON. One header authenticates every request.

Base URL

https://api.bithuman.ai

All endpoints are relative to this URL and require an api-secret header. Get a free API secret →

Authentication

Pass your API secret in the api-secret header on every request:

api-secret: YOUR_API_SECRET

Treat the secret like a password — never commit it to source control and never embed it in client apps. For browser-side embeds, mint a short-lived token with the embed token flow instead. See Authentication for the full model.

What you can build

  • Generate avatars — turn a prompt, portrait, and voice sample into a new agent. See Agents.
  • Synthesize voice — text-to-speech in 31 languages with 10 built-in voices, plus an OpenAI-compatible drop-in. See Voice.
  • Drive live sessions — make a hosted agent speak or inject silent knowledge into an active room. See Agents.
  • Add gestures — generate and toggle conversational animations. See Dynamics.
  • Embed in any page — mint a token and drop an iframe. See Embedding.
  • Track credits — read balance and per-mode minute estimates. See Billing.

How agents are identified

Every endpoint identifies an agent by its agent code — a short string like A91XMB7113. You receive one when you generate an agent, or find it in your Library (click an agent to reveal the code).

Note Different endpoint paths use slightly different parameter names for the same value: {code}, {agent_code}, or {agent_id}. They all expect the same string — the agent code shown in your Library.

Next steps

Status and versioning

v1 endpoints are generally available. Breaking changes ship under new path prefixes (/v2/...); new endpoints land additively without forcing migrations. Live API status is at status.bithuman.ai.