Skip to main content
GET
Retrieve a specific model

Tham Số Đường Dẫn

string
bắt buộc
ID mô hình (ví dụ: openai/gpt-4o).

Phản Hồi

Ví Dụ

Ủy quyền

Authorization
string
header
bắt buộc

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

Tham số đường dẫn

model_id
string
bắt buộc

The unique identifier of the model to retrieve.

Phản hồi

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.