Base URL
Point any OpenAI-compatible client at the Tchavi API.
All API requests go to the following base URL:
Bash
https://tchavi.com/api/v1Tchavi is 100% compatible with the OpenAI API format. If you already use the OpenAI SDK or any OpenAI-compatible library, just change the base URL and API key — the rest of your code stays the same.
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'YOUR_API_KEY',
baseURL: 'https://tchavi.com/api/v1',
});
const response = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);