Models API
Получение списка и информации обо всех доступных моделях на платформе OfoxAI. Возвращаемые данные соответствуют стандарту OpenRouter и содержат полные метаданные моделей: архитектуру, цены, поддерживаемые параметры и т.д.
Models API — публичный интерфейс, не требующий API Key. Подробное описание полей ответа см. в разделе Каталог моделей — Стандарт Models API.
Список всех моделей
GET https://api.ofox.io/v1/modelsПримеры запросов
cURL
Terminal
curl https://api.ofox.io/v1/modelsФормат ответа
{
"object": "list",
"data": [
{
"id": "anthropic/claude-sonnet-5.5",
"object": "model",
"created": 1790553600,
"owned_by": "bedrock",
"canonical_slug": "claude-sonnet-5-5",
"name": "Anthropic: Claude Sonnet 5.5",
"description": "Claude Sonnet 5.5 is Anthropic's Sonnet-tier model, offering a balance of speed and intelligence for coding, reasoning, and agentic workloads. It supports text, image, and file inputs with text output, with a 1M-token context window and up to 128K output tokens, at a lower per-token price than Claude Opus 5.5.",
"context_length": 1000000,
"architecture": {
"modality": "text+image+file->text",
"input_modalities": [
"text",
"image",
"file"
],
"output_modalities": [
"text"
],
"tokenizer": "claude",
"instruct_type": null
},
"pricing": {
"prompt": "0.000002",
"completion": "0.00001",
"input_cache_read": "0.0000002",
"input_cache_write_5m": "0.0000025",
"input_cache_write_1h": "0.000004",
"web_search": "0.015"
},
"top_provider": {
"context_length": 1000000,
"max_completion_tokens": 128000,
"is_moderated": false
},
"per_request_limits": null,
"supported_parameters": [
"temperature",
"top_p",
"max_tokens",
"stop",
"tools",
"tool_choice",
"response_format",
"reasoning"
],
"default_parameters": null,
"expiration_date": null,
"is_deprecated": false,
"supported_endpoints": [
"/v1/chat/completions",
"/v1/responses"
],
"aliases": [
"claude-sonnet-5-5",
"claude-sonnet-5.5"
]
}
]
}Описание полей ответа
Фильтрация по провайдеру
GET https://api.ofox.io/v1/models/{provider}Возвращает только модели указанного провайдера.
Параметры пути
Примеры запросов
Terminal
# Список всех моделей Anthropic
curl https://api.ofox.io/v1/models/anthropic
# Список всех моделей OpenAI
curl https://api.ofox.io/v1/models/openaiФормат ответа
Формат ответа аналогичен списку всех моделей, массив data содержит только модели указанного провайдера.
Детали модели
GET https://api.ofox.io/v1/models/{provider}/{model_id}Параметры пути
Примеры запросов
Terminal
curl https://api.ofox.io/v1/models/anthropic/claude-sonnet-5.5Формат ответа
Возвращает один объект Model, структура аналогична объектам в списке.
Обновлено