> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Model - Python SDK

> Model method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Information about an AI model available on OpenRouter

## Fields

| Field                  | Type                                                                                           | Required             | Description                                                                                                | Example                                                                                                                                   |
| ---------------------- | ---------------------------------------------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                   | *str*                                                                                          | :heavy\_check\_mark: | Unique identifier for the model                                                                            | openai/gpt-4                                                                                                                              |
| `canonical_slug`       | *str*                                                                                          | :heavy\_check\_mark: | Canonical slug for the model                                                                               | openai/gpt-4                                                                                                                              |
| `hugging_face_id`      | *OptionalNullable\[str]*                                                                       | :heavy\_minus\_sign: | Hugging Face model identifier, if applicable                                                               | microsoft/DialoGPT-medium                                                                                                                 |
| `name`                 | *str*                                                                                          | :heavy\_check\_mark: | Display name of the model                                                                                  | GPT-4                                                                                                                                     |
| `created`              | *float*                                                                                        | :heavy\_check\_mark: | Unix timestamp of when the model was created                                                               | 1692901234                                                                                                                                |
| `description`          | *Optional\[str]*                                                                               | :heavy\_minus\_sign: | Description of the model                                                                                   | GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.                                                |
| `pricing`              | [components.PublicPricing](/client-sdks/python/api-reference/components/publicpricing)         | :heavy\_check\_mark: | Pricing information for the model                                                                          | `{"prompt": "0.00003","completion": "0.00006","request": "0","image": "0"}`                                                               |
| `context_length`       | *Nullable\[float]*                                                                             | :heavy\_check\_mark: | Maximum context length in tokens                                                                           | 8192                                                                                                                                      |
| `architecture`         | [components.ModelArchitecture](/client-sdks/python/api-reference/components/modelarchitecture) | :heavy\_check\_mark: | Model architecture information                                                                             | `{"tokenizer": "GPT","instruct_type": "chatml","modality": "text-\u003etext","input_modalities": ["text"],"output_modalities": ["text"]}` |
| `top_provider`         | [components.TopProviderInfo](/client-sdks/python/api-reference/components/topproviderinfo)     | :heavy\_check\_mark: | Information about the top provider for this model                                                          | `{"context_length": 8192,"max_completion_tokens": 4096,"is_moderated": true}`                                                             |
| `per_request_limits`   | [Nullable\[components.PerRequestLimits\]](../components/perrequestlimits.md)                   | :heavy\_check\_mark: | Per-request token limits                                                                                   | `{"prompt_tokens": 1000,"completion_tokens": 1000}`                                                                                       |
| `supported_parameters` | List\[[components.Parameter](/client-sdks/python/api-reference/components/parameter)]          | :heavy\_check\_mark: | List of supported parameters for this model                                                                |                                                                                                                                           |
| `default_parameters`   | [Nullable\[components.DefaultParameters\]](../components/defaultparameters.md)                 | :heavy\_check\_mark: | Default parameters for this model                                                                          | `{"temperature": 0.7,"top_p": 0.9,"frequency_penalty": 0}`                                                                                |
| `expiration_date`      | *OptionalNullable\[str]*                                                                       | :heavy\_minus\_sign: | The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration. | 2025-06-01                                                                                                                                |
