Using Phi-4 14B on Featherless
Implementation guide · Phi-4 · Microsoft Research
ServerlessOpen Source
Featherless exposes Phi-4 14B through model ID microsoft/phi-4. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-09-24. Next refresh: weekly.
Quick Start
- 1
- 2Use the Featherless SDK or REST API to call
microsoft/phi-4— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
FEATHERLESS_API_KEYModel ID
microsoft/phi-4Use exact Featherless catalog id in modelProvider.providerModelId (HF-style org/name). Not interchangeable with LLM Reference slugs.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.featherless.ai/v1",
api_key=os.environ["FEATHERLESS_API_KEY"],
)
response = client.chat.completions.create(
model="microsoft/phi-4",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Pricing on Featherless
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.07 |
| Output tokens | $0.14 |
Capabilities
Structured Outputs
About Phi-4 14B
Phi-4 14B is Microsoft Research's Phi-4 model. Weights are openly available for self-hosting and scores 56.1 on GPQA.
Model Specs
Released2024-12-13
Parameters14B
Context16k
ArchitectureDecoder Only
Knowledge cutoff2024-06