gpt-5 — Free AI Model & API

github-models/gpt-5
chat
Context Window 200K
Max Output 32K
Rate Limit 10 RPM, 50 RPD
Cost $0.00 FREE
Free Period Since May 23, 2026
Credit Card Not required
Phone Verification Required
Status Online

Overview

gpt-5 — free model from GitHub Models.

Model ID
gpt-5
Base URL
https://models.github.ai/inference
Specifications
Context: 200K · Output: 32K · Modality: text · OpenAI Compat: Yes

Quick Start

Integrate gpt-5 with 3 lines of code. See the config generator for Claude Code, Cursor, and more.

from openai import OpenAI

client = OpenAI(
    base_url="https://models.github.ai/inference",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="gpt-5",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";

const openai = new OpenAI({
  baseURL: "https://models.github.ai/inference",
  apiKey: "YOUR_API_KEY",
});

const completion = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(completion.choices[0].message.content);
curl https://models.github.ai/inference/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gpt-5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Other Free Models from GitHub Models

Rate Limits & Constraints

Rate Limit 10 RPM, 50 RPD
Context Window 200K
Max Output Tokens 32K
Cost Free — since May 23, 2026
Credit Card Not required
OpenAI Compatible Yes — drop-in replacement

GitHub Models Platform Limitations

  • Low per-request token limits (8K input / 4K output)
  • Rate limits tied to GitHub Copilot subscription tier
  • Not suitable for large-context or long-generation tasks

Features & Use Cases

Best For

Chat

Modality Support

text

GitHub Models Highlights

  • 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

How to Get a Free GitHub Models API Key

Follow these steps to get your free API key for gpt-5. No credit card required — just sign up and start using the API.

  1. Sign in with GitHub account Every GitHub user gets free access.
  2. Go to github.com/marketplace/models
  3. Generate a personal access token with Models:read permission
  4. Pick a model GPT-4.1, o3, Llama 4, DeepSeek — 45+ models available.
  5. Configure OpenAI client Base URL: https://models.inference.ai.azure.com

Playground — Test gpt-5

Test gpt-5 directly in your browser. Your API key is sent directly to GitHub Models — never stored.

Model: gpt-5 Get Key

🔒 Your key is never stored — sent directly to the model provider via our server proxy.

Ready to chat with gpt-5.

Frequently Asked Questions

How do I get an API key for gpt-5?

Sign up at GitHub Models to get your API key. No credit card is required — just an email sign-up. Once you have the key, use the code snippets in the Quick Start section above.

Is gpt-5 really free?

Yes. gpt-5 is available on GitHub Models's free tier and has been free since May 23, 2026. Rate limits apply: 10 RPM, 50 RPD. Always check the provider's terms for any changes to the free tier.

What are gpt-5's rate limits?

10 RPM, 50 RPD Context window: 200K. Max output: 32K. No credit card required.

What are the best free alternatives to gpt-5?

Popular free alternatives include inclusionAI: Ring-2.6-1T, Owl Alpha, NVIDIA: Nemotron 3 Nano Omni (free). You can also browse all 164+ free models on our site.

More questions? See our full FAQ →

Similar Free Models