o4-mini

openai/o4-mini

A chat model with a 200K-token context window, at $1.155 per million input tokens and $4.62 per million output tokens.

Details

Maker
openai
Kind
Chat
Context window
200,000 tokens
Max output
100,000 tokens
Input
$1.155 per million tokens
Cached input
$0.28875 per million tokens, 75% off
Cache write
Same as input
Output
$4.62 per million tokens
Capabilities
Reasoning, tool use, vision, file input, web search, fast
Takes
Text, image, pdf
Returns
Text
Zero data retention
Yes, on every provider
No training on requests
Yes, on every provider
Released
2025-04-16
Newer model
openai/gpt-6-lunaReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two

Description

OpenAI's o4-mini delivers fast, cost-efficient reasoning with exceptional performance for its size, particularly excelling in math (best-performing on AIME benchmarks), coding, and visual tasks.

Call it

curl
curl https://phantom.codes/v1/chat/completions \
  -H "Authorization: Bearer $PHANTOM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/o4-mini",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.