O4 Mini
OpenAI logo

O4 Mini

o4-minillms.txt
OpenAI
o4-mini is a remarkably smart model for its speed and cost-efficiency. This allows it to support significantly higher usage limits than o3, making it a strong high-volume, high-throughput option for everyone with questions that benefit from reasoning.

Pricing

PricingCache ReadImage GenerationWeb Search
$1.100$4.400
$0.275/M tokens-$0.01/request

Input Modalities

  • Text
  • Vision

Output Modalities

  • Text

Capabilities

  • Thinking
  • Tool calling
  • Structured outputs

Providers

Azure o4-mini
Pricing$1.100$4.400
Cache Read$0.275/M tokens
Web Search$0.01/request
Context200K
Max output100K
Latency11.2S
Throughput105.2TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
OpenAI o4-mini
Pricing$1.100$4.400
Cache Read$0.275/M tokens
Web Search$0.01/request
Context200K
Max output100K
Latency5.8S
Throughput43.5TPS
Uptime
100.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today

Performance for o4-mini

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="o4-mini",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is O4 Mini?

o4-mini is a remarkably smart model for its speed and cost-efficiency. This allows it to support significantly higher usage limits than o3, making it a strong high-volume, high-throughput option for everyone with questions that benefit from reasoning.