Microsoft: Phi 4 Mini (reasoning)API pricing
Phi 4 Mini Instruct is Microsoft's 3.8B-parameter open model from the Phi-4 family, built on synthetic and filtered web data with a focus on reasoning. It is aimed at memory- and compute-constrained settings and is strong at math and logic.
- 每100万枚代币的价格
- $0.12 / $0.12input / output
- 上下文
- 128K tokens4K max output
- 服务提供商
- 1
服务提供商
1 provider ·
128K 上下文 · 4K 最大输出
支持的参数11
- 抽样
温度top_ptop_k种子logit_bias- 处罚
存在惩罚- 输出
停止response_format结构化输出- 工具
工具工具选择
价格走势
API
curl https://api.opencheap.si/v1/chat/completions \
-H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
-d '{ "model": "opencheap/phi-4-mini-reasoning", "messages": [{ "role": "user", "content": "Hi" }] }'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/phi-4-mini-reasoning",
messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/phi-4-mini-reasoning",
messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);致电 Phi 4 Mini (reasoning) 使用 OpenAI SDK:将其指向 https://api.opencheap.si/v1 并传递模型 ID opencheap/phi-4-mini-reasoning;其余代码保持不变。
About Phi 4 Mini (reasoning)
- 请求示例
- $0.001310,000 in + 1,000 out
- 端点
https://api.opencheap.si/v1- 模型 ID
每个请求都会发送给模型中成本最低且状态正常的提供者,而每个响应都会报告其成本为 使用成本. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, https://api.opencheap.si/v1.
用文字表述价格
Phi 4 Mini (reasoning) costs from $0.12 per 1M input tokens and $0.12 per 1M output tokens on OpenCheap. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0013, and 1,000 such requests about $1.32.
One provider serves Phi 4 Mini (reasoning) on OpenCheap today. Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.
Phi 4 Mini (reasoning) is one of 9 Microsoft models on OpenCheap.
Prices as of 2026-12-04 11:48 UTC.
关于定价的问题
How much does the Phi 4 Mini (reasoning) API cost per 1M tokens?
Phi 4 Mini (reasoning) costs from $0.12 per 1M input tokens and $0.12 per 1M output tokens on OpenCheap. Prices as of 2026-12-04 11:48 UTC.
What does one Phi 4 Mini (reasoning) request cost?
A request with 10,000 input tokens and 1,000 output tokens costs about $0.0013, and 1,000 such requests about $1.32. Every answer reports its own cost in usage.cost.
Which providers serve Phi 4 Mini (reasoning)?
One provider serves Phi 4 Mini (reasoning) on OpenCheap today. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.
What is the context window of Phi 4 Mini (reasoning)?
Its context window is 128K tokens (128,000), room for roughly 96,000 words of English in one request.
How do I call the Phi 4 Mini (reasoning) API?
Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/phi-4-mini-reasoning. One OpenCheap key works for every model; the rest of your code stays the same.
More from Microsoft
- Mai Thinking 1mai-thinking-1$2.00 / $8.00 per 1M · 256K context
- Phi 3.5 Vision Instructphi-3.5-vision$0.40 / $1.60 per 1M
- Phi 4phi-4$0.07 / $0.14 per 1M · 16K context
- Phi 4 Mini Instructphi-4-mini$0.12 / $0.48 per 1M · 128K context
- Phi 4 Multimodal Instructphi-4-multimodal$0.07 / $0.11 per 1M · 128K context
- WizardLM-2 8x22Bwizardlm-2-8x22b$0.49 / $0.49 per 1M · 65K context
- Microsoft-Decision-1microsoft-decision-1$0.048 per 1M input · 32K context
- Microsoft-Decision-1.1microsoft-decision-1.1$0.048 per 1M input · 32K context
类似型号
- deepseek-r1-distill-qwen-32bDeepSeek · 131K context$0.28 / $0.28 per 1M
- thinkingmachines/Inkling-2-MiniThinking Machines · 1M context$0.021 / $0.082 per 1M44 % cheaper
- qwq-32bQwen · 131K context$0.16 / $0.42 per 1M
- deepseek-v4-flashDeepSeek · 100万上下文$0.073 / $0.15 per 1M
- ibm-granite/granite-4.2-8bIBM · 131K context$0.06 / $0.15 per 1M
- Mistral Small 3.2 24B (2506)Mistral · 256K 上下文每1M 0.07 美元 / 0.19 美元
Compare Phi 4 Mini (reasoning) with any model →Cheapest LLM API