Skip to main content
GET
Retrieve a specific model

路径参数

string
必填
模型 ID(例如 openai/gpt-4o)。

响应

示例

授权

Authorization
string
header
必填

API key authentication. Pass your OpenModex API key as a Bearer token in the Authorization header: Authorization: Bearer omx_sk_...

路径参数

model_id
string
必填

The unique identifier of the model to retrieve.

响应

Model details.

Represents a model available through OpenModex.

id
string

The unique model identifier.

object
string

The object type (e.g., 'model').

name
string

The display name of the model.

provider
string

The provider of the model (e.g., 'openai', 'anthropic', 'google').

description
string

A human-readable description of the model.

category
string[]

Categories the model belongs to (e.g., 'chat', 'embedding', 'image').

context_length
integer

Maximum context length in tokens.

max_output_tokens
integer

Maximum number of output tokens the model can generate.

modalities
object

Supported input and output modalities.

features
string[]

List of supported features (e.g., 'streaming', 'function_calling', 'json_mode').

license
string

The license under which the model is available.

pricing
object

Pricing information for the model.

performance
object

Performance metrics for the model.

quality_scores
object

Quality benchmark scores for the model.