GPT-4o Mini API
Access GPT-4o Mini through one API key. Fast, cheap, and OpenAI-compatible.
OpenAI's most cost-effective model. Fast responses, great for classification, extraction, and lightweight chat tasks.
Takes 30 seconds.
GPT-4o Mini API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated September 27, 2026.
| Token type | Price |
|---|---|
| Input | $0.22 / 1M tokens |
| Output | $0.89 / 1M tokens |
| Context window | 128K tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0007 | $0.665 |
| RAG answer8K input + 800 output tokens | $0.0025 | $2.47 |
| Agent step with tools30K input + 2K output tokens | $0.0084 | $8.38 |
| Long document summary100K input + 2K output tokens | $0.024 | $23.78 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see GPT-4o Mini respond in real time.
Maximum tokens in the response.
Real-time tokens
GPT-4o Mini specs
| Provider | OpenAI |
|---|---|
| Model ID | openai/gpt-4o-mini |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 128K tokens |
| Max output | 16K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a GPT-4o Mini API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call GPT-4o Mini
Send a request to /v1/ai/chat with the x-api-key header and model "openai/gpt-4o-mini".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
At $0.22 per 1M input and $0.89 per 1M output tokens, it's OpenAI's cheapest GPT-4o-class model, suited to high-volume pipelines where per-call cost dominates.
Low time-to-first-token makes it a good fit for interactive UIs, autocomplete, and tight latency budgets that don't need a flagship model.
Reliable on labeling, sentiment, entity extraction, and routing tasks where the 128K context window comfortably holds documents to be processed.
Follows JSON and schema-constrained formats well, returning up to 16,384 output tokens per call for batch tagging and parsing jobs.
Quick start
Copy this snippet and start making calls with GPT-4o Mini.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "openai/gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);GPT-4o Mini vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| GPT-4o Mini | OpenAI | $0.22 in / $0.89 out per 1M | 128K |
| GPT-6 Luna | OpenAI | $0.15 in / $0.74 out per 1M | 1.1M |
| GPT-6 Luna Pro | OpenAI | $0.15 in / $0.74 out per 1M | 1.1M |
| GPT-OSS 120B | OpenAI | $0.22 in / $0.89 out per 1M | 131K |
| GPT-5.6 Luna | OpenAI | $0.30 in / $1.77 out per 1M | 1.1M |
| GPT-5.6 Luna Pro | OpenAI | $0.30 in / $1.77 out per 1M | 1.1M |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
Why use GPT-4o Mini through YepAPI?
GPT-4o Mini API — pricing, context window & access
GPT-4o Mini is OpenAI's small, low-cost member of the GPT-4o family, built for tasks where you need GPT-4o-style behavior at a fraction of the price. It pairs a 128K-token context window with up to 16,384 output tokens per response.
Through YepAPI you call GPT-4o Mini on an OpenAI-compatible endpoint with one key — the same key that also reaches GPT-4o, Claude, Gemini and the SEO, SERP and scraping endpoints.
What is GPT-4o Mini?
GPT-4o Mini is OpenAI's most cost-effective model, the lightweight sibling of the flagship GPT-4o. It keeps the same 128K-token context window but is tuned for speed and price rather than peak reasoning, which makes it the default choice for high-throughput, well-defined work: classification, extraction, content moderation, routing, and lightweight chat. It sits below GPT-4o in OpenAI's lineup as the model you reach for when a task is repetitive and volume — not maximum intelligence — is the constraint that matters.
Build with GPT-4o Mini via YepAPI
YepAPI exposes GPT-4o Mini through the OpenAI-compatible /v1/ai/chat endpoint. If you already speak the chat-completions format, point your base URL at YepAPI, drop in your key, and set the model string to gpt-4o-mini. Switching to GPT-4o, Claude Haiku, or Gemini Flash later is a one-string change — no SDK swap, no new credentials. The same key also covers search and scraping endpoints, so a whole pipeline runs on one account.
GPT-4o Mini API pricing — $0.22 / 1M input, $0.89 / 1M output
GPT-4o Mini costs $0.22 per 1M input tokens and $0.89 per 1M output tokens through YepAPI. That makes it one of the cheapest capable models available and ideal for jobs measured in millions of tokens — tagging support tickets, parsing scraped pages, or batch-summarizing records. Because output is priced at four times input, prompts that emit short structured results stay especially economical. You pay per token used, with no minimums.
GPT-4o Mini for classification & extraction
GPT-4o Mini shines on structured, repeatable language tasks. Feed it documents inside the 128K window and ask for sentiment labels, extracted fields, or routing decisions, and it returns clean JSON at high speed. For pipelines that process large volumes of short inputs — moderation queues, lead scoring, data normalization — its low price and fast responses let you run it at scale without the cost of a frontier model.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
OpenAI's most cost-effective model. Fast responses, great for classification, extraction, and lightweight chat tasks.
GPT-4o Mini costs $0.22 per 1M input tokens and $0.89 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0007.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for GPT-4o Mini and every other model — no separate OpenAI account or waitlist.
Use "openai/gpt-4o-mini" as the model on /v1/ai/chat. The short alias "gpt-4o-mini" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "openai/gpt-4o-mini". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
GPT-4o Mini supports a 128K token context window with up to 16K output tokens per request.
Explore more models
GPT-5.5 Pro
OpenAIAccess GPT-5.5 Pro through one API key. OpenAI's most powerful reasoning model.
GPT-4o
OpenAIAccess GPT-4o through one API key. Flagship reasoning and multimodal capabilities.
GPT-5.3 Codex
OpenAIAccess GPT-5.3 Codex through one API key. Previous-gen coding model with massive output.
Qwen 3 Coder
QwenAccess Qwen 3 Coder through one API key. Coding-specialized model at an ultra-low price.
Claude Opus 4.7
AnthropicAccess Claude Opus 4.7 through one API key. Anthropic's newest and most intelligent model.
Claude Opus 4.6
AnthropicAccess Claude Opus 4.6 through one API key. Anthropic's previous-generation flagship.
More Text Generation models
- Seed-2.0-Code API · ByteDance
- Claude Opus 4.5 API · Anthropic
- Gemini 3.8 Flash API · Google
- Qwen 3.5 Flash API · Qwen
- Step 3.5 Flash API · StepFun
- Solar Mini 4 API · Upstage
- Claude Opus 5.5 API · Anthropic
- GLM 5 API · Z.ai
- Claude Opus 4.1 API · Anthropic
- Grok 4.20 API · xAI
- DeepSeek R1 0528 API · DeepSeek
- DeepSeek V4 Flash API · DeepSeek