Skip to content

Models

model ID — важный параметр запроса. Значение model должно быть доступно текущему аккаунту.

GET /v1/models

Пример:

Terminal window
curl https://www.routeapi.ai/v1/models \
-H "Authorization: Bearer $ROUTEAPI_KEY"
{"model":"gpt-4o"}
FieldОписание
idModel ID
nameDisplay name
context_lengthContext length
input_priceInput price
output_priceOutput price
supports_streamStreaming support
supports_toolsTool support
supports_visionVision support
supports_json_schemaStructured output support
  1. Check the spelling of the model ID.
  2. Check unsupported optional parameters.
  • Pin model IDs in production.
  • Prepare alternatives for key business.
  • Verify model capability before launch.
  • Test with the same Token used in production.