Die REST-API verfügt jetzt über eine Versionskontrolle. Weitere Informationen findest du unter Informationen zur API-Versionsverwaltung.
REST-API-Endpunkte für den Modellkatalog
Verwende die REST-API, um eine Liste der verfügbaren Modelle abzurufen, einschließlich Details wie ID, unterstützte Eingabe-/Ausgabemodalitäten und Ratenlimits.
Informationen zum GitHub Models-Katalog
Du kannst die REST-API verwenden, um verfügbare Modelle im GitHub Models-Katalog zu untersuchen.
List all models
Get a list of models available for use, including details like supported input/output modalities, publisher, and rate limits.
HTTP-Antwortstatuscodes für „List all models“
| Statuscode | BESCHREIBUNG | 
|---|---|
200 | OK  | 
Codebeispiele für „List all models“
Anforderungsbeispiel
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/modelsAntwort
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"
    ]
  }
]