List all model instances configured in your tenant. Returns models with their connected endpoints.
Response
Returns an array of model objects.
Unique identifier for the model.
Model type identifier (e.g., openai, anthropic, ollama).
Model-specific configuration settings.
Brief description of the model.
Timestamp when the model was created.
Array of endpoints using this model.
Endpoint unique identifier.
connected_endpoints[].name
Endpoint name.
connected_endpoints[].slug
Endpoint URL-friendly slug.
curl https://your-server.com/api/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "gpt-4-assistant",
"dtype": "openai",
"configuration": {
"api_key": "sk-...",
"model": "gpt-4",
"base_url": "https://api.openai.com/v1",
"system_prompt": "You are a helpful AI assistant."
},
"summary": "GPT-4 model for general assistance",
"tags": "openai,gpt-4,assistant",
"created_at": "2024-03-15T10:30:00Z",
"connected_endpoints": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Support Assistant",
"slug": "support-assistant"
}
]
},
{
"id": "660f9500-f39c-52e5-b827-557766551111",
"name": "claude-3-opus",
"dtype": "anthropic",
"configuration": {
"api_key": "sk-ant-...",
"model": "claude-3-opus-20240229"
},
"summary": "Claude 3 Opus for complex reasoning",
"tags": "anthropic,claude-3,opus",
"created_at": "2024-03-16T14:20:00Z",
"connected_endpoints": []
}
]
Endpoint