GitHub Models logo

Phi-4 Free API on GitHub Models

Free API
★★★★★★★★★★ 3.5 Benchmark-backed score

Reasoning model for deliberate analysis, multi-step problem solving, and tool use

Free APIOpenAI compatibleReasoningJSON modeTextReasoning
API Details

Copy-ready connection details

Use these values in your client or SDK.
Base URL
https://models.github.ai/inference
Model ID
Phi-4
API format OpenAI Chat Completions
Technical Details

Phi-4 specifications

Provider catalog
Context window 131K
Max output 4K
Status Online
Family phi-4
Knowledge cutoff 2023-10
Released Dec 12, 2024
Last updated Sep 28, 2026
Free listing since Dec 12, 2024
Input text, reasoning
Output text
Capabilities reasoning, structured output
Open weights Yes
AI Recommendation

Should you use Phi-4?

Phi-4 is listed for reasoning workloads and supports a 131K context window.

Use it when GitHub Models's free tier is enough for evaluation, demos, or light production traffic.

Best for
  • Reasoning
Strengths & Weaknesses

Strengths

  • Strong reasoning profile
  • Long context window
  • Reasoning mode listed
  • Structured JSON output

Watch outs

  • Free-tier rate limits apply
  • Vision support is not listed
  • Tool calling is not confirmed
Benchmark Overview

Benchmark signals for Phi-4

Measured data
Intelligence General reasoning and instruction following
5.9/100
Coding Programming and code generation
11.2/100
Speed Observed generation speed
40 tok/s
Context Maximum listed context window
131K
Pricing

Phi-4 pricing per 1M tokens

Free tier listed
Input $0.13 per 1M tokens
Output $0.5 per 1M tokens
Access Available GitHub Models
Rate limit See provider page provider policy
Availability

Phi-4 availability by provider

Current provider only

We only found this phi-4 listing on GitHub Models in the current catalog. Use the related models section for nearby alternatives.

Provider Model listing Access Context API Limits
GitHub Models Phi-4 Free tier 131K OpenAI-style See provider page
View GitHub Models setup guide →
Typical Use Cases

Phi-4 use cases

Reasoning

Phi-4 is tagged for reasoning in this catalog and works with OpenAI-compatible client libraries.

FAQ

Phi-4 free API FAQ

Is Phi-4 free to use?

Phi-4 is listed with free API access on GitHub Models, subject to the provider's quota and account policy.

What is the Phi-4 model ID?

The model ID shown in this catalog is Phi-4.

What context window does Phi-4 support?

The listed context window is 131K tokens with up to 4K output tokens.

More about Phi-4

Reasoning model for deliberate analysis, multi-step problem solving, and tool use

For API keys, setup steps, and provider-level limits, see the GitHub Models provider page.