GitHub Models: Phi-4 — Free AI Model & API

github-models/phi-4
Free since May 16, 2026 Free until Context 131K Released Status Free
reasoning

Try Phi-4

Test this model directly in the playground.

Click to start testing in Playground...

Quick Setup

Copy the model ID and base URL below, then head to the config generator to get ready-to-use snippets for Claude Code, Cursor, Codex, and more.

Model ID
Phi-4
Base URL
https://models.inference.ai.azure.com
Configure for Claude Code, Cursor & more →
See our FAQ for common questions about free LLM APIs