Public model route · Microsoft
Phi 4 security profile
Microsoft model route with a 16,384-token context window. Open weights. Maps to 5 MITRE ATLAS techniques.
Model record
- Provider
- Microsoft
- Record ID
microsoft/phi-4- Version label
- microsoft/phi-4
- Input modalities
- text
- Output modalities
- text
- Context window
- 16,384 tokens
- First listed
- Tool calling
- Unavailable
- Reasoning
- Unavailable
- Input per million tokens
- $0.07
- Output per million tokens
- $0.14
- Inventory snapshot
Company marketplace metadata, not an intelligence or security evaluation. First-listed date is not asserted to be the model's release date. Advertised parameters concern this route; price is per million tokens and excludes non-token fees.
Frontier security, capability, speed & price scorecard
- Security resilience index
- 74.5 / 100
- Security tier
- Tier 3 — Guardrail-Dependent
- Prompt-boundary integrity
- 72.7 / 100
- Agentic tool safety
- 70.4 / 100
- Benign prompt pass rate
- 96.6% (3.4% over-refusal)
- Net usable safety
- 71.1 / 100
- Coding / Reasoning index
- 73.4 / 72.9
- Output speed / TTFT
- 146 tok/s · 0.31s TTFT
- Blended price (3:1)
- $0.09 / 1M tokens
- Guardrail architecture
- Open Weights (Pair with NeMo Guardrails)
- License / parameters
- MIT · 14.0B dense
Head-to-head comparisons: Claude Fable 5.2 vs Phi-4 (14B) · Claude Opus 5.5 vs Phi-4 (14B) · Claude Sonnet 5.5 vs Phi-4 (14B) · Claude Opus 5 vs Phi-4 (14B) · Claude Sonnet 5 vs Phi-4 (14B) · GPT-6.2 Sol vs Phi-4 (14B)
Open Phi 4 interactive scorecard · View on Security Scatter Planes
Weight provenance
Official release card verifies downloadable open weights for Phi-4 (14B) under MIT (14.0B dense); open weights permit local fine-tuning and require runtime guardrails.
Reference URI: https://huggingface.co/microsoft/phi-4 · Checked
ATLAS attack surface
Microsoft: Phi 4 maps to 5 MITRE ATLAS techniques and 9 mitigations across 2 surface vectors. Profiles are derived from model metadata (modalities, tool calling, reasoning, context window, and weight access). They show where techniques apply, not measured weaknesses.
- Deployment posture
- Open-weights (self-hostable)
- ATLAS techniques in scope
- 5
- Mitigations to review
- 9
- Framework
- MITRE ATLAS 2026.10
- Direct & indirect prompt-injection / jailbreak surface
Generative text inference route or configuration
- ATLAS techniques
- Weight extraction, white-box optimization & guardrail removal surface
Verified open-weight availability
Test with Refract
Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. The command below runs the packs that match this route's attack-surface vectors through OpenRouter's OpenAI-compatible API.
refract scan \
--target "openai_compat:microsoft/phi-4" \
--base-url https://openrouter.ai/api/v1 \
--api-key "$OPENROUTER_API_KEY" \
--battery baseline,system_prompt_extraction
refract reportbaselinesix baseline packs: benign controls, prefix injection, refusal suppression, role-play frames, encoding ciphers, and many-shot promptssystem_prompt_extractiondirect, translated, serialized, and diagnostic system-prompt extraction
Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.
Primary source & citation record
- OpenRouter public model inventory · OpenRouter
Common questions
- Which MITRE ATLAS techniques apply to Phi 4?
- Phi 4 maps to 5 MITRE ATLAS techniques through 2 attack-surface vectors derived from its listed capabilities: Craft Adversarial Data: White-Box Optimization (AML.T0043.000), Full AI Model Access (AML.T0044), LLM Prompt Injection (AML.T0051), LLM Jailbreak (AML.T0054), and Outputs from AI Models (AML.T0135). The mapping shows where techniques apply, not measured weaknesses.
- Does Phi 4 support tool calling?
- No. The Nov 24, 2026 OpenRouter inventory snapshot lists tool calling as unavailable for this route.
- Does Phi 4 have open weights?
- Yes. Official release card verifies downloadable open weights for Phi-4 (14B) under MIT (14.0B dense); open weights permit local fine-tuning and require runtime guardrails.
- What is the context window of Phi 4?
- 16,384 tokens, according to the Nov 24, 2026 OpenRouter inventory snapshot.
- How can I test Phi 4 for prompt injection and jailbreaks?
- Run Refract against the OpenRouter route:
refract scan --target "openai_compat:microsoft/phi-4" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery baseline,system_prompt_extraction, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.