Phi 4

Hugging FaceQuality: 60/100Unverified
Try in Playground
✗ Vision✗ Reasoning✗ Tool Use✓ Streaming✓ System Messages

Overview

Phi 4 is a capable model from Hugging Face with a 16K context window. Priced at $0.000070/1K input, $0.000140/1K output.

ANT Routing Intelligence

Limited routing data available for Phi 4. Intelligence insights will appear as more requests are routed through ANT.

Quick Start

from openai import OpenAI

client = OpenAI(
    base_url="https://api.antbase.ai/v1",
    api_key="YOUR_ANT_API_KEY",
)

response = client.chat.completions.create(
    model="huggingface/microsoft/phi-4",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Technical Specs

Context Window16K
Max Output8K
Input Price$0.000070/1K
Output Price$0.000140/1K
Quality Score60/100
ProviderHugging Face
Model IDhuggingface/microsoft/phi-4