Files
openrouter-python-sdk-retry…/docs/components/model.md
T
OpenRouter SDK Bot 5ab44f08f0 feat: regenerate SDK with updated OpenAPI spec
Speakeasy regeneration with latest schema changes including
type renames and new server tool models.
2026-03-27 15:18:14 -04: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
}
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
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