Skip to main content
GET
/
openai
/
v1
/
models
/
{model}
Retrieve Model
curl --request GET \
  --url https://api.myrouter.ai/openai/v1/models/{model} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "id": "<string>",
  "created": 123,
  "object": "<string>",
  "input_token_price_per_m": 123,
  "output_token_price_per_m": 123,
  "title": "<string>",
  "description": "<string>",
  "context_size": 123
}
Retrieves a model instance, providing basic information about the model. This endpoint is compatible with the OpenAI API.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Path Parameters

model
string
required
The model ID to use for this request.

Response

id
string
required
The model ID, referenced in API endpoints.
created
integer
required
The Unix timestamp (in seconds) of when the model was created.
object
string
required
The object type, always “model”.
input_token_price_per_m
integer
required
Price per million input tokens.
output_token_price_per_m
integer
required
Price per million output tokens.
title
string
required
The title of the model.
description
string
required
The description of the model.
context_size
integer
required
The maximum context size of the model.