o4-mini — Free API
Created by OpenAI ⭐ Score: 60github-models/o4-mini What is o4-mini?
o4-mini is OpenAI's latest-generation small reasoning model, available free through GitHub Models. Building on the o3 architecture with improved reasoning efficiency, it uses internal chain-of-thought deliberation to tackle math, coding challenges, and logic problems that trip up standard chat models. With 200K context, 100K max output, and full OpenAI SDK compatibility, it works as a drop-in replacement in any tool that supports custom base URLs. Free tier limits are 10 RPM and 50 requests per day, with per-request caps applying. Requires only a GitHub account — no separate API key or credit card needed.
o4-mini API Code Example
Paste your API key and run. See the config generator for Claude Code, Cursor, and more tools.
Other Free Models from GitHub Models
More About GitHub Models
How to get an API key, rate limits, platform limitations, and tool configuration — everything you need to set up GitHub Models as a free LLM API backend.
View GitHub Models full guide →