openai logo
openai

OpenAI: GPT-4o-mini

Source description (English)

GPT-4o mini is OpenAI's newest model after GPT-4 Omni, supporting both text and image inputs with text outputs. As their most advanced small model, it is many multiples more affordable...

Overview

Model specifications

Context
128,000 tokens
Maximum output
16,384 tokens
Architecture
text+image+file->text
Tokenizer
GPT
Knowledge cutoff
2023-10-31
Moderated
Yes
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$0.15
per 1M tokens
Output
$0.6
per 1M tokens
Cache read
$0.075
per 1M tokens
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

Input → Output

Input
textimagefile
Output
text
API

Supported API parameters

frequency_penaltylogit_biaslogprobsmax_completion_tokensmax_tokenspredictionpresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_logprobstop_pweb_search_options
Available providers

3 providers

Checked: September 7, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Azure

Not provided
Context
128K
Maximum output
16K
Input
$0.15
Output
$0.6
Cache read
$0.075
Cache write
Not provided

OpenAI

Not provided
Context
128K
Maximum output
16K
Input
$0.15
Output
$0.6
Cache read
$0.075
Cache write
Not provided

Azure

Not provided
Context
128K
Maximum output
16K
Input
$0.165
Output
$0.66
Cache read
$0.0825
Cache write
Not provided
openai

4 models

All models