> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Model

Information about an AI model available on OpenRouter

## Example Usage

```typescript theme={null}
import { Model } from "@openrouter/sdk/models";

let value: Model = {
  architecture: {
    inputModalities: [
      "text",
    ],
    modality: "text->text",
    outputModalities: [
      "text",
    ],
  },
  canonicalSlug: "openai/gpt-4",
  contextLength: 8192,
  created: 1692901234,
  defaultParameters: null,
  id: "openai/gpt-4",
  links: {
    details: "/api/v1/models/openai/gpt-5.4/endpoints",
  },
  name: "GPT-4",
  perRequestLimits: null,
  pricing: {
    completion: "0.00006",
    prompt: "0.00003",
  },
  supportedParameters: [
    "temperature",
    "top_p",
    "max_tokens",
  ],
  supportedVoices: null,
  topProvider: {
    isModerated: true,
  },
};
```

## Fields

| Field                 | Type                                                        | Required             | Description                                                                                                | Example                                                                                                                                                                                                                                                                                                   |
| --------------------- | ----------------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `aliasTarget`         | [models.ModelAliasTarget](../models/modelaliastarget.mdx)   | :heavy\_minus\_sign: | Concrete model targeted by this tilde-latest alias, when applicable                                        | \{<br />"name": "Claude Sonnet 4.5",<br />"slug": "anthropic/claude-sonnet-4.5"<br />}                                                                                                                                                                                                                    |
| `architecture`        | [models.ModelArchitecture](../models/modelarchitecture.mdx) | :heavy\_check\_mark: | Model architecture information                                                                             | \{<br />"input\_modalities": \[<br />"text"<br />],<br />"instruct\_type": "chatml",<br />"modality": "text-\u003etext",<br />"output\_modalities": \[<br />"text"<br />],<br />"tokenizer": "GPT"<br />}                                                                                                 |
| `benchmarks`          | [models.ModelBenchmarks](../models/modelbenchmarks.mdx)     | :heavy\_minus\_sign: | Third-party benchmark rankings for this model. Omitted when no benchmark data is available.                | \{<br />"artificial\_analysis": \{<br />"agentic\_index": 55.8,<br />"coding\_index": 63.2,<br />"intelligence\_index": 71.4<br />},<br />"design\_arena": \[<br />\{<br />"arena": "models",<br />"category": "website",<br />"elo": 1385.2,<br />"rank": 5,<br />"win\_rate": 62.5<br />}<br />]<br />} |
| `canonicalSlug`       | *string*                                                    | :heavy\_check\_mark: | Canonical slug for the model                                                                               | openai/gpt-4                                                                                                                                                                                                                                                                                              |
| `contextLength`       | *number*                                                    | :heavy\_check\_mark: | Maximum context length in tokens                                                                           | 8192                                                                                                                                                                                                                                                                                                      |
| `created`             | *number*                                                    | :heavy\_check\_mark: | Unix timestamp of when the model was created                                                               | 1692901234                                                                                                                                                                                                                                                                                                |
| `defaultParameters`   | [models.DefaultParameters](../models/defaultparameters.mdx) | :heavy\_check\_mark: | Default parameters for this model                                                                          | \{<br />"frequency\_penalty": 0,<br />"presence\_penalty": 0,<br />"repetition\_penalty": 1,<br />"temperature": 0.7,<br />"top\_k": 0,<br />"top\_p": 0.9<br />}                                                                                                                                         |
| `description`         | *string*                                                    | :heavy\_minus\_sign: | Description of the model                                                                                   | GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.                                                                                                                                                                                                                |
| `expirationDate`      | *string*                                                    | :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                                                                                                                                                                                                                                                                                                |
| `huggingFaceId`       | *string*                                                    | :heavy\_minus\_sign: | Hugging Face model identifier, if applicable                                                               | microsoft/DialoGPT-medium                                                                                                                                                                                                                                                                                 |
| `id`                  | *string*                                                    | :heavy\_check\_mark: | Unique identifier for the model                                                                            | openai/gpt-4                                                                                                                                                                                                                                                                                              |
| `knowledgeCutoff`     | *string*                                                    | :heavy\_minus\_sign: | The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.  | 2024-10-01                                                                                                                                                                                                                                                                                                |
| `links`               | [models.ModelLinks](../models/modellinks.mdx)               | :heavy\_check\_mark: | Related API endpoints and resources for this model.                                                        | \{<br />"details": "/api/v1/models/openai/gpt-5.4/endpoints"<br />}                                                                                                                                                                                                                                       |
| `name`                | *string*                                                    | :heavy\_check\_mark: | Display name of the model                                                                                  | GPT-4                                                                                                                                                                                                                                                                                                     |
| `perRequestLimits`    | [models.PerRequestLimits](../models/perrequestlimits.mdx)   | :heavy\_check\_mark: | Per-request token limits                                                                                   | \{<br />"completion\_tokens": 1000,<br />"prompt\_tokens": 1000<br />}                                                                                                                                                                                                                                    |
| `pricing`             | [models.PublicPricing](../models/publicpricing.mdx)         | :heavy\_check\_mark: | Pricing information for the model                                                                          | \{<br />"completion": "0.00006",<br />"image": "0",<br />"prompt": "0.00003",<br />"request": "0"<br />}                                                                                                                                                                                                  |
| `reasoning`           | [models.ModelReasoning](../models/modelreasoning.mdx)       | :heavy\_minus\_sign: | Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.                | \{<br />"default\_effort": "medium",<br />"default\_enabled": true,<br />"mandatory": false,<br />"supported\_efforts": \[<br />"high",<br />"medium",<br />"low",<br />"minimal"<br />]<br />}                                                                                                           |
| `supportedParameters` | [models.Parameter](../models/parameter.mdx)\[]              | :heavy\_check\_mark: | List of supported parameters for this model                                                                |                                                                                                                                                                                                                                                                                                           |
| `supportedVoices`     | *string*\[]                                                 | :heavy\_check\_mark: | List of supported voice identifiers for TTS models. Null for non-TTS models.                               | null                                                                                                                                                                                                                                                                                                      |
| `topProvider`         | [models.TopProviderInfo](../models/topproviderinfo.mdx)     | :heavy\_check\_mark: | Information about the top provider for this model                                                          | \{<br />"context\_length": 8192,<br />"is\_moderated": true,<br />"max\_completion\_tokens": 4096<br />}                                                                                                                                                                                                  |
