Examples

Runnable bitHuman projects grouped by what you're building — every one is open-source. Clone, set your API secret, run.

Pick your path

Every project below is open-source under bithuman-product/bithuman-sdk-public/Examples. Each tutorial page follows the same shape: Prerequisites → Run it → What you’ll see → Full code → Next steps. Find your row and start there.

If you want to…Start withLanguageTime
Try a talking avatar end-to-end, no codeCLI — Hello, avatarCLI~2 min
The smallest streaming loop in codePython — Hello, avatarPython~5 min
Call the platform from any languageREST — Hello, avatarcurl~5 min
A talking voice assistant on a Mac/iPad/iPhoneSwift / iOS — Hello, avatarSwiftUI~15 min
An avatar on an Android phone or tabletKotlin / Android — Hello, avatarKotlin~15 min
Full voice conversation, mic in / avatar outAI voice chatPython~10 min

Note New here? The fastest end-to-end demo is the CLI — Hello, avatar: one brew install, one command, a talking avatar in your browser. No code.

No-code & smallest scripts

  • CLI — Hello, avatar — install, bithuman doctor, bithuman run. Full demo, zero code.
  • quickstart project — the smallest scripted path: API key, a model, your first render. Auto-downloads a sample avatar on first run.

Backend & voice agents — Python

The streaming runtime and LiveKit voice agents. Each repo project ships an .env.example, requirements.txt, and a docker compose stack.

  • Python — Hello, avatar — the minimal AsyncBithuman streaming loop, ~20 lines.
  • AI voice chat — OpenAI Realtime voice in, lip-synced avatar out. No server.
  • python/local-essence — Essence on your own CPU box. Ships quickstart.py, microphone.py, conversation.py, plus a web UI at http://localhost:4202.
  • python/cloud-essence — Essence on bitHuman cloud + LiveKit + browser UI. Start here for production agents.

Native apps — Swift & Kotlin

Note Honesty about Swift examples. The runnable, current ones are ios-avatar and macos-voice. The sibling macos-avatar and essence-playback examples target SDK surfaces that have not yet shipped and won’t build against the current 0.8.x XCFramework — treat them as previews. A Flutter app exists in the bithuman-apps repo as a reference app, not a published code SDK.

Web & other languages

For the REST contract see the API reference. For deployment shapes (LiveKit cloud, self-hosted GPU, embed widget) see the Guides.