v1
v1

List Models

List available models.

Returns a list of available models from all configured providers. Models are filtered based on provider availability and API key configuration. Only models from providers with valid API keys are returned.

Args: user: Authenticated user obtained from API key validation

Returns: ModelsResponse: Object containing list of available models

Raises: HTTPException: - 401 if authentication fails - 500 if internal error occurs during model listing

Requires: Valid API key with 'read' scope permission

Example: ```python import dedalus_labs

client = dedalus_labs.Client(api_key="your-api-key")
models = client.models.list()

for model in models.data:
    print(f"Model: {model.id} (Owner: {model.owned_by})")
```

Response:
```json
{
    "object": "list",
    "data": [
        {
            "id": "openai/gpt-4",
            "object": "model",
            "owned_by": "openai"
        },
        {
            "id": "anthropic/claude-3-5-sonnet-20241022",
            "object": "model",
            "owned_by": "anthropic"
        }
    ]
}
```
get/v1/models

Response

Successful Response

objectstring

Object type

Changes