List Available Models

Get a list of all available AI models with their details and pricing

Endpoint

GET https://api.firstrouter.ai/v1/models

Headers

AuthorizationstringRequired

Bearer token for authentication. Format: Bearer YOUR_API_KEY

Request Parameters

This endpoint does not require any parameters.

Response

Returns an array of available models with their details.

dataarray

Array of model objects containing detailed information about each available model.

Show 10 properties
idstring

Unique model identifier used in API requests

namestring

Human-readable display name of the model

descriptionstring

Detailed description of the model's capabilities and characteristics

pricingobject

Pricing information with prompt and completion token costs (USD / 1M tokens)

context_lengthinteger

Maximum number of tokens the model can process in a single request

authorstring

The organization or company that created the model

uptimefloat

Model uptime percentage as a decimal (e.g., 0.998 = 99.8%)

avg_latencyinteger

Average response latency in milliseconds

is_freeboolean

Whether the model is available for free usage

sub_model_keysarray

Array of sub-model identifiers associated with this model

messagestring

Status message from the API response (usually empty on success).

successboolean

Indicates whether the request was successful (true) or failed (false).

Request Example

curl -X GET "https://api.firstrouter.ai/v1/models" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

{
  "data": [
    {
      "id": "openai/gpt-4o-mini",
      "name": "GPT 4o mini",
      "description": "Large multimodal model that can solve difficult problems with greater accuracy than any of our previous models",
      "pricing": {
        "prompt": "0.0000007",
        "completion": "0.0000007"
      },
      "context_length": 128000,
      "author": "openai",
      "uptime": 0.998,
      "avg_latency": 1101,
      "is_free": false,
      "sub_model_keys": [
        "openai/gpt-4o-mini",
        "openai/gpt-4o-mini-2024-07-18"
      ]
    },
    {
      "id": "anthropic/claude-3.7-sonnet",
      "name": "Claude 3 Sonnet",
      "description": "Balanced model with strong performance across a wide range of tasks",
      "pricing": {
        "prompt": "0.0000005",
        "completion": "0.0000005"
      },
      "context_length": 200000,
      "author": "anthropic",
      "uptime": 0.995,
      "avg_latency": 950,
      "is_free": false,
      "sub_model_keys": [
        "anthropic/claude-3.7-sonnet",
        "anthropic/claude-3.7-sonnet-thinking"
      ]
    }
  ],
  "message": "",
  "success": true
}