Get a Model

Get detailed information about a specific AI model

Endpoint

GET https://api.firstrouter.ai/v1/models/:model-id

Headers

AuthorizationstringRequired

Bearer token for authentication. Format: Bearer YOUR_API_KEY

Path Parameters

model-idstringRequired

The model ID to retrieve information for. This should be a valid model identifier available in your system.

Response Fields

dataobject

Model information object containing all details about the requested model.

Show 10 properties
idstring

Unique model identifier

namestring

Model display name

descriptionstring

Model description and capabilities

pricingobject

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

context_lengthinteger

Maximum context length in tokens

authorstring

Model provider/author organization

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

Additional message or status information from the API response.

successboolean

Indicates whether the request was processed successfully.

Request Example

curl -X GET "https://api.firstrouter.ai/v1/models/openai/gpt-4o-mini" \
  -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.995,
    "avg_latency": 950,
    "is_free": false,
    "sub_model_keys": [
      "openai/gpt-4o-mini",
      "openai/gpt-4o-mini-2024-07-18"
    ]
  },
  "message": "",
  "success": true
}