Skip to main content
GET
/
models
/
{modelId}
cURL
curl --request GET \
  --url https://www.greenflash.ai/api/v1/models/{modelId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "canonicalId": "gpt-4o",
  "displayName": "GPT-4o",
  "provider": "OpenAI",
  "family": "GPT-4",
  "description": "Most capable GPT-4 model. Optimized for chat and multi-modal inputs with improved speed.",
  "contextWindow": 128000,
  "inputCostPer1k": 0.005,
  "outputCostPer1k": 0.015,
  "inputModalities": [
    "text",
    "image"
  ],
  "outputModalities": [
    "text"
  ],
  "supportedParameters": [
    "temperature",
    "top_p",
    "max_tokens",
    "frequency_penalty"
  ],
  "source": "openrouter",
  "createdAt": "2025-05-01T00:00:00Z",
  "expirationDate": null,
  "intelligenceIndex": 92.4,
  "codingIndex": 88.1,
  "mathIndex": 85.7,
  "mmluPro": 87.2,
  "gpqa": 53.6,
  "usageCount": 4520,
  "lastUsedAt": "2025-10-15T14:30:00Z",
  "products": [
    {
      "id": "789e4567-e89b-12d3-a456-426614174010",
      "name": "Customer Support Bot",
      "icon": "headset",
      "conversationCount": 3200
    },
    {
      "id": "789e4567-e89b-12d3-a456-426614174011",
      "name": "Sales Assistant",
      "icon": "chart-bar",
      "conversationCount": 1320
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

modelId
string<uuid>
required

The model ID to retrieve details for

Response

Model retrieved successfully

id
string<uuid>
required

The model ID.

canonicalId
string
required

The canonical model identifier.

displayName
string
required

Human-readable model name.

provider
string
required

Model provider (e.g. OpenAI, Anthropic).

family
string | null
required

Model family grouping.

description
string | null
required

Model description.

contextWindow
number | null
required

Context window size.

inputCostPer1k
number | null
required

Cost per 1,000 input tokens.

outputCostPer1k
number | null
required

Cost per 1,000 output tokens.

inputModalities
string[] | null
required

Supported input modalities.

outputModalities
string[] | null
required

Supported output modalities.

supportedParameters
string[] | null
required

Supported generation parameters.

source
string
required

Model data source.

createdAt
string<date-time>
required

When the model was created.

expirationDate
string<date-time> | null
required

When the model expires, if applicable.

intelligenceIndex
number | null
required

Intelligence benchmark index.

codingIndex
number | null
required

Coding benchmark index.

mathIndex
number | null
required

Math benchmark index.

mmluPro
number | null
required

MMLU-Pro benchmark score.

gpqa
number | null
required

GPQA benchmark score.

usageCount
number
required

Number of conversations using this model.

lastUsedAt
string<date-time> | null
required

When the model was last used.

products
object[]
required

Products using this model.