Get detailed information about a specific model, including its configuration and connected endpoints.
Path parameters
The unique name of the model to retrieve.
Response
Unique identifier for the model.
Model-specific configuration. The structure depends on the model type.
Brief description of the model.
Timestamp when the model was created.
Timestamp when the model was last updated.
Array of endpoints currently using this model.
Endpoint unique identifier.
connected_endpoints[].name
Endpoint display name.
connected_endpoints[].slug
Endpoint URL slug.
curl https://your-server.com/api/v1/models/gpt-4-assistant \
-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",
"updated_at": "2024-03-15T10:30:00Z",
"connected_endpoints": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Support Assistant",
"slug": "support-assistant"
},
{
"id": "8d0f7780-8536-51ef-c938-668877662222",
"name": "Documentation Helper",
"slug": "docs-helper"
}
]
}
Endpoint