> ## 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.
# ModelsListResponse
List of available models
## Example Usage
```typescript theme={null}
import { ModelsListResponse } from "@openrouter/sdk/models";
let value: ModelsListResponse = {
data: [
{
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-4/endpoints",
},
name: "GPT-4",
perRequestLimits: null,
pricing: {
completion: "0.00006",
prompt: "0.00003",
},
supportedParameters: [
"temperature",
"top_p",
"max_tokens",
"frequency_penalty",
"presence_penalty",
],
supportedVoices: null,
topProvider: {
isModerated: true,
},
},
],
links: {
next: "/api/v1/models?offset=500&limit=500",
},
totalCount: 150,
};
```
## Fields
| Field | Type | Required | Description | Example |
| ------------ | -------------------------------------- | -------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `data` | [models.Model](../models/model.mdx)\[] | :heavy\_check\_mark: | List of available models | \[
\{
"architecture": \{
"input\_modalities": \[
"text"
],
"instruct\_type": "chatml",
"modality": "text-\u003etext",
"output\_modalities": \[
"text"
],
"tokenizer": "GPT"
},
"canonical\_slug": "openai/gpt-4",
"context\_length": 8192,
"created": 1692901234,
"default\_parameters": null,
"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.",
"expiration\_date": null,
"id": "openai/gpt-4",
"knowledge\_cutoff": null,
"links": \{
"details": "/api/v1/models/openai/gpt-4/endpoints"
},
"name": "GPT-4",
"per\_request\_limits": null,
"pricing": \{
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
},
"supported\_parameters": \[
"temperature",
"top\_p",
"max\_tokens"
],
"supported\_voices": null,
"top\_provider": \{
"context\_length": 8192,
"is\_moderated": true,
"max\_completion\_tokens": 4096
}
}
] |
| `links` | [models.Links](../models/links.mdx) | :heavy\_check\_mark: | Pagination links | |
| `totalCount` | *number* | :heavy\_check\_mark: | Total number of models matching the query | 150 |