ModelsSupportEnterpriseBlog
500+ AI Model API, All In One API.Just In CometAPI
Models API
Developer
Quick StartDocumentationAPI Dashboard
Resources
AI ModelsBlogEnterpriseChangelogAbout
2025 CometAPI. All right reserved.Privacy PolicyTerms of Service
Home/Models/OpenAI/o4-mini
O

o4-mini

Input:$0.88/M
Output:$3.52/M
O4-mini is an artificial intelligence model provided by OpenAI.
New
Commercial Use
Overview
Features
Pricing
API
Versions

Technical Specifications of o4-mini

AttributeDetails
Model IDo4-mini
ProviderOpenAI
Model typeReasoning model optimized for fast, cost-efficient performance.
Primary modalitiesText and image input; text output.
StrengthsStrong performance in math, coding, and visual reasoning tasks.
Relative positioningA smaller o-series model designed for efficient reasoning workloads.
StatusAvailable in the API; OpenAI has stated there are no API changes tied to its retirement from ChatGPT.

What is o4-mini?

o4-mini is an artificial intelligence model provided by OpenAI. It is a compact reasoning model in the o-series, designed to deliver fast and cost-efficient performance while still handling complex tasks effectively. OpenAI describes it as optimized for reasoning, with notable capability in coding, mathematics, and visual analysis.

This makes o4-mini a practical choice for developers who want stronger reasoning behavior than a basic lightweight model, while still prioritizing speed, efficiency, and broad applicability across text and image-based workflows.

Main features of o4-mini

  • Fast reasoning performance: o4-mini is built to respond with efficient reasoning, making it well-suited for applications that need stronger problem-solving without the overhead of a larger flagship model.
  • Cost-efficient operation: OpenAI positions o4-mini as a lower-cost reasoning option, which is useful for production workloads where token efficiency matters.
  • Strong coding and math capabilities: The model is described as particularly effective for programming, quantitative reasoning, and analytical tasks.
  • Image-aware reasoning: o4-mini supports image input and is part of OpenAI’s visual reasoning model line, enabling workflows that combine text understanding with image analysis.
  • API availability: Developers can access o4-mini through OpenAI API-compatible workflows, making it suitable for integration into applications, automations, and internal tools.

How to access and integrate o4-mini

Step 1: Sign Up for API Key

To access the o4-mini API through CometAPI, first register for a CometAPI account and generate your API key from the dashboard. After obtaining the key, store it securely and use it in your application’s authorization header for all API requests.

Step 2: Send Requests to o4-mini API

Once you have your API key, send requests to the CometAPI endpoint using o4-mini as the model name. Example:

curl https://api.cometapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COMETAPI_API_KEY" \
  -d '{
    "model": "o4-mini",
    "messages": [
      {
        "role": "user",
        "content": "Explain the advantages of efficient reasoning models."
      }
    ]
  }'

Step 3: Retrieve and Verify Results

The API response will return the model’s generated output in a structured JSON format. You should parse the response, extract the assistant message, and validate that the output matches your application’s expected format, quality, and safety requirements before using it in production.

Features for o4-mini

Explore the key features of o4-mini, designed to enhance performance and usability. Discover how these capabilities can benefit your projects and improve user experience.

Pricing for o4-mini

Explore competitive pricing for o4-mini, designed to fit various budgets and usage needs. Our flexible plans ensure you only pay for what you use, making it easy to scale as your requirements grow. Discover how o4-mini can enhance your projects while keeping costs manageable.
Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Input:$0.88/M
Output:$3.52/M
Input:$1.1/M
Output:$4.4/M
-20%

Sample code and API for o4-mini

Access comprehensive sample code and API resources for o4-mini to streamline your integration process. Our detailed documentation provides step-by-step guidance, helping you leverage the full potential of o4-mini in your projects.

Versions of o4-mini

The reason o4-mini has multiple snapshots may include potential factors such as variations in output after updates requiring older snapshots for consistency, providing developers a transition period for adaptation and migration, and different snapshots corresponding to global or regional endpoints to optimize user experience. For detailed differences between versions, please refer to the official documentation.
version
o4-mini
o4-mini-2025-04-16
o4-mini-deep-research
o4-mini-deep-research-2025-06-26

More Models

G

Nano Banana 2

Input:$0.4/M
Output:$2.4/M
Core Capabilities Overview: Resolution: Up to 4K (4096×4096), on par with Pro. Reference Image Consistency: Up to 14 reference images (10 objects + 4 characters), maintaining style/character consistency. Extreme Aspect Ratios: New 1:4, 4:1, 1:8, 8:1 ratios added, suitable for long images, posters, and banners. Text Rendering: Advanced text generation, suitable for infographics and marketing poster layouts. Search Enhancement: Integrated Google Search + Image Search. Grounding: Built-in thinking process; complex prompts are reasoned before generation.
A

Claude Opus 4.6

Input:$4/M
Output:$20/M
Claude Opus 4.6 is Anthropic’s “Opus”-class large language model, released February 2026. It is positioned as a workhorse for knowledge-work and research workflows — improving long-context reasoning, multi-step planning, tool use (including agentic software workflows), and computer-use tasks such as automated slide and spreadsheet generation.
A

Claude Sonnet 4.6

Input:$2.4/M
Output:$12/M
Claude Sonnet 4.6 is our most capable Sonnet model yet. It’s a full upgrade of the model’s skills across coding, computer use, long-context reasoning, agent planning, knowledge work, and design. Sonnet 4.6 also features a 1M token context window in beta.
O

GPT-5.4 nano

Input:$0.16/M
Output:$1/M
GPT-5.4 nano is designed for tasks where speed and cost matter most like classification, data extraction, ranking, and sub-agents.
O

GPT-5.4 mini

Input:$0.6/M
Output:$3.6/M
GPT-5.4 mini brings the strengths of GPT-5.4 to a faster, more efficient model designed for high-volume workloads.
A

Claude Mythos Preview

A

Claude Mythos Preview

Coming soon
Input:$60/M
Output:$240/M
Claude Mythos Preview is our most capable frontier model to date, and shows a striking leap in scores on many evaluation benchmarks compared to our previous frontier model, Claude Opus 4.6.