gpt-4.1-mini by GitHub Models
Free prototyping for all GitHub users. 45+ models. Per-request limits (8K in / 4K out).
Access
Free API tier
Free limits
15 RPM, 150 RPD
Modality
text
Credit card
Not required
Commercial use
Unclear, verify
Context window
1,000,000 tokens
Rate limit
15 RPM · 150 RPD
Model ID
openai/gpt-4.1-mini
Base URL
https://models.github.ai/inference
Last verified
June 2026
Quickstart
curl https://models.github.ai/inference/chat/completions \
-H "Authorization: Bearer $KEY" \
-d '{"model":"openai/gpt-4.1-mini","messages":[{"role":"user","content":"hi"}]}'Frequently asked
Is gpt-4.1-mini free?
Yes. GitHub Models offers it as Free API tier with these limits: 15 RPM, 150 RPD. No credit card is required.
Can I use gpt-4.1-mini commercially?
Commercial terms are not clearly documented. Check the provider's current terms before shipping.
How do I start using gpt-4.1-mini?
Free prototyping for all GitHub users. 45+ models. Per-request limits (8K in / 4K out).
Building with this model?
We wire free-tier and open-weight models into production stacks: evals against your real inputs, failover, cost caps.
Free monthly update
The monthly free-models update
What is newly free, what got rate-limited, and what to switch to. One email a month. Unsubscribe anytime.
Related free models
- Kimi K2.6 (Ollama Cloud) · Free tier
- GLM 4.6 (Z.ai) · Self-host free
- Gemini 2.5 Flash (Google AI Studio) · Generous · no card
- Qwen3.7 Max (Qwen) · Free tier
- Inference API (Hugging Face) · Rate-limited · 1000s of models
- Gemini 3.5 Flash (Google Gemini) · 15 RPM, 1,500 RPD