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
Sign up at /register. You get 500 free credits instantly.
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: 'gpt-4o-mini',
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.