Models
Access 100+ AI models from OpenAI, Anthropic, Google and more through a single API, organized into budget groups.
Tchavi gives you access to 100+ AI models from OpenAI, Anthropic, Google, and more. All through a single API. Models are organized into budget groups so you can pick the right cost-to-quality tradeoff for each task.
Naming a model
A model is named by its id on its own: claude-haiku-5-5, claude-sonnet-4-6, kling-v4. That is what the catalogue lists, what GET /v1/models returns, and what every example in these docs uses.
If you are porting code from another AI gateway, your model names may carry the creator in front of a slash. Those work here too. We read the part after the last slash and ignore everything before it, so both of these reach the same model:
{ "model": "claude-haiku-5-5" }
{ "model": "anthropic/claude-haiku-5-5" }The same applies to discovery: GET /v1/models/anthropic/claude-haiku-5-5 returns what GET /v1/models/claude-haiku-5-5 returns.
Two things to know:
- Whichever form you send, the response names the model by its plain id, with no prefix.
- The prefix is ignored rather than checked.
openai/claude-sonnet-4-6calls Claude Sonnet 4.6, because the part after the slash is the part that counts. When you change a model in your code, change the whole string.
Credit costs
Every request is billed in credits. The unit depends on the model type:
| Model type | Billing unit |
|---|---|
| Chat / text | Credits per 1K input tokens and per 1K output tokens |
| Image | Flat credits per image |
| Text-to-speech | Credits per 1K characters |
| Transcription | Credits per minute of audio |
| Video | Credits per second of output (resolution-dependent). Motion-control models reserve the maximum length upfront and refund the unused part on completion |
Browse the catalogue
The full, always-current list of models (with each model's provider, type and exact credit cost) lives in the live catalogue.
See all available models on the Models page. New models are added within 48 hours of release.
List models from the API
/v1/models/v1/models/:idOpenAI-compatible discovery. Both endpoints take your API key like any other call but are free: they consume no credits, do not count toward your rate limits and are not logged as usage. The shape matches OpenAI's /v1/models, plus a tchavi object per model with its pricing and capabilities. OpenAI clients ignore it.
{
"id": "claude-haiku-5-5",
"object": "model",
"created": 1791742410,
"owned_by": "anthropic",
"tchavi": {
"display_name": "Claude Haiku 5.5",
"tier": "STANDARD",
"model_type": "chat",
"provider": "anthropic",
"deprecated_at": null,
"context_window": 1000000,
"max_output": 128000,
"pricing": {
"credits_per_k_input": 0.22,
"credits_per_k_output": 1.1,
"credits_per_image": null,
"context_bands": [
{ "max_prompt_tokens": 100000, "credits_per_k_input": 0.22, "credits_per_k_output": 1.1 },
{ "max_prompt_tokens": null, "credits_per_k_input": 1.1, "credits_per_k_output": 5.5 }
]
},
"capabilities": {
"streaming": true,
"tools": true,
"json_mode": true,
"reference_images": false,
"documents": true,
"image_input": true,
"audio_input": false
}
}
}import Tchavi from '@tchavi/sdk';
const client = new Tchavi({ apiKey: 'YOUR_API_KEY' });
const { data } = await client.models.list();
console.log(data.map((m) => m.id));
const model = await client.models.retrieve('claude-haiku-5-5');
console.log(model.tchavi.pricing);Use capabilities to pick a model programmatically: for example documents: true for PDF input, or tools: true for function calling.