Skip to main content
The bitHuman API lets you programmatically create, manage, and interact with avatar agents.

Base URL

https://api.bithuman.ai

Authentication

All requests require the api-secret header. Get your API secret from Developer → API Keys.
api-secret: YOUR_API_SECRET

Agent Identifiers

All endpoints use the agent code (e.g. A91XMB7113) to identify agents. This is the same value across all endpoints, referred to as {code}, {agent_code}, or {agent_id} depending on the endpoint. You receive this code when you generate an agent or find it in your Library — click any agent to see its Agent ID.

Available APIs

Common Error Format

All errors follow the same structure:
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error description",
    "httpStatus": 401
  },
  "status": "error",
  "status_code": 401
}
See the Error Reference for all error codes.
HTTP StatusMeaning
200Success
400Invalid request parameters
401Invalid or missing api-secret
402Insufficient credits
404Resource not found
413Payload too large
415Unsupported media type
422Validation error
429Rate limit exceeded
500Internal server error
503Service unavailable (workers busy)