# GitHub Models

Category: [AI models and chat](https://free-web-services.com/web-services/ai/llm/)  
Page: https://free-web-services.com/web-services/ai/llm/github-models.html  
Documentation: https://docs.github.com/en/github-models

GitHub Models lets developers try and compare AI models from OpenAI, Meta, Microsoft, Mistral, DeepSeek and others, in a playground on GitHub and through an API that uses a GitHub personal access token. It is meant for prototyping and experiments, for example to test prompts before building an app. Free for every GitHub account, with daily and per-minute request limits per model that depend on your Copilot plan; paid usage is available for more.

- API key: Needed, free
- Pricing: Free for every GitHub account, with daily and per-minute request limits per model that depend on your Copilot plan; paid usage is available for more.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST
- Provider: docs.github.com
- Last checked: Working on November 1st, 2026

Example request:

```sh
curl -X POST 'https://models.github.ai/inference/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model": "openai/gpt-4.1-mini", "messages": [{"role": "user", "content": "hello"}]}'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

