GPT-4o-mini (2024-07-18)

openai/gpt-4o-mini-2024-07-18
by OpenAI · text+image+file in · text out · 128K ctx · 2024-07-18

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text…

INPUT$0.15/ 1M tokens
OUTPUT$0.60/ 1M tokens
p50 TTFT1.50 s7d
p95 TTFT3.15 s7d
TRAFFIC9.4Ktokens / 7d
Code samples
from openai import OpenAI

client = OpenAI(
    base_url="https://orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="openai/gpt-4o-mini-2024-07-18",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Pricing
Input / 1M tokens$0.150
Output / 1M tokens$0.600
Cache read / 1M$0.075
CurrencyUSD
Performance
TTFT p50
1.50 s
Output speed
6.0 tok/s
TTFT p95
3.15 s
Error rate
8.0%
Public benchmarks
AA Intelligence
12.6
AA Math
14.7
AIME
11.7
AIME 2025
14.7
GPQA Diamond
42.6
Humanity's Last Exam
4.0
IFBench
31.0
LiveCodeBench
23.4
MATH-500
78.9
MMLU-Pro
64.8
SciCode
22.9
Source: artificialanalysis.ai
FAQ
How much does OpenAI: GPT-4o-mini (2024-07-18) cost on OrcaRouter?
OpenAI: GPT-4o-mini (2024-07-18) is priced at $0.15 per 1M input tokens and $0.60 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is OpenAI: GPT-4o-mini (2024-07-18)'s context window?
OpenAI: GPT-4o-mini (2024-07-18) supports a context window of 128K tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call OpenAI: GPT-4o-mini (2024-07-18) via the OpenAI SDK?
Set OpenAI base_url to https://orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="openai/gpt-4o-mini-2024-07-18" in the chat.completions.create call.
Does OrcaRouter rate-limit OpenAI: GPT-4o-mini (2024-07-18)?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.
Embed this badge
OpenAI: GPT-4o-mini (2024-07-18)$0.15/M in1503ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/openai/gpt-4o-mini-2024-07-18" target="_blank"> <img src="https://www.orcarouter.ai/embed/openai/gpt-4o-mini-2024-07-18.svg" alt="OpenAI: GPT-4o-mini (2024-07-18) on OrcaRouter" /> </a>
Markdown [![OpenAI: GPT-4o-mini (2024-07-18)](https://www.orcarouter.ai/embed/openai/gpt-4o-mini-2024-07-18.svg)](https://www.orcarouter.ai/models/openai/gpt-4o-mini-2024-07-18)