Skip to main content
REST API теперь версия. Дополнительные сведения см. в разделе "О управлении версиями API".

Конечные точки REST API для каталога моделей

Используйте REST API, чтобы получить список моделей, доступных для использования, включая сведения, такие как идентификатор, поддерживаемые модальности ввода и вывода, и ограничения скорости.

О каталоге GitHub Models

Rest API можно использовать для изучения доступных моделей в каталоге GitHub Models.

List all models

Get a list of models available for use, including details like supported input/output modalities, publisher, and rate limits.

Коды состояния http-ответа для "List all models"

Код состоянияОписание
200

OK

Примеры кода для "List all models"

Пример запроса

get/catalog/models
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://models.github.ai/catalog/models

Response

Status: 200
[ { "id": "openai/gpt-4.1", "name": "OpenAI GPT-4.1", "publisher": "OpenAI", "registry": "azure-openai", "summary": "gpt-4.1 outperforms gpt-4o across the board, with major gains in coding, instruction following, and long-context understanding", "html_url": "https://github.com/marketplace/models/azure-openai/gpt-4-1", "version": "2025-04-14", "capabilities": [ "streaming", "tool-calling" ], "limits": { "max_input_tokens": 1048576, "max_output_tokens": 32768 }, "rate_limit_tier": "high", "supported_input_modalities": [ "text", "image", "audio" ], "supported_output_modalities": [ "text" ], "tags": [ "multipurpose", "multilingual", "multimodal" ] } ]