Files
openrouter-python-sdk-retry…/docs/components/model.md
T
OpenRouter Team 7b8f5941c8 Commits included in this export:
- 50539a3577b5a7e925b756f6bb87744052701215
  - 2cdbe64441ce4435ea0a1ff9127472e815fdaccf
  - f35bb49a8b788937fa61c0cf4591b14f2bc8b217
  - 08a37babde9ad8df5e24e0cd865d3292b1627464
  - 7ddc8e1ed230ca489bc11a5e14696c209ea76349
  - ad31290f38f3f02627f3e1953f1d7cf3e06159a5
  - fb7f764b500618e322f56d49997fbcfaebba7e39
  - 4306c032b9b4f3cfefeacdd3d243b0336f3b2f15

GitOrigin-RevId: 50539a3577b5a7e925b756f6bb87744052701215
2026-03-12 15:49:53 +00:00

12 KiB
Raw Blame History

Model

Information about an AI model available on OpenRouter

Fields

Field Type Required Description Example
id str ✔️ Unique identifier for the model openai/gpt-4
canonical_slug str ✔️ Canonical slug for the model openai/gpt-4
hugging_face_id OptionalNullable[str] Hugging Face model identifier, if applicable microsoft/DialoGPT-medium
name str ✔️ Display name of the model GPT-4
created float ✔️ Unix timestamp of when the model was created 1692901234
description Optional[str] Description of the model GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
pricing components.PublicPricing ✔️ Pricing information for the model {
"prompt": "0.00003",
"completion": "0.00006",
"request": "0",
"image": "0"
}
context_length Nullable[float] ✔️ Maximum context length in tokens 8192
architecture components.ModelArchitecture ✔️ Model architecture information {
"tokenizer": "GPT",
"instruct_type": "chatml",
"modality": "text-\u003etext",
"input_modalities": [
"text"
],
"output_modalities": [
"text"
]
}
top_provider components.TopProviderInfo ✔️ Information about the top provider for this model {
"context_length": 8192,
"max_completion_tokens": 4096,
"is_moderated": true
}
per_request_limits Nullable[components.PerRequestLimits] ✔️ Per-request token limits {
"prompt_tokens": 1000,
"completion_tokens": 1000
}
supported_parameters List[components.Parameter] ✔️ List of supported parameters for this model
default_parameters Nullable[components.DefaultParameters] ✔️ Default parameters for this model {
"temperature": 0.7,
"top_p": 0.9,
"top_k": 0,
"frequency_penalty": 0,
"presence_penalty": 0,
"repetition_penalty": 1
}
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