LLM Gateway

Models

List the public model catalogue without authentication.

GET
/v1/models

List the public model catalogue without authentication. With an API key, return only models and provider mappings allowed by its organization compliance policy, IAM rules, and project access, including accessible custom models. Set include_restricted=true to return the public catalogue regardless of these restrictions.

Authorization

bearerAuth
AuthorizationBearer <token>

Bearer token authentication using API keys

In: header

Query Parameters

include_restricted?string

Return the public catalogue instead of the authenticated caller's accessible models. Other query filters still apply. Does not grant permission to call restricted models or include private custom models.

include_deactivated?string

Include deactivated models in the response

exclude_deprecated?string

Exclude deprecated models from the response

no_training?string

Only return models and provider mappings whose provider does not train on API data

mapped?string

Return one entry per provider mapping with provider/model-id ids (the gateway's provider-pinned request format) instead of one aggregated entry per model. Each entry carries that specific mapping's pricing, context length, and capabilities.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/models"
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "display_name": "string",
      "aliases": [
        "string"
      ],
      "virtual_model_target": "string",
      "created": 0,
      "description": "string",
      "family": "string",
      "architecture": {
        "input_modalities": [
          "text"
        ],
        "output_modalities": [
          "text"
        ],
        "tokenizer": "string"
      },
      "top_provider": {
        "is_moderated": true
      },
      "providers": [
        {
          "providerId": "string",
          "externalId": "string",
          "supportedVideoSizes": [
            "string"
          ],
          "supportsVideoAudio": true,
          "supportsVideoWithoutAudio": true,
          "supported_video_durations_seconds": [
            0
          ],
          "supported_video_durations_seconds_image_to_video": [
            0
          ],
          "supports_video_start_frame": true,
          "supports_video_end_frame": true,
          "supported_image_sizes": [
            "string"
          ],
          "supports_custom_image_size": true,
          "supported_aspect_ratios": [
            "string"
          ],
          "supported_image_resolutions": [
            "string"
          ],
          "supported_image_qualities": [
            "string"
          ],
          "max_input_images": 0,
          "max_images_per_request": 0,
          "supports_transparent_background": true,
          "supports_image_edit": true,
          "pricing": {
            "prompt": "string",
            "completion": "string",
            "image": "string",
            "image_output": "string",
            "image_input_cache_read": "string",
            "image_input_tokens_by_resolution": {
              "property1": 0,
              "property2": 0
            },
            "image_output_tokens_by_resolution": {
              "property1": 0,
              "property2": 0
            },
            "input_audio": "string",
            "input_audio_cache_read": "string",
            "output_audio": "string",
            "input_character": "string",
            "input_text_item": "string",
            "video_output": "string",
            "per_second": {
              "property1": "string",
              "property2": "string"
            },
            "per_image": {
              "property1": "string",
              "property2": "string"
            },
            "per_input_image": "string",
            "request": "string",
            "input_cache_read": "string",
            "input_cache_read_explicit": "string",
            "input_cache_write": "string",
            "input_cache_write_1h": "string",
            "web_search": "string",
            "content_filter": "string",
            "ocr_page": "string",
            "input_audio_hour": "string",
            "tiers": [
              {
                "name": "string",
                "up_to_tokens": 0,
                "prompt": "string",
                "completion": "string",
                "input_cache_read": "string",
                "input_cache_read_explicit": "string",
                "input_cache_write": "string",
                "input_cache_write_1h": "string",
                "peak": {
                  "peak": {
                    "prompt": "string",
                    "completion": "string",
                    "input_cache_read": "string"
                  },
                  "off_peak": {
                    "prompt": "string",
                    "completion": "string",
                    "input_cache_read": "string"
                  }
                }
              }
            ],
            "peak": {
              "peak": {
                "prompt": "string",
                "completion": "string",
                "input_cache_read": "string"
              },
              "off_peak": {
                "prompt": "string",
                "completion": "string",
                "input_cache_read": "string"
              },
              "hours_utc": [
                [
                  0,
                  0
                ]
              ],
              "off_peak_days_utc": [
                0
              ]
            },
            "discount": "string"
          },
          "regions": [
            {
              "id": "string",
              "pricing": {
                "prompt": "string",
                "completion": "string",
                "image": "string",
                "image_output": "string",
                "image_input_cache_read": "string",
                "image_input_tokens_by_resolution": {
                  "property1": 0,
                  "property2": 0
                },
                "image_output_tokens_by_resolution": {
                  "property1": 0,
                  "property2": 0
                },
                "input_audio": "string",
                "input_audio_cache_read": "string",
                "output_audio": "string",
                "input_character": "string",
                "input_text_item": "string",
                "video_output": "string",
                "per_second": {
                  "property1": "string",
                  "property2": "string"
                },
                "per_image": {
                  "property1": "string",
                  "property2": "string"
                },
                "per_input_image": "string",
                "request": "string",
                "input_cache_read": "string",
                "input_cache_read_explicit": "string",
                "input_cache_write": "string",
                "input_cache_write_1h": "string",
                "web_search": "string",
                "content_filter": "string",
                "ocr_page": "string",
                "input_audio_hour": "string",
                "tiers": [
                  {
                    "name": "string",
                    "up_to_tokens": 0,
                    "prompt": "string",
                    "completion": "string",
                    "input_cache_read": "string",
                    "input_cache_read_explicit": "string",
                    "input_cache_write": "string",
                    "input_cache_write_1h": "string",
                    "peak": {
                      "peak": {
                        "prompt": "string",
                        "completion": "string",
                        "input_cache_read": "string"
                      },
                      "off_peak": {
                        "prompt": "string",
                        "completion": "string",
                        "input_cache_read": "string"
                      }
                    }
                  }
                ],
                "peak": {
                  "peak": {
                    "prompt": "string",
                    "completion": "string",
                    "input_cache_read": "string"
                  },
                  "off_peak": {
                    "prompt": "string",
                    "completion": "string",
                    "input_cache_read": "string"
                  },
                  "hours_utc": [
                    [
                      0,
                      0
                    ]
                  ],
                  "off_peak_days_utc": [
                    0
                  ]
                },
                "discount": "string"
              },
              "context_length": 0,
              "max_output": 0,
              "streaming": true
            }
          ],
          "service_tiers": [
            {
              "id": "string",
              "name": "string",
              "multiplier": 0,
              "description": "string"
            }
          ],
          "service_tier_regions": [
            "string"
          ],
          "context_length": 0,
          "streaming": true,
          "vision": true,
          "audio": true,
          "document": true,
          "realtime": true,
          "cancellation": true,
          "tools": true,
          "parallelToolCalls": true,
          "supported_tool_choices": [
            "auto"
          ],
          "json_output": true,
          "structured_outputs": true,
          "web_search": true,
          "web_search_native": true,
          "web_search_forced_only": true,
          "verbosity": true,
          "reasoning": true,
          "reasoning_efforts": [
            "none"
          ],
          "reasoning_modes": [
            "standard"
          ],
          "reasoning_max_tokens": true,
          "min_cacheable_tokens": 0,
          "max_output": 0,
          "max_temperature": 0,
          "supports_n": true,
          "max_n": 0,
          "quantization": "int4",
          "supported_voices": [
            "string"
          ],
          "supported_parameters": [
            "string"
          ],
          "stability": "stable",
          "deprecated_at": "string",
          "deactivated_at": "string"
        }
      ],
      "pricing": {
        "prompt": "string",
        "completion": "string",
        "image": "string",
        "image_output": "string",
        "image_input_cache_read": "string",
        "image_input_tokens_by_resolution": {
          "property1": 0,
          "property2": 0
        },
        "image_output_tokens_by_resolution": {
          "property1": 0,
          "property2": 0
        },
        "input_audio": "string",
        "input_audio_cache_read": "string",
        "output_audio": "string",
        "input_character": "string",
        "input_text_item": "string",
        "video_output": "string",
        "per_second": {
          "property1": "string",
          "property2": "string"
        },
        "per_image": {
          "property1": "string",
          "property2": "string"
        },
        "per_input_image": "string",
        "request": "string",
        "input_cache_read": "string",
        "input_cache_read_explicit": "string",
        "input_cache_write": "string",
        "input_cache_write_1h": "string",
        "web_search": "string",
        "content_filter": "string",
        "ocr_page": "string",
        "input_audio_hour": "string",
        "tiers": [
          {
            "name": "string",
            "up_to_tokens": 0,
            "prompt": "string",
            "completion": "string",
            "input_cache_read": "string",
            "input_cache_read_explicit": "string",
            "input_cache_write": "string",
            "input_cache_write_1h": "string",
            "peak": {
              "peak": {
                "prompt": "string",
                "completion": "string",
                "input_cache_read": "string"
              },
              "off_peak": {
                "prompt": "string",
                "completion": "string",
                "input_cache_read": "string"
              }
            }
          }
        ],
        "peak": {
          "peak": {
            "prompt": "string",
            "completion": "string",
            "input_cache_read": "string"
          },
          "off_peak": {
            "prompt": "string",
            "completion": "string",
            "input_cache_read": "string"
          },
          "hours_utc": [
            [
              0,
              0
            ]
          ],
          "off_peak_days_utc": [
            0
          ]
        },
        "discount": "string",
        "internal_reasoning": "string"
      },
      "context_length": 0,
      "max_output": 0,
      "per_request_limits": {
        "property1": "string",
        "property2": "string"
      },
      "supported_parameters": [
        "string"
      ],
      "json_output": true,
      "structured_outputs": true,
      "free": true,
      "image_input_required": true,
      "deprecated_at": "string",
      "deactivated_at": "string",
      "stability": "stable"
    }
  ]
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}

How is this guide?

Last updated on