OpenAI

读取模型

读取单个模型的信息,与列表中的同一条目相同。

GET /openai/v1/models/{model}● 支持

OpenAI 官方文档 ↗

请求参数

  • modelstring必填

    path: Model ID from GET /openai/v1/models, including any publisher prefix.

返回

200 model

返回与列表中同一条目相同的模型对象。只有声明了 OpenAI 协议的模型可见;模型 ID 可以带斜杠分隔的发布方前缀。不存在或没有声明 OpenAI 协议的模型返回 404。

错误按 OpenAI 格式返回,参见 错误码

响应

HTTP 200

The matching OpenRouter model list entry.

application/json

名称类型说明
alias_targetobjectConcrete model targeted by this tilde-latest alias, when applicable
alias_target.namestringHuman-readable name of the concrete model targeted by this alias
alias_target.slugstringRoutable model ID of the concrete target, matching that model row's id
architectureobjectModel architecture information
architecture.input_modalitiesarray<string>Supported input modalities
architecture.instruct_typestring | nullInstruction format type
architecture.modalitystring | nullPrimary modality of the model
architecture.output_modalitiesarray<string>Supported output modalities
architecture.tokenizerstringTokenizer type used by the model
benchmarksobjectThird-party benchmark rankings for this model. Omitted when no benchmark data is available.
benchmarks.artificial_analysisobjectArtificial Analysis benchmark index scores.
benchmarks.design_arenaarray<object>Design Arena ELO rankings across arena+category pairs.
canonical_slugstringCanonical slug for the model
context_lengthinteger | nullMaximum context length in tokens
createdintegerUnix timestamp of when the model was created
default_parametersobject | nullDefault parameters for this model
default_parameters.frequency_penaltynumber | null
default_parameters.presence_penaltynumber | null
default_parameters.repetition_penaltynumber | null
default_parameters.temperaturenumber | null
default_parameters.top_kinteger | null
default_parameters.top_pnumber | null
descriptionstringDescription of the model
expiration_datestring | nullThe date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.
hugging_face_idstring | nullHugging Face model identifier, if applicable
idstringUnique identifier for the model
knowledge_cutoffstring | nullThe date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.
linksobjectRelated API endpoints and resources for this model.
links.detailsstringURL for the model details/endpoints API
namestringDisplay name of the model
per_request_limitsobject | nullPer-request token limits
per_request_limits.completion_tokensnumberMaximum completion tokens per request
per_request_limits.prompt_tokensnumberMaximum prompt tokens per request
pricingobjectPricing information for the model
pricing.audiostringPrice in USD per audio input token
pricing.audio_outputstringPrice in USD per audio output token
pricing.completionstringPrice in USD per token for completion (output) generation
pricing.discountnumberFractional discount applied to this endpoint's pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)
pricing.imagestringPrice in USD per image; present only for a flat registry price
pricing.image_outputstringPrice in USD per output image
pricing.image_tokenstringPrice in USD per image token
pricing.input_audio_cachestringPrice in USD per cached audio input token
pricing.input_cache_readstringPrice in USD per cached input token (read)
pricing.input_cache_writestringPrice per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
pricing.input_cache_write_1hstringPrice per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
pricing.internal_reasoningstringPrice in USD per internal reasoning token
pricing.overridesarray<object>Conditional overrides of the base pricing (e.g. long-context or time-based pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens, or the utc_start/utc_end time window) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions.
pricing.promptstringPrice in USD per token for prompt (input) processing
pricing.requeststringPrice in USD per request
pricing.web_searchstringPrice in USD per web search
pricing.video_secondstringPraxis extension: USD per second of output video.
pricing.audio_input_minutestringPraxis extension: USD per minute of input audio.
pricing.audio_output_minutestringPraxis extension: USD per minute of output audio.
pricing.input_characterstringPraxis extension: USD per input character.
pricing.pagestringPraxis extension: USD per OCR page.
reasoningobjectReasoning effort configuration. Omitted for non-reasoning models and dynamic router models.
reasoning.default_effortstring | nullDefault reasoning effort when the client enables reasoning without specifying effort. Maps to `reasoning.effort` in chat requests. When `"none"`, prefer omitting effort unless the user explicitly disables reasoning.
reasoning.default_enabledbooleanDefault reasoning enabled state when the client does not set `reasoning.enabled`.
reasoning.mandatorybooleanWhen true, reasoning cannot be disabled and effort "none" is rejected.
reasoning.supported_effortsarray | nullAllowed reasoning effort values for this model, in descending effort order (highest first). Null means no allowlist — all gateway effort values are accepted.
reasoning.supports_max_tokensbooleanPresent and `true` when the model accepts `reasoning.max_tokens` in requests (Anthropic-style) instead of or in addition to `reasoning.effort`. Omitted otherwise.
supported_parametersarray<string>List of supported parameters for this model
supported_voicesarray | nullList of supported voice identifiers for TTS models. Null for non-TTS models.
top_providerobjectInformation about the top provider for this model
top_provider.context_lengthinteger | nullContext length from the top provider
top_provider.is_moderatedbooleanWhether the top provider moderates content
top_provider.max_completion_tokensinteger | nullMaximum completion tokens from the top provider. Input and output tokens share the context window, so the effective maximum output for a request is further limited by the context remaining after input tokens.