Skip to main content
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“

StatuscodeBESCHREIBUNG
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/models

Antwort

Status: 200
[ { "id": "openai/gpt-4.1", "name": "OpenAI GPT-4.1", "publisher": "OpenAI", "summary": "gpt-4.1 outperforms gpt-4o across the board, with major gains in coding, instruction following, and long-context understanding", "rate_limit_tier": "high", "supported_input_modalities": [ "text", "image", "audio" ], "supported_output_modalities": [ "text" ], "tags": [ "multipurpose", "multilingual", "multimodal" ] } ]