microsoft logo
microsoft

Microsoft: Phi 4

Descripción de la fuente (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...

Resumen

Especificaciones del modelo

Contexto
16.384 tokens
Salida máxima
14.745 tokens
Arquitectura
text->text
Tokenizador
Other
Corte de conocimiento
2024-06-30
Moderado
No
OPENROUTER

Precios completos

Tarifas sincronizadas desde OpenRouter, por millón de tokens.

Entrada
$0.07
por millón de tokens
Salida
$0.14
por millón de tokens
API

Inicio rápido

Configura OPENROUTER_API_KEY localmente. Python requiere requests; JavaScript se ejecuta en Node.js. Mantén la clave en el servidor.

Documentación de la 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!"}]}'
Capacidades y modalidades

EntradaSalida

Entrada
text
Salida
text
API

Parámetros API compatibles

frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_p
Proveedores disponibles

1 Proveedor

Verificado: 7 de septiembre de 2026

Proveedores en vivo en OpenRouter

Disponibilidad, latencia, rendimiento y enrutamiento cambian continuamente. Consulta la fuente para datos actuales.

OpenRouter

DeepInfra

bf16
Contexto
16K
Salida máxima
15K
Entrada
$0.07
Salida
$0.14
Lectura de caché
No indicado
Escritura de caché
No indicado
microsoft

4 modelos

Todos los 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
Salida
image
Entrada: $5 por millón de tokensSalida de imagen: $38 por millón de tokens
Ver detalles del 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
Salida
image
Entrada: $1.75 por millón de tokensSalida de imagen: $19 por millón de tokens
Ver detalles del 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
No indicado
Entrada
audio
Salida
transcription
Duración del audio: $0.1 por hora
Ver detalles del 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
Salida
image
Entrada: $5 por millón de tokensSalida de imagen: $108 por millón de tokens
Ver detalles del modelo