GPT-4o mini API pricing
$0.15 in, $0.60 out per million tokens.
Price · per million tokens, USD
Get a key| Tokens | OpenAI list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | $0.15 | $0.15 | none |
| Cached input | $0.075 | $0.075 | none |
| Output | $0.60 | $0.60 | none |
GPT-4o mini specs
- Context window
- 128,000 tokens
- Max output
- 16,384 tokens
- Input
- text and image
- Released
- July 18, 2024
GPT-4o mini is deprecated: OpenAI shuts it down on 2027-01-14 · OpenAI’s deprecations page, read 2026-10-19
On 2026-10-14 OpenAI notified developers that GPT-4o mini (gpt-4o-mini-2024-07-18) will be removed from its API on 2027-01-14, together with GPT-4o, GPT-4.1 and GPT-4.1 mini. Fine-tuned versions follow the same date. OpenAI's recommended replacement for all four is gpt-6-luna (OpenAI deprecations; the model page marks it Deprecated).
Here gpt-4o-mini answers today, and the daily real-model check shows whether it still does. Moving is a one-word change on the same key and base URL: send a different model id. GPT-6 Luna is $0.0625 input and $0.20 output per million tokens here, with a 1,050,000-token context window.
| Model | Released | Context | Here, in / out | OpenAI list, in / out | 1,000 chat turns here |
|---|---|---|---|---|---|
| GPT-4o mini | 2024-07-18 | 128,000 | $0.15 / $0.60 | $0.15 / $0.60 | $0.60 |
| GPT-6 Luna | 2026-09-22 | 1,050,000 | $0.0625 / $0.20 | $0.10 / $0.50 | $0.23 |
| GPT-5.6 Luna | 2026-07-09 | 1,050,000 | $0.12 / $0.72 | $0.20 / $1.20 | $0.60 |
| GPT-5.4 Mini | 2026-03-17 | 400,000 | $0.75 / $4.50 | $0.75 / $4.50 | $3.75 |
Price per million tokens. A chat turn is 2,000 input and 500 output tokens. Live from the catalog.
GPT-4o mini pricing, worked · cost of 1,000 requests
OpenAI bills GPT-4o mini at $0.15 per million input tokens, $0.075 for cached input and $0.60 for output (OpenAI model page, read 2026-10-19). Here it is $0.15 input and $0.60 output, from prepaid credit. The table prices 1,000 requests of three common shapes at both.
| Request | Tokens in / out | OpenAI list | Here |
|---|---|---|---|
| Classify a support ticket | 300 / 10 | $0.05 | $0.05 |
| A chat turn | 2,000 / 500 | $0.60 | $0.60 |
| Summarize a long document | 10,000 / 400 | $1.74 | $1.74 |
USD for 1,000 requests, uncached input. Here: live from the catalog.
GPT-4o mini takes text and images and returns text, with a 128,000-token context window, up to 16,384 output tokens and an October 2023 knowledge cutoff, per OpenAI's model page.
GPT-4o mini API key · base URL and setup
- Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
- Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with OPENAI_BASE_URL, and send the key as the bearer token.
- Send gpt-4o-mini as the model. The same key calls every other model in the catalog.
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'gpt-4o-mini',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'What would it cost? · paste a prompt, priced before you send it
Input is counted at about 4 characters per token.