v1
models

Get Model

Get information about a specific model.

Returns detailed information about a specific model by ID. The model must be available to your API key's configured providers.

Args: model_id: The ID of the model to retrieve (e.g., 'gpt-4', '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("gpt-4")

print(f"Model: {model.id}")
print(f"Owner: {model.owned_by}")
```

Response:
```json
{
    "id": "gpt-4",
    "object": "model",
    "created": 1687882411,
    "owned_by": "openai"
}
```
get/v1/models/{model_id}

Path parameters

model_idstring required

Response

Successful Response

idstring required

Model identifier

objectstring

Object type

createdinteger nullable

Creation timestamp

owned_bystring

Model owner

rootstring nullable

Root model

parentstring nullable

Parent model

permissionobject[] nullable

Permissions

Changes