Files
openrouter-python-sdk-retry…/docs/components/model.md
T
speakeasybot 4e789208b4 ## Python SDK Changes:
* `open_router.beta.responses.send()`: 
  *  `request` **Changed** **Breaking** ⚠️
  *  `response` **Changed** **Breaking** ⚠️
* `open_router.presets.create_presets_responses()`:  `request` **Changed** **Breaking** ⚠️
* `open_router.presets.create_presets_chat_completions()`:  `request` **Changed** **Breaking** ⚠️
* `open_router.chat.send()`:  `request` **Changed** **Breaking** ⚠️
* `open_router.workspaces.set_budget()`: **Added**
* `open_router.o_auth.create_auth_code()`: 
  *  `request.workspace_id` **Added**
  *  `error.status[403]` **Added**
* `open_router.files.download()`: **Added**
* `open_router.models.get()`: **Added**
* `open_router.workspaces.list_budgets()`: **Added**
* `open_router.workspaces.delete_budget()`: **Added**
* `open_router.datasets.get_benchmarks_artificial_analysis()`: **Added**
* `open_router.beta.analytics.query_analytics()`:  `response.data.warnings` **Added**
* `open_router.files.delete()`: **Added**
* `open_router.files.retrieve()`: **Added**
* `open_router.files.upload()`: **Added**
* `open_router.embeddings.list_models()`:  `response.data.[].benchmarks` **Added**
* `open_router.models.list()`: 
  *  `request` **Changed**
  *  `response.data.[].benchmarks` **Added**
* `open_router.models.list_for_user()`:  `response.data.[].benchmarks` **Added**
* `open_router.files.list()`: **Added**
* `open_router.presets.create_presets_messages()`:  `request` **Changed**
* `open_router.datasets.get_benchmarks_design_arena()`: **Added**
2026-06-17 01:01:09 +00:00

21 KiB
Raw Blame History

Model

Information about an AI model available on OpenRouter

Fields

Field Type Required Description Example
architecture components.ModelArchitecture ✔️ Model architecture information {
"input_modalities": [
"text"
],
"instruct_type": "chatml",
"modality": "text-\u003etext",
"output_modalities": [
"text"
],
"tokenizer": "GPT"
}
benchmarks Optional[components.ModelBenchmarks] Third-party benchmark rankings for this model. Omitted when no benchmark data is available. {
"artificial_analysis": {
"agentic_index": 55.8,
"coding_index": 63.2,
"intelligence_index": 71.4
},
"design_arena": [
{
"arena": "models",
"category": "website",
"elo": 1385.2,
"rank": 5,
"win_rate": 62.5
}
]
}
canonical_slug str ✔️ Canonical slug for the model openai/gpt-4
context_length Nullable[int] ✔️ Maximum context length in tokens 8192
created int ✔️ Unix timestamp of when the model was created 1692901234
default_parameters Nullable[components.DefaultParameters] ✔️ Default parameters for this model {
"frequency_penalty": 0,
"presence_penalty": 0,
"repetition_penalty": 1,
"temperature": 0.7,
"top_k": 0,
"top_p": 0.9
}
description Optional[str] Description of the model GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
expiration_date OptionalNullable[str] The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration. 2025-06-01
hugging_face_id OptionalNullable[str] Hugging Face model identifier, if applicable microsoft/DialoGPT-medium
id str ✔️ Unique identifier for the model openai/gpt-4
knowledge_cutoff OptionalNullable[str] 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 components.ModelLinks ✔️ Related API endpoints and resources for this model. {
"details": "/api/v1/models/openai/gpt-5.4/endpoints"
}
name str ✔️ Display name of the model GPT-4
per_request_limits Nullable[components.PerRequestLimits] ✔️ Per-request token limits {
"completion_tokens": 1000,
"prompt_tokens": 1000
}
pricing components.PublicPricing ✔️ Pricing information for the model {
"completion": "0.00006",
"image": "0",
"prompt": "0.00003",
"request": "0"
}
supported_parameters List[components.Parameter] ✔️ List of supported parameters for this model
supported_voices List[str] ✔️ List of supported voice identifiers for TTS models. Null for non-TTS models.
top_provider components.TopProviderInfo ✔️ Information about the top provider for this model {
"context_length": 8192,
"is_moderated": true,
"max_completion_tokens": 4096
}