Documentation

Everything you need to integrate the Tchavi API: authentication, OpenAI-compatible endpoints, models, credits, and SDKs.

Get started

Get your first AI response in 3 steps.

Authenticate every request with your API key.

Point any OpenAI-compatible client at the Tchavi API.

Guides

Tchavi is a secure gateway that gives you access to multiple AI providers through one API key and one credit balance.

Receive responses token-by-token as Server-Sent Events by setting stream: true.

Run Claude Code, OpenCode, Deep Code, Codex or Cursor on Tchavi credits, paid with mobile money.

Quick answers to the most common questions about using Tchavi.

API reference

Generate chat completions from a list of messages — the primary endpoint for text generation with all supported models.

Generate and edit images from text prompts across all supported image models.

Text-to-speech and transcription (Whisper) endpoints for generating audio from text and converting audio files to text.

Generate videos from text or images asynchronously, with optional audio, resolution and aspect-ratio control.

Convert text into numeric vectors for semantic search, clustering, recommendations, and RAG pipelines.

Ask a model a fixed set of questions about a piece of text and get back typed answers with probabilities, instead of prose you have to parse.

Track the status of asynchronous operations such as video generation via the jobs endpoints.

Access 80+ AI models from OpenAI, Anthropic, Google and more through a single API, organized into budget groups.

Billing & limits

Tchavi uses a credit-based billing system — each API request consumes credits based on the model used and the number of tokens processed.

Pay for Tchavi credits with mobile money (MTN MoMo, Orange Money, M-Pesa, Airtel Money, Moov Money, Free Money, Zamtel) in 11 African countries, no bank card needed.

Rate limits depend on your account level, which is unlocked automatically based on your lifetime spend on the platform.

Tchavi returns standard HTTP status codes with a structured JSON error body.

SDKs & tools

Use the official @tchavi/sdk, the OpenAI SDK as a drop-in, or plain cURL to call the API.