> ## 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.
# GetModelsResponse
## Example Usage
```typescript theme={null}
import { GetModelsResponse } from "@openrouter/sdk/models/operations";
let value: GetModelsResponse = {
result: {
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 |
| -------- | ---------------------------------------------------------------- | -------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `result` | [models.ModelsListResponse](../../models/modelslistresponse.mdx) | :heavy\_check\_mark: | N/A | \{
"data": \[
\{
"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",
"frequency\_penalty",
"presence\_penalty"
],
"supported\_voices": null,
"top\_provider": \{
"context\_length": 8192,
"is\_moderated": true,
"max\_completion\_tokens": 4096
}
}
],
"links": \{
"next": "/api/v1/models?offset=500\u0026limit=500"
},
"total\_count": 150
} |