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 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
查看模型详情
microsoft logomicrosoft

Microsoft AI: MAI-Image-2.6 Flash

MAI-Image-2.6 Flash is the lower-latency, lower-cost member of the MAI-Image-2.6 family from Microsoft AI, built for latency-sensitive, high-throughput production image generation and editing at comparable quality to the precision tier....

上下文
4K
输入
text · image
输出
image
输入: $1.75 每百万 Token图片输出: $19 每百万 Token
查看模型详情
microsoft logomicrosoft

Microsoft AI: MAI-Transcribe 2

MAI-Transcribe 2 is a multilingual speech-to-text model from Microsoft AI, ranked #1 on the FLEURS multilingual benchmark. It supports 60 languages with automatic language identification, code switching for mixed-language speech,...

上下文
暂未提供
输入
audio
输出
transcription
音频时长: $0.1 每小时
查看模型详情
microsoft logomicrosoft

Microsoft AI: MAI-Image-2.5 Pro

Microsoft AI's MAI-Image-2.5 is a high-quality image generation model available via Azure AI Foundry. It produces photorealistic and artistic images from text prompts with support for various aspect ratios.

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