Create your own avatar

Turn a portrait, a voice sample and a prompt into your own avatar: what to upload, how to write the persona, and the API call.

An avatar is a face, a voice and a personality, packaged as one agent with a short code. Use a sample avatar to start, or create your own from one portrait.

YOUR SIDEA portraitone photo of a person or a characterBITHUMAN CLOUDThe avatar is createdabout 2–2.5 hoursWHERE IT RUNSOne avatar model fileiPhone, iPad, Mac, Android, a Linux PC, aWebGPU browser, or the bitHuman cloudupload oncedownload once
Creating an avatar. You upload one portrait. Avatar creation happens in the bitHuman cloud and takes about 2 to 2.5 hours. The finished avatar model then runs on your devices (iPhone, iPad, Mac, Android, a Linux PC or a WebGPU browser) or in the bitHuman cloud.

Before you start

  • An API secret on the Creator plan or higher, and credits for the creation (pricing).
  • A portrait image at a public URL (or create one from a prompt).
  • Optionally, 3–10 seconds of clean speech for voice cloning.

1. Choose a model

You haveUse
A photo of a real personessence-2: photoreal, up to 1080p
A character, animal, robot or illustrationexpression-2: any subject
Not sureauto: people go to essence-2, everything else to expression-2

More on the difference: Models.

2. Pick the inputs

InputUse forLimits
Imagethe faceunder 10 MB; one clear figure, neutral expression, facing the camera, face unobstructed
Voicevoice cloningunder 1 minute of clean speech (MP3, WAV or M4A), no music
Promptthe personalityrequired when there is no image

What makes a good photo

One subject, in focus, facing the camera with a resting expression and the whole face visible (eyes, nose and mouth). Photos are not checked; these are the conditions the models are built for. For an animal, use a well-lit, front-facing photo with the face filling the frame.

Without a voice sample, a voice is generated to match the persona. Without a prompt, a persona is generated from the image.

3. Create the agent

curl -X POST https://api.bithuman.ai/v1/agent/generate \
  -H "Content-Type: application/json" -H "api-secret: $BITHUMAN_API_SECRET" \
  -d '{"model": "auto", "prompt": "You are a friendly receptionist.", "image": "https://example.com/headshot.jpg"}'

The response carries an agent_id. Creation takes about 2–2.5 hours for the second-generation models. You can also create an agent in the dashboard at bithuman.ai, which starts on Expression 2.

4. Wait until it is ready

Poll GET /v1/agent/status/{agent_id} every few seconds until status is ready or failed.

Check it worked

Open https://www.bithuman.ai/embed/<agent_id> in a browser and talk to it, or bithuman run <agent_id>.

Variations

Troubleshooting

SymptomCauseFix
402 INSUFFICIENT_BALANCEnot enough creditstop up or choose a plan
422 MODEL_SUBJECT_MISMATCHessence-2 for a subject that is not a photoreal personuse expression-2 or auto
failed with an image errorthe image URL is not publicly fetchablehost the image publicly and create again (the failed creation is refunded)
The likeness is offa side profile, several people or poor lightcrop to one front-facing person in good light
The voice sounds noisybackground noise or music in the samplere-record in a quiet room

Next