Quick Start
Get your first AI response in 3 steps.
Tchavi is an OpenAI-compatible AI API gateway. Follow these three steps to make your first request and get an AI response back.
1. Create an account and add credits
Sign up at /register, then buy credits from your billing dashboard with mobile money (from 1 000 FCFA). Your first top-up carries +150 bonus credits, once per account, and unlocks every model in the catalogue.
2. Create an API key
Go to your API Keys dashboard and create a new key. Copy it. You won't see it again.
3. Make your first request
import Tchavi from '@tchavi/sdk';
const client = new Tchavi({ apiKey: 'YOUR_API_KEY' });
const response = await client.chat.completions.create({
model: 'claude-haiku-5-5',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);
console.log('Credits used:', response.tchavi.credits_used);Next steps
- Learn how to keep your key safe in Authentication.
- See the Base URL and OpenAI compatibility details.