microsoft logo
microsoft

Microsoft: Phi 4

Description de la source (anglais)

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

Présentation

Caractéristiques du modèle

Contexte
16 384 tokens
Sortie maximale
14 745 tokens
Architecture
text->text
Tokenizer
Other
Limite des connaissances
2024-06-30
Modéré
Non
OPENROUTER

Tarification complète

Tarifs synchronisés depuis OpenRouter, par million de tokens.

Entrée
$0.07
par million de tokens
Sortie
$0.14
par million de tokens
API

Démarrage rapide

Définissez OPENROUTER_API_KEY localement. Python nécessite requests ; JavaScript s’exécute dans Node.js. Gardez la clé côté serveur.

Documentation de l’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!"}]}'
Capacités et modalités

EntréeSortie

Entrée
text
Sortie
text
API

Paramètres API pris en charge

frequency_penaltylogit_biasmax_tokensmin_ppresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_ktop_p
Fournisseurs disponibles

1 Fournisseur

Vérifié: 7 septembre 2026

Fournisseurs en direct sur OpenRouter

Disponibilité, latence, débit et routage évoluent en continu. Consultez la source pour les données en temps réel.

OpenRouter

DeepInfra

bf16
Contexte
16K
Sortie maximale
15K
Entrée
$0.07
Sortie
$0.14
Lecture du cache
Non indiqué
Écriture du cache
Non indiqué
microsoft

4 modèles

Tous les modèles
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...

Contexte
4K
Entrée
text · image
Sortie
image
Entrée: $5 par million de tokensImage en sortie: $38 par million de tokens
Voir la fiche du modèle
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....

Contexte
4K
Entrée
text · image
Sortie
image
Entrée: $1.75 par million de tokensImage en sortie: $19 par million de tokens
Voir la fiche du modèle
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,...

Contexte
Non indiqué
Entrée
audio
Sortie
transcription
Durée audio: $0.1 par heure
Voir la fiche du modèle
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.

Contexte
4K
Entrée
text · image
Sortie
image
Entrée: $5 par million de tokensImage en sortie: $108 par million de tokens
Voir la fiche du modèle