GitHub Copilot OpenAI icon

GitHub Copilot OpenAI

OpenAI-compatible GitHub Copilot API: Chat Completions and List Models (GET /v1/models)

List Models

AI-generated

Summary

Retrieve a list of available GitHub Copilot OpenAI models filtered by the specified subset.

Inputs

  • Filter — Specify which subset of models to return: all models, enabled models, chat-only models, or embedding models.

Output shape

a JSON object containing a list of models, each with details such as id, name, vendor, version, capabilities, and metadata about the list (total count, filter applied, fetch timestamp).

The output includes only models matching the selected filter. Models data is fetched live from the GitHub Copilot API, requiring valid API credentials. Possible filters: 'all', 'enabled' (default), 'chat', 'embeddings'. The response follows OpenAI-compatible format with pagination metadata.

Links

Discussion