Back to model shop
Openai
Rendered from D1 model snapshot · D1 read 64msCache check: checking

openai/o4-mini

o4-mini

Fast o-series model for compact reasoning, coding, and tool use

This model's cache

This model page returns the exact headers below. The page and /api/models/openai--o4-mini share the model:openai--o4-mini tag, so invalidation stays scoped to this model.

Cache key/models/openai--o4-mini
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:openai--o4-mini

Workers Cache derives the key from this path/query, plus the Worker entrypoint and current Worker version.

export const Route = createFileRoute('/models/$modelSlug')({
  headers: () => ({
    'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
    'Cache-Tag': 'catalog,model:openai--o4-mini',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:openai--o4-mini'] })

Use this when one model changes and you do not want to evict the whole catalog.

O MiniReasoningTool callingStructured outputAttachments
Released
Apr 16, 2025
Last updated
Apr 16, 2025
Context window
200K tokens
Max output
100K tokens
Open weights
No
Family
O Mini

Starts at

Free

per 1M input tokens

Output

Free

Sellers

12

No cart or checkout in this MVP — pick a provider below and open their docs when you're ready to use it.

Capabilities & modalities
Reasoning
Tool calling
Structured output
Attachments
InputText, Image
OutputText
Provider shelf
Where to get o4-mini

Sorted by lowest input price

ProviderInput / 1MOutput / 1MContext

GitHub Models

openai/o4-mini

FreeFree200KDocs

Poe

openai/o4-mini

$0.99$4200KDocs

Requesty

openai/o4-mini

$1.1$4.4200KDocs

Vercel AI Gateway

openai/o4-mini

$1.1$4.4200KDocs

OpenAI

o4-mini

$1.1$4.4200KDocs

Merge Gateway

openai/o4-mini

$1.1$4.4200KDocs

NEAR AI Cloud

openai/o4-mini

$1.1$4.4200KDocs

Cloudflare AI Gateway

openai/o4-mini

$1.1$4.4200KDocs

Kilo Gateway

openai/o4-mini

$1.1$4.4200KDocs

OpenRouter

openai/o4-mini

$1.1$4.4200KDocs

NanoGPT

openai/o4-mini

$1.1$4.4200KDocs

AnyAPI

openai/o4-mini

QuoteQuote200KDocs
More from Openai