Available Models
Explore the AI models available through Tav-AI, their capabilities, and how to use them effectively.
List Models Endpoint
Retrieve a list of all available models and their details using the models endpoint.
GET
/v1/models
Returns a list of available models with their capabilities and pricing information.
Request Example
curl -X GET "https://api.tav-ai.com/v1/models"
Response Example
{
"object": "list",
"data": [
{
"id": "gpt-4o-mini",
"object": "model",
"created": 1677610602,
"owned_by": "openai",
"permission": [],
"root": "gpt-4o-mini",
"parent": null
},
{
"id": "gpt-4o",
"object": "model",
"created": 1677610602,
"owned_by": "openai",
"permission": [],
"root": "gpt-4o",
"parent": null
}
]
}
Model Usage Example
Here's how to specify a model in your API requests:
Using Different Models
curl -X POST "https://api.tav-ai.com/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "Explain quantum computing in simple terms"
}
],
"max_tokens": 500,
"temperature": 0.7
}'
💡 Pro Tip
Start with GPT-4o Mini for most use cases. It provides excellent performance at a reasonable cost. Upgrade to GPT-4o or Claude-3 Sonnet only when you need the additional capabilities for complex tasks.