Skip to main content
GET
/
openai
/
v1
/
models
List Models
curl --request GET \
  --url https://api.myrouter.ai/openai/v1/models \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "data": [
    {
      "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 list of models currently available for the LLM API, along with basic information about each 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}}.

Response

data
array
required
An array of model objects with the following properties: