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.

The Tchavi API base URL is https://tchavi.com/api/v1. Point any OpenAI-compatible client or SDK at it and keep the rest of your code.

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, Cursor, Goose, Hermes Agent or DeepSeek Harness 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 (with voice cloning) and transcription (six models to choose from) 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.

Generate a song from a description, or re-sing a track you already have, as an asynchronous job billed per track.

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 (video and music generation) via the jobs endpoints.

Access 150+ 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), no bank card needed: the countries, operators and currencies accepted.

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

Tchavi API error codes: the HTTP status, the error code and the flat JSON body, from invalid_api_key to rate_limit_exceeded.

SDKs & tools

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