microsoft logo
microsoft

Microsoft: Phi 4

Descrição da fonte (inglês)

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...

Visão geral

Especificações do modelo

Contexto
16.384 tokens
Saída máxima
14.745 tokens
Arquitetura
text->text
Tokenizador
Other
Limite de conhecimento
2024-06-30
Moderado
Não
OPENROUTER

Preços completos

Tarifas sincronizadas do OpenRouter, por milhão de tokens.

Entrada
$0.07
por milhão de tokens
Saída
$0.14
por milhão de tokens
API

Início rápido

Defina OPENROUTER_API_KEY localmente. Python requer requests; JavaScript roda em Node.js. Mantenha a chave no servidor.

Documentação da 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!"}]}'
Recursos e modalidades

EntradaSaída

Entrada
text
Saída
text
API

Parâmetros de API compatíveis

frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_p
Provedores disponíveis

1 Provedor

Verificado: 7 de setembro de 2026

Provedores ao vivo no OpenRouter

Disponibilidade, latência, throughput e roteamento mudam continuamente. Consulte a fonte para dados atuais.

OpenRouter

DeepInfra

bf16
Contexto
16K
Saída máxima
15K
Entrada
$0.07
Saída
$0.14
Leitura de cache
Não informado
Gravação de cache
Não informado
microsoft

4 modelos

Todos os modelos
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...

Contexto
4K
Entrada
text · image
Saída
image
Entrada: $5 por milhão de tokensSaída de imagem: $38 por milhão de tokens
Ver detalhes do modelo
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....

Contexto
4K
Entrada
text · image
Saída
image
Entrada: $1.75 por milhão de tokensSaída de imagem: $19 por milhão de tokens
Ver detalhes do modelo
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,...

Contexto
Não informado
Entrada
audio
Saída
transcription
Duração do áudio: $0.1 por hora
Ver detalhes do modelo
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.

Contexto
4K
Entrada
text · image
Saída
image
Entrada: $5 por milhão de tokensSaída de imagem: $108 por milhão de tokens
Ver detalhes do modelo