模型支援企業部落格
500+ AI 模型 API,全部整合在一個 API 中。就在 CometAPI
模型 API
開發者
快速入門說明文件API 儀表板
資源
AI模型部落格企業更新日誌關於
2025 CometAPI. 保留所有權利。隱私政策服務條款
Home/Models/OpenAI/o4-mini
O

o4-mini

輸入:$0.88/M
輸出:$3.52/M
O4-mini 是由 OpenAI 提供的人工智慧模型。
新
商業用途
概覽
功能
定價
API
版本

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.

o4-mini 的功能

探索 o4-mini 的核心功能,專為提升效能和可用性而設計。了解這些功能如何為您的專案帶來效益並改善使用者體驗。

o4-mini 的定價

探索 o4-mini 的競爭性定價,專為滿足各種預算和使用需求而設計。我們靈活的方案確保您只需為實際使用量付費,讓您能夠隨著需求增長輕鬆擴展。了解 o4-mini 如何在保持成本可控的同時提升您的專案效果。
彗星價格 (USD / M Tokens)官方價格 (USD / M Tokens)折扣
輸入:$0.88/M
輸出:$3.52/M
輸入:$1.1/M
輸出:$4.4/M
-20%

o4-mini 的範例程式碼和 API

存取完整的範例程式碼和 API 資源,以簡化您的 o4-mini 整合流程。我們詳盡的文件提供逐步指引,協助您在專案中充分發揮 o4-mini 的潛力。

o4-mini的版本

o4-mini擁有多個快照的原因可能包括:更新後輸出結果存在差異需保留舊版快照以確保一致性、為開發者提供適應與遷移的過渡期,以及不同快照對應全球或區域端點以優化使用者體驗等潛在因素。各版本間的具體差異請參閱官方文件說明。
version
o4-mini
o4-mini-2025-04-16
o4-mini-deep-research
o4-mini-deep-research-2025-06-26

更多模型

G

Nano Banana 2

輸入:$0.4/M
輸出:$2.4/M
核心能力概覽:解析度:最高可達 4K(4096×4096),與 Pro 相當。參考圖片一致性:最多支援 14 張參考圖片(10 個物件 + 4 個角色),維持風格與角色一致性。極端寬高比:新增 1:4、4:1、1:8、8:1 比例,適合長圖、海報與橫幅。文字渲染:進階文字生成,適用於資訊圖表與行銷海報版面。搜尋強化:整合 Google Search + Image Search。Grounding:內建思考過程;在生成前會先對複雜提示進行推理。
A

Claude Opus 4.6

輸入:$4/M
輸出:$20/M
Claude Opus 4.6 是 Anthropic 的「Opus」級大型語言模型,於 2026 年 2 月發布。它被定位為知識工作與研究工作流程的主力,著重提升長上下文推理、多步規劃、工具使用(包括代理型軟體工作流程),以及電腦操作任務,例如自動化製作投影片與試算表。
A

Claude Sonnet 4.6

輸入:$2.4/M
輸出:$12/M
Claude Sonnet 4.6 是我們迄今為止最強大的 Sonnet 模型。它對模型在程式設計、電腦操作、長上下文推理、代理規劃、知識工作與設計等方面的能力進行了全面升級。Sonnet 4.6 亦提供 1M 詞元的上下文視窗,目前處於 Beta 階段。
O

GPT-5.4 nano

輸入:$0.16/M
輸出:$1/M
GPT-5.4 nano 專為速度與成本最為關鍵的任務而設計,例如分類、資料擷取、排序與子智能體。
O

GPT-5.4 mini

輸入:$0.6/M
輸出:$3.6/M
GPT-5.4 mini 將 GPT-5.4 的優勢帶入一個更快速、更高效、專為大量工作負載設計的模型。
A

Claude Mythos Preview

A

Claude Mythos Preview

即將推出
輸入:$60/M
輸出:$240/M
Claude Mythos Preview 是我們迄今最強大的前沿模型,與我們先前的前沿模型 Claude Opus 4.6 相比,在多項評測基準上的分數呈現出 顯著躍升。