Skip to main content
M

Microsoft: Phi 4 Coding Benchmark

[Microsoft Research](/microsoft) 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...

Context16,384tokens
Max Output14,745tokens
Inputmodality
Price$0.07/1M input

Try Microsoft: Phi 4 in Kilo Code

Experience this model with the most popular open source coding agent. Free to start, pay only for AI usage. Use in popular IDEs like VS Code, JetBrains, command line, or cloud agents.

5M+

Downloads

500+

models supported

Free

to Start

Access 500+ models including Microsoft: Phi 4 and many more in Kilo Code

Coding Performance

Coding benchmarks and performance metrics for development tasks

Real-World Usage

Real-world usage statistics from the Kilo Code community

No usage data available for this model yet.

No ranking data available for this model yet.

Real-world metrics from the Kilo Code Leaderboard

Pricing

Cost per 1 million tokens

Input Tokens
$0.07
per 1M tokens
Output Tokens
$0.14
per 1M tokens

Example Cost

Analyzing a 10,000 line codebase (≈40k input tokens, 10k output tokens) costs approximately $0.0042

Coding Capabilities

Features and parameters relevant to coding tasks

Coding Features

Function Calling
Can call external functions/APIs
Tool Choice
Control over function selection
Structured Outputs
JSON schema validation
Reasoning Tokens
Extended thinking for complex problems

Pricing details from OpenRouter

Technical Details

Architecture and implementation specifications

Specifications
Model ID
microsoft/phi-4
Created
January 10, 2025
Tokenizer
Other
Input Modalities
Text
Context Window
16,384 tokens
Max Completion Tokens
14,745 tokens
Input Price
$0.07 per 1M tokens
Output Price
$0.14 per 1M tokens
Content Moderation
Disabled

Ready to try Microsoft: Phi 4?

Install Kilo Code and start using Microsoft: Phi 4 for your coding projects today. Choose from 500+ AI models with complete freedom.

  1. Install Kilo Code

    Get the extension from VS Code Marketplace, JetBrains Plugin Repository, or the CLI.

  2. Open the model selector

    Click the model name in the Kilo Code chat panel to open the selector.

  3. Choose your model

    Search or browse to find and select your preferred model.

  4. Start coding

    Use Code, Ask, Debug, or Plan mode — the model is ready immediately.