microsoft logo
microsoft

Microsoft: Phi 4

来源介绍(英文)

Microsoft Research Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

模型概览

模型规格

上下文
16,384 tokens
最大输出
14,745 tokens
架构
text->text
分词器
Other
知识截止时间
2024-06-30
内容审核
否
OPENROUTER

完整价格

同步自 OpenRouter。Token 价格均按每百万 Token 展示。

输入
$0.07
每百万 Token
输出
$0.14
每百万 Token
API

快速调用

在本地设置 OPENROUTER_API_KEY。Python 需安装 requests;JavaScript 在 Node.js 中运行。密钥应保存在服务端。

API 文档

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"microsoft/phi-4","messages":[{"role":"user","content":"Hello!"}]}'
能力与模态

输入 → 输出

输入
text
输出
text
API

支持的 API 参数

frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_p
可用提供方

1 提供方

核验日期: 2026年9月7日

在 OpenRouter 查看实时 Provider

Provider 可用性、延迟、吞吐量和路由会持续变化,请前往来源页面查看实时运行数据。

OpenRouter

DeepInfra

bf16
上下文
16K
最大输出
15K
输入
$0.07
输出
$0.14
缓存读取
暂未提供
缓存写入
暂未提供
microsoft

4 个模型

全部模型
microsoft logomicrosoft

Microsoft: Microsoft-Decision-1

Microsoft-Decision-1 is a small model built for fast decision-making. Instead of generating text, it reads the provided content and returns a calibrated probability for each fixed answer option, so the...

上下文
33K
输入
text
输出
decisions
输入: $0.042 每百万 Token输出: 免费 每百万 Token
查看模型详情 →
microsoft logomicrosoft

Microsoft AI: MAI-Voice-2.1-Flash

MAI-Voice-2.1-Flash is a low-latency text-to-speech model from Microsoft AI, optimized for real-time responsiveness. It produces natural, expressive speech across 23 languages, with human-like intonation, rhythm, and emotional nuance. It is...

上下文
暂未提供
输入
text
输出
speech
字符: $15 每百万字符
查看模型详情 →
microsoft logomicrosoft

Microsoft AI: MAI-Voice-2.1

MAI-Voice-2.1 is Microsoft AI's highest-fidelity, most expressive text-to-speech model. It produces natural, studio-grade speech across 23 languages, with detailed prosody, nuanced expressiveness, and speaker consistency over long-form content. It is...

上下文
暂未提供
输入
text
输出
speech
字符: $22 每百万字符
查看模型详情 →
microsoft logomicrosoft

Microsoft AI: MAI-Image-2.6

MAI-Image-2.6 is an image generation and editing model from Microsoft AI, the precision tier of the MAI-Image-2.6 family alongside the faster MAI-Image-2.6 Flash. It is suited for design-ready visuals and...

上下文
4K
输入
text · image
输出
image
输入: $5 每百万 Token图片输出: $38 每百万 Token
查看模型详情 →