v1
v1
Get Model
Retrieve a model.
Retrieve detailed information about a specific model, including its capabilities, provider, and supported features.
Args: model_id: The ID of the model to retrieve (e.g., 'openai/gpt-4', 'anthropic/claude-3-5-sonnet-20241022') user: Authenticated user obtained from API key validation
Returns: Model: Information about the requested model
Raises: HTTPException: - 401 if authentication fails - 404 if model not found or not accessible with current API key - 500 if internal error occurs
Requires: Valid API key with 'read' scope permission
Example: ```python import dedalus_labs
client = dedalus_labs.Client(api_key="your-api-key")
model = client.models.retrieve("openai/gpt-4")
print(f"Model: {model.id}")
print(f"Owner: {model.owned_by}")
```
Response:
```json
{
"id": "openai/gpt-4",
"object": "model",
"created": 1687882411,
"owned_by": "openai"
}
```
get/v1/models/{model_id}
Path parameters
model_idstring required
Response
Successful Response