GitHub Models — Free LLM API

11 free models available — no credit card required. Get API key →

GPT-4o, o3, Llama 4, DeepSeek-R1 — free for all GitHub users.

GitHub Models provides free API access to 45+ models from OpenAI (GPT-4.1, o3, o4-mini), Meta (Llama 4), Mistral, DeepSeek, and Cohere for GitHub account holders. Rate limits depend on the GitHub Copilot subscription tier (Free/Pro/Pro+/Business). Tokens per request are limited (8K in/4K out), making it best suited for prototyping rather than production workloads.

  • 45+ models including GPT-4.1 and o3
  • Free for all GitHub accounts
  • Includes Llama 4, DeepSeek-R1, Mistral
  • Base URL: models.inference.ai.azure.com

API Compatibility: OpenAI SDK-compatible (Chat Completions)

All Free GitHub Models Models — Context Windows & Rate Limits

Model Context Max Output Modality Rate Limit Status
gpt-4.1 1.0M 32K text 10 RPM, 50 RPD Details
gpt-4.1-mini 1.0M 32K text 15 RPM, 150 RPD Details
gpt-4o 128K 16K text 10 RPM, 50 RPD Details
o3-mini 200K 100K text 10 RPM, 50 RPD Details
o4-mini 200K 100K text 10 RPM, 50 RPD Details
Llama-4-Scout-17B-16E 512K 4K text 15 RPM, 150 RPD Details
Llama-4-Maverick-17B-128E 256K 4K text 10 RPM, 50 RPD Details
Meta-Llama-3.3-70B 131K 4K text 15 RPM, 150 RPD Details
DeepSeek-R1 64K 8K text 15 RPM, 150 RPD Details
Mistral-Small-3.1 128K 4K text 15 RPM, 150 RPD Details
+ 35 more models 131K 131K text Varies by tier Details

Frequently Asked Questions about GitHub Models Free API

Is GitHub Models free to use?

GitHub Models offers a permanently free tier with 11 available models. No credit card is required to get started — just sign up and generate an API key.

What models does GitHub Models offer for free?

GitHub Models provides 11 free models covering chat, reasoning use cases. Supported modalities include text. Browse the full list above with context windows and rate limits.

How do I use GitHub Models with Claude Code or Cursor?

Click "Details" on any model above to get one-click configuration snippets for Claude Code (cc), Cursor, Codex, and more. All GitHub Models models listed here use an OpenAI-compatible endpoint, so any tool that accepts a custom baseURL will work.