Requesty

gpt-4o-mini

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable than other recent frontier models, and more than 60% cheaper than [GPT-3.5 Turbo](/models/openai/gpt-3.5-turbo). It maintains SOTA intelligence, while being significantly more cost-effective. GPT-4o mini achieves an 82% score on MMLU and presently ranks higher than GPT-4 on chat preferences [common leaderboards](https://arena.lmsys.org/). Check out the [launch announcement](https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/) to learn more. #multimodal

VisionTool callingCachingJSON schema

Specifications

Context window128K tokens
Max output16K tokens
API typechat
AddedJul 18, 2024
Model IDopenai/gpt-4o-mini
Data retentionYes (30 days)
Used for trainingNo
Provider locationπŸ‡ΊπŸ‡Έ US

Benchmarks

Released 2024-07-18
GPQA Diamondreasoning
42.6%

Graduate-level physics, chemistry & biology questions designed to resist Googling.

Intelligence Indexreasoning
12.6%

Artificial Analysis Intelligence Index β€” a composite of multiple evaluations measuring overall model capability.

Scores are sourced from official model cards, Artificial Analysis, and public leaderboards. Benchmarks measure specific skills and do not capture every aspect of model quality β€” always test on your own workload.

Pricing

Input / 1M
$0.15
Output / 1M
$0.60
Cache write
β€”
Cache read / 1M
$0.07
Estimated cost
100K input + 10K output$0.0210
1M input + 100K output$0.21
10M input + 1M output$2.10

Requesty charges exactly what the upstream provider charges β€” no markup, no per-request fees. Prompt caching and smart routing can reduce effective cost by 30-80%.

Quickstart

Drop-in compatible with the OpenAI SDK. Change the base URL, swap in your Requesty API key, and set the model to openai/gpt-4o-mini.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="openai/gpt-4o-mini", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)

Other OpenAI Inc. models

Frequently asked questions

How much does gpt-4o-mini cost?
gpt-4o-mini is priced at $0.15 per million input tokens and $0.60 per million output tokens when accessed via Requesty. Prompt caching is supported, which can cut effective input cost by up to 90% on repeated context. Requesty charges exactly what the upstream provider charges β€” we don't add markup.
What is the context window of gpt-4o-mini?
gpt-4o-mini has a context window of 128K tokens, with a maximum output of 16K tokens per response. That's roughly 171 words of input you can fit in a single prompt.
How does gpt-4o-mini perform on benchmarks?
gpt-4o-mini scores 64.8% on MMLU Pro, 42.6% on GPQA Diamond, 23.4% on LiveCodeBench. See the full benchmark chart above for results across MMLU Pro, GPQA Diamond, SWE-Bench Verified, HumanEval, MATH, AIME, MMMU, and LiveBench.
What can gpt-4o-mini do?
gpt-4o-mini supports vision input, tool calling, prompt caching, structured outputs (JSON schema). You can call it through any OpenAI-compatible client by pointing base_url to Requesty.
How do I use gpt-4o-mini with the OpenAI SDK?
Install the OpenAI SDK, set base_url to "https://router.requesty.ai/v1", set your API key to your Requesty key, and set the model to "openai/gpt-4o-mini". The Quickstart above shows Python, JavaScript and cURL snippets.

Access gpt-4o-mini through Requesty

One API key, 400+ models, OpenAI-compatible. No markup on provider prices, automatic failover, and smart caching built-in.