OpenAI

o4-mini-high

openai/o4-mini-high
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

OpenAI o4-mini-high 与 o4-mini 是同一个模型,只是将 推理效果设为高。o4 是 o 系列中的一个紧凑型推理模型,优化目标是实现快速、成本效益高的性能,同时保持强大的多模态能力和自主代理(agentic)能力。它支持工具调用,在多个基准测试中展现出强劲的推理和编程表现,例如在 AIME 中使用 Python 达到 99.5% 的成绩,在 SWE-bench 中也优于其前代 o3-mini,甚至在某些领域接近 o3 模型的表现。尽管体积更小,o4-mini 在 STEM 任务(科学、技术、工程、数学)、视觉问题解决(如 MathVista、MMMU)以及代码编辑方面依然表现出色。它特别适用于对延迟和成本要求较高的大吞吐场景。得益于其高效的架构设计和精细化的强化学习训练,o4-mini 能够链式调用工具、生成结构化输出,并在不到一分钟内完成多步复杂任务。

Input / output modalities
文本 to 文本
Reference input / output price
Input¥7.7Output¥30.8per 1M tokens
Context window
200K
Added to catalog
Apr 17, 2025

Providers and pricing

ProviderInput /MOutput /MCached /MContextMax outputDetails
OpenRouter¥7.7¥30.8¥1.93200K100K

OpenRouter

Latency
7.62s
Throughput
44 tokens/s
Context
200K

Pricing

Input
¥7.7/M tokens
Output
¥30.8/M tokens
Cached
¥1.93/M tokens

Specifications

Context
200K
Max output
100K
Supported APIs
/v1/chat/completions/v1/messages/v1/responses/v1beta/models/*/v1/models/*

o4-mini-high code examples and API guide

Modelmesh normalizes requests and responses across service providers behind one consistent API.

Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.

Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.

Supported endpointsSelect an endpoint to switch the example below.
/v1/chat/completions
from openai import OpenAI API_KEY = "$SSY_API_KEY" client = OpenAI( base_url="https://router.shengsuanyun.com/api/v1", api_key=API_KEY, ) try: completion = client.chat.completions.create( model="openai/o4-mini-high", messages=[{"role": "user", "content": "Which number is larger, 9.11 or 9.8?"}], temperature=0.6, top_p=0.7, stream=True, ) response_text = "" for chunk in completion: if chunk.choices and chunk.choices[0].delta.content is not None: content = chunk.choices[0].delta.content print(content, end="", flush=True) response_text += content except Exception as error: print(f"Request failed: {error}")
                
              

Related Models