OpenAI: o4 Mini

o4 Mini is OpenAI's compact reasoning model, released 2025-04, built for fast and cost-efficient multimodal and agentic workloads. It outperforms its predecessor o3-mini on AIME and SWE-bench, and suits high-throughput STEM, coding, and visual tasks where latency matters.

Modalities
inImageinTextinFileoutText
Price / 1M−70%
$0.33 / $1.32$1.10 / $4.40
Context
200K
Knowledge cutoff
2024-06-30

Capabilities

ReasoningVisionTool useLong contextPrompt cachingStructured output

Channels

Same weights on every channel. Requests route to the cheapest healthy one; the channel used is printed on each billing line.

Provider
Discount
Input /M
Output /M
Cache Read /M
Cache Create 5m /M
Cache Create 1h /M
Codexcheap
−70%
$0.33
$1.32
$0.08
Defaultstable
−30%
$0.77
$3.08
$0.19

Cost Calculator

Pick a channel and a usage scenario, then drag to your workload — each scenario assumes a different prompt-cache hit rate.

Channel
Scenario
Unit $0.33 / $1.32 /1MDaily chat: 40% cache hit assumed · cache read $0.08 /1M
List price $285.12On MirAPI$85.54/ moYou save $199.58Create an API key

Showcase

Three fixed prompts, identical for every chat model. Outputs are archived verbatim — copy the prompt to reproduce.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt; the output lands here verbatim, with tokens and per-run cost.

Quick Start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="openai/o4-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire o4 Mini into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free