v39

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-2613102194.9 KB
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

idstring required

Unique model identifier with provider prefix (e.g., 'openai/gpt-4')

provider'openai' | 'anthropic' | 'google' | 'xai' | 'mistral' | 'groq' | 'fireworks' | 'deepseek' required

Provider that hosts this model

created_atstring date-time required

When the model was released (RFC 3339)

display_namestring nullable

Human-readable model name

descriptionstring nullable

Model description

versionstring nullable

Model version identifier

provider_infoobject nullable

Raw provider-specific metadata

provider_declared_generation_methodsstring[] nullable

Provider-specific generation method names (None = not declared)