OpenAI

o3-mini

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

OpenAI o3-mini是OpenAI推出的小型推理模型,在保持与o1-mini 相同的成本与延迟水平下,提供了更高的智能表现。该模型专为复杂推理任务优化,特别适用于科学、数学与编程等领域。同时,o3-mini支持结构化输出、函数调用、Batch API等关键开发功能,为构建高效智能应用提供了强大支持。

Input / output modalities
文本 · 图像 · 音频 to 文本 · 图像 · 音频
Reference input / output price
Input¥7.7Output¥30.8per 1M tokens
Context window
200K
Added to catalog
Apr 15, 2025

Providers and pricing

ProviderInput /MOutput /MCached /MContextMax outputDetails
OpenRouter¥7.7¥30.8¥3.85200K100K
Azure¥7.7¥30.8¥3.85200K100K

OpenRouter

Latency
2.33s
Throughput
236 tokens/s
Context
200K

Pricing

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

Specifications

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

Azure

Latency
7.7s
Throughput
892 tokens/s
Context
200K

Pricing

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

Specifications

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

o3-mini 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/o3-mini", 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