Base URL
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.
The Tchavi API base URL is https://tchavi.com/api/v1. Tchavi follows the OpenAI API format, so an OpenAI SDK or any OpenAI-compatible library works after you change two values: the base URL and the API key. Every request goes to this address:
Bash
https://tchavi.com/api/v1How do I use it with the OpenAI SDK?
Set baseURL (or base_url in Python) and your 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: 'claude-haiku-5-5',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);