---
title: "Get Model"
method: GET
path: "/v1/models/{model_id}"
tags: ["v1", "v1"]
---

# Get Model

`GET /v1/models/{model_id}`

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., 'openai/gpt-4', 'anthropic/claude-3-5-sonnet-20241022')
    user: Authenticated user obtained from API key validation

Returns:
    DedalusModel: 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"
    }
    ```

## Path parameters

- `model_id` string, required

## Response `200`

Successful Response

- DedalusModel — Model information and configuration for Dedalus API. Represents both model metadata (for listings) and configuration options (for chat completions). When used in GET /v1/models, only metadata fields are populated. When used in chat requests, configuration fields control model behavior. Attributes: id: Provider-prefixed model identifier (e.g., 'openai/gpt-4', 'anthropic/claude-3-5-sonnet') name: Alias for id (used in chat requests) object: Always 'model' for OpenAI compatibility created: Unix timestamp when model was created owned_by: Provider organization that owns the model root: Base model identifier if this is a fine-tuned variant parent: Parent model identifier for hierarchical relationships permission: Access permissions (reserved for future use) Configuration fields (used in chat requests): temperature: Sampling temperature (0 to 2) top_p: Nucleus sampling parameter (0 to 1) frequency_penalty: Frequency penalty (-2 to 2) presence_penalty: Presence penalty (-2 to 2) max_tokens: Maximum tokens to generate attributes: Custom attributes for model routing metadata: Additional metadata Example: Listing response: { "id": "openai/gpt-4o", "object": "model", "created": 1687882411, "owned_by": "openai" } Chat request: { "name": "openai/gpt-4o", "temperature": 0.7, "max_tokens": 1000, "attributes": {"intelligence": 0.9, "cost": 0.8} }
  - `id` string, nullable — Model identifier
  - `name` string, nullable — Model name (alias for id in chat requests)
  - `object` string — Object type
  - `created` integer, nullable — Creation timestamp
  - `owned_by` string — Model owner
  - `root` string, nullable — Root model
  - `parent` string, nullable — Parent model
  - `permission` object[], nullable — Permissions
  - `temperature` number, nullable — Sampling temperature (0 to 2). Higher values make output more random.
  - `top_p` number, nullable — Nucleus sampling parameter. Alternative to temperature.
  - `frequency_penalty` number, nullable — Penalize new tokens based on their frequency in the text so far.
  - `presence_penalty` number, nullable — Penalize new tokens based on whether they appear in the text so far.
  - `max_tokens` integer, nullable — Maximum number of tokens to generate.
  - `max_completion_tokens` integer, nullable — An upper bound for the number of tokens that can be generated for a completion.
  - `n` integer, nullable — Number of completions to generate for each prompt.
  - `stop` union — Up to 4 sequences where the API will stop generating further tokens.
    - string
    - string[]
  - `stream` boolean, nullable — Whether to stream back partial progress.
  - `stream_options` object, nullable — Options for streaming responses.
  - `logit_bias` object, nullable — Modify the likelihood of specified tokens appearing.
  - `logprobs` boolean, nullable — Whether to return log probabilities of the output tokens.
  - `top_logprobs` integer, nullable — Number of most likely tokens to return at each token position.
  - `response_format` object, nullable — Format for the model output (e.g., {'type': 'json_object'}).
  - `seed` integer, nullable — Seed for deterministic sampling.
  - `service_tier` string, nullable — Latency tier for the request (e.g., 'auto', 'default').
  - `tools` object[], nullable — List of tools the model may call.
  - `tool_choice` union — Controls which tool is called by the model.
    - string
    - object
  - `parallel_tool_calls` boolean, nullable — Whether to enable parallel function calling.
  - `user` string, nullable — A unique identifier representing your end-user.
  - `attributes` object, nullable — [Dedalus] Custom attributes for intelligent model routing (e.g., intelligence, speed, creativity, cost).
  - `metadata` object, nullable — [Dedalus] Additional metadata for request tracking and debugging.

## Other responses

- `422` — Validation Error

## Changes

- **2025-08-18** `4bc2c48362fb` — 2 breaking, 24 info
  - the response property `id` became optional for the status `200`
  - response property `id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - api tag `models` removed
  - added the optional property `attributes` to the response with the `200` status
  - …22 more
- **2025-08-12** `f788f74915ca` — 1 info
  - api tag `models` added
- **2025-08-12** `e08018a02b00` — 1 info
  - api tag `models` removed
- **2025-08-10** `f788f74915ca` — 1 info
  - api tag `models` added
- **2025-08-10** `19ab80d99184` — 1 info
  - api tag `models` removed

[Full history](https://skmtc.dev/dedalus-labs/apis/dedalus-api/changes/v1/models/:model_id/get.md)

---

[API](https://skmtc.dev/dedalus-labs/apis/dedalus-api.md) · [All operations](https://skmtc.dev/dedalus-labs/apis/dedalus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dedalus-labs/dedalus-api/revisions/4bc2c48362fb/schema)
