API Reference
Models
List available AI models and their capabilities.
Models
List all AI models available through AssistantRouter. Models are a curated list of supported models from multiple providers.
List Models
GET
/v1/modelsReturns all available models with capability information.
Response
{
"object": "list",
"data": [
{
"id": "gpt-4o",
"object": "model",
"created": 1699234567,
"owned_by": "openai",
"context_length": 128000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "gpt-4o-mini",
"object": "model",
"created": 1699234567,
"owned_by": "openai",
"context_length": 128000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "gpt-4-turbo",
"object": "model",
"created": 1699234567,
"owned_by": "openai",
"context_length": 128000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "claude-3-5-sonnet-20241022",
"object": "model",
"created": 1699234567,
"owned_by": "anthropic",
"context_length": 200000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "claude-3-opus-20240229",
"object": "model",
"created": 1699234567,
"owned_by": "anthropic",
"context_length": 200000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "claude-3-haiku-20240307",
"object": "model",
"created": 1699234567,
"owned_by": "anthropic",
"context_length": 200000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "gemini-1.5-pro",
"object": "model",
"created": 1699234567,
"owned_by": "google",
"context_length": 1000000,
"capabilities": {
"vision": true,
"function_calling": true
}
},
{
"id": "gemini-1.5-flash",
"object": "model",
"created": 1699234567,
"owned_by": "google",
"context_length": 1000000,
"capabilities": {
"vision": true,
"function_calling": true
}
}
]
}Model Fields
Prop
Type
Example
curl https://api.assistantrouter.com/v1/models \
-H "Authorization: Bearer $API_KEY"const response = await fetch('https://api.assistantrouter.com/v1/models', {
headers: {
Authorization: `Bearer ${process.env.API_KEY}`,
},
});
const { data } = await response.json();
// List all models
data.forEach(model => {
console.log(`${model.id} (${model.owned_by}) - ${model.context_length} tokens`);
});Model Access
All models are available on all tiers. There are no tier-based model restrictions.
Popular Models
OpenAI
| Model | Context Length |
|---|---|
gpt-4o | 128,000 |
gpt-4o-mini | 128,000 |
gpt-4-turbo | 128,000 |
Anthropic
| Model | Context Length |
|---|---|
claude-3-5-sonnet-20241022 | 200,000 |
claude-3-opus-20240229 | 200,000 |
claude-3-haiku-20240307 | 200,000 |
| Model | Context Length |
|---|---|
gemini-1.5-pro | 1,000,000 |
gemini-1.5-flash | 1,000,000 |
All models support vision and function calling.