whichllm — Browse and compare AI model specs and pricing

GitHub Models

Phi-4 model ID, context window & pricing

phi

Quick facts

Model ID microsoft/phi-4
Source GitHub Models
Context Window 16000
Pricing -
Capabilities tool calling, reasoning, temperature control, open weights

Model overview

Phi-4 is an AI model from GitHub Models with 16000 token context window and text input support.

Public token pricing is not listed for this model in the current catalog source.

  • Workloads that use text inputs with text outputs.
  • Agent and tool workflows that need function calling.
  • Reasoning-heavy prompts where stepwise problem solving matters.
Model ID microsoft/phi-4
Provider GitHub Models
Family phi
Status -
Knowledge Cutoff 2023-10
Release Date 2024-12-11
Input Modalities text
Output Modalities text
Context Window 16000
Input Limit -
Output Limit 4096
Tool Calling Yes
Reasoning Yes
Structured Output -
Temperature Control Yes
Open Weights Yes
Input Cost / 1M tokens -
Output Cost / 1M tokens -
Reasoning Cost / 1M tokens -
Cache Read Cost / 1M tokens -
Cache Write Cost / 1M tokens -