Skip to main content
All models

o4-mini

OpenAIOpenAI docs

o4-mini

Run o4-mini in a hosted Python Task with web search and file inputs.

Fast, cost-efficient reasoning model optimized for high-volume STEM tasks. Best-performing benchmarked model on AIME 2024 and 2025. Supports higher usage limits than o3 for throughput-sensitive workloads.

Upcoming retirement

This model retires on October 23, 2026. Plan a move to a newer model before then.

What o4-mini supports in qbash

  • Web searchSearches the web while it answers.
  • Reasoning effort3 levels, from low to high.
  • Image inputReads WEBP, PNG, JPEG and GIF images.
  • Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
  • Prompt cachingRepeated input is billed at the cached rate.

What is qbash?

qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like o4-mini only at the ones that need judgment, with integrations, memory and files available in the same script.

A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.

Specifications

Context window
200Ktokens
Max output
100,000tokens

Use o4-mini in a Python Task

qbash.ai.raw calls o4-mini from a Task and returns its reply as a string.

main.py
notes = qbash.inputs.get("notes")

summary = qbash.ai.raw(
f"Summarize these meeting notes in five bullets:\n\n{notes}",
model="o4-mini",
system="You are a concise analyst.",
)

qbash.output({"summary": summary})
Model calls in Tasks

Use o4-mini with web search

Turn on Web Search in an inline prompt's model bar and o4-mini searches the web while it answers. Searches are billed at $10.00 per 1,000.

Reasoning effort with o4-mini

Set Effort to low, medium and high in the prompt's Settings. The default is medium. Higher effort spends more tokens on reasoning before the reply.

o4-mini pricing

Input$1.10 per 1M tokens
Output$4.40 per 1M tokens
Cached input$0.275 per 1M tokens
Web search$10.00 per 1K searches

Standard rates in USD.

Supported file formats

Images

  • WEBP up to 20 MB
  • PNG up to 20 MB
  • JPEG up to 20 MB
  • GIF up to 20 MB

Documents

  • PDF
  • TEXT
  • DOC
  • XLS
  • RTF
  • DOCX
  • XLSX
  • PPTX
  • PPT
  • ODT
  • ODP
  • ODS

Automate o4-mini with qbash