Phi-5
LLM Provider / Model ยท On-device AI, edge inference, mobile/embedded coding sidekicks
At a glance
| Input price | $0.10 |
| Output price | $0.30 |
| Cache price | $0.02 |
| Price tier | Budget |
| Context window | 128K |
| Max output | 8K |
| Context tier | 128K-500K |
| Speed tier | Fast |
| Latency | low |
| Knowledge cutoff | Aug 2025 |
| Modality | Text |
| Model ID | phi-5-mini |
| Provider | Microsoft |
| HumanEval | 83% |
| MMLU | 78% |
| SWE-Bench | 40% |
| Benchmark | Best-in-class small model on reasoning benchmarks |
| Released | Oct 2025 |
| Hosting | Open/Self-host |
| Capabilities | Tool use, Function calling, Compact, On-device friendly, Reasoning-tuned |
What Phi-5 does
Tool use, Function calling, Compact, On-device friendly, Reasoning-tuned
Best for
On-device AI, edge inference, mobile/embedded coding sidekicks
Works well with
Agent / Orchestration
Conflicts & caveats
- Trae's built-in model menu may not include Phi-5 โ Trae primarily ships with Claude/GPT/Gemini/DeepSeek.
- Google Antigravity is built around Gemini 3 Pro; Claude and recent GPT-5 models also work, but Phi-5 is not in the supported model list.
- Kiro's spec mode is tuned for Claude models โ Phi-5 may work but spec-driven flows are best with Claude.
- Cursor's built-in model menu may not include Phi-5 โ verify it's available in your Cursor model picker.
- OpenAI Codex (VS Code) is tied to OpenAI's GPT-5.1 Codex family โ Phi-5 is not selectable inside this integration.
- Gemini CLI is locked to Google Gemini models โ your LLM is Phi-5.
- Privacy conflict: Self-hosted Phi-5 sends code to cloud @codebase (Cursor). Use local context (Continue indexing, ChromaDB, LanceDB, pgvector, Vespa self-hosted) for true privacy.
- SWE-agent with Phi-5 (โค8K max output) may struggle with multi-file edits. Use models with 16K+ output capacity.
- Claude Code only works with Claude models โ your LLM is Phi-5.
- Devin uses Cognition's proprietary model internally โ your selected Phi-5 will be ignored.
- OpenAI Codex (Cloud) runs GPT-5.1 Codex internally โ your selected Phi-5 will be ignored.
- Jules runs Gemini models internally โ your selected Phi-5 will be ignored.
- The Claude Code SDK is tuned for Claude models โ Phi-5 may work via the model adapter but loses Claude-specific features (thinking, prompt caching, sub-agents).
- Lovable uses a fixed internal model โ your selected Phi-5 will be ignored.
- Replit Agent 3 uses its own model selection internally โ your selected Phi-5 will be ignored.
Build a full stack around Phi-5 โ Flowpicker shows compatibility warnings before you commit.
Open the stack planner โ