v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Admin

Get all available AI models

Returns the normalized OpenRouter model catalog fetched from OpenRouter with output_modalities=all.

get/api/ai/models

Response

Flat array of available models from the OpenRouter catalog

idstring
createdinteger
inputModalitystring[]
outputModalitystring[]
providerstring
modelIdstring
inputPricenumber

Input price per million tokens in USD when token pricing is available.

outputPricenumber

Output price per million tokens in USD when token pricing is available.

inputPriceLabelstring

Human-readable input pricing label, such as "$2.50 / 1M tokens" or "Free", when available.

outputPriceLabelstring

Human-readable output pricing label, such as "$10.00 / 1M tokens" or "Free", when available.

Example response

[
  {
    "id": "openai/gpt-4o",
    "inputModality": [
      "text",
      "image"
    ],
    "outputModality": [
      "text"
    ],
    "provider": "openrouter",
    "modelId": "openai/gpt-4o"
  }
]