Aihub Phi 4

aihub-Phi-4 · Microsoft

Phi-4 is a state-of-the-art open model based on a combination of synthetic datasets, curated public domain website data, and acquired academic books and QA datasets. The approach aims to ensure that small, efficient models are trained using data focused on high quality and advanced reasoning.

API Pricing

Input$0.12 / 1M tokens
Output$0.48 / 1M tokens

Specifications

Context16.4K tokens
Modalitiestext

Frequently asked questions

What is Aihub Phi 4?

Phi-4 is a state-of-the-art open model based on a combination of synthetic datasets, curated public domain website data, and acquired academic books and QA datasets. The approach aims to ensure that small, efficient models are trained using data focused on high quality and advanced reasoning.

What is the context length of Aihub Phi 4?

Aihub Phi 4 has a 16,400 token context window.

How much does Aihub Phi 4 cost?

On AIHubMix, Aihub Phi 4 costs $0.12 per million input tokens and $0.48 per million output tokens.

What modalities does Aihub Phi 4 support?

Aihub Phi 4 accepts text input.

How do I call Aihub Phi 4 via API?

Aihub Phi 4 is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to aihub-Phi-4 — no other code changes needed.

Who created Aihub Phi 4?

Aihub Phi 4 is developed by Microsoft. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

More models from Microsoft

See all Microsoft models →

Mai Thinking 1

by Microsoft

MAI-Thinking-1 is Microsoft’s first inference model in the MAI series, built for…

$2/1M in · $8/1M out
256,000 tokens context

Mai Image 2.5 Pro

by Microsoft

MAI-Image-2.5 is Microsoft's flagship AI image generation and editing model. With…

$5/1M in · $5/1M out

Mai Image 2.5

by Microsoft

MAI-Image-2.5 is Microsoft's flagship AI image generation and editing model. With…

$5/1M in · $5/1M out

Mai Image 2.5 Flash

by Microsoft

MAI-Image-2.5 is Microsoft's flagship AI image generation and editing model. With…

$1.75/1M in · $1.75/1M out

Aihubmix Phi 4 Mini (reasoning)

by Microsoft

Phi-4-mini-reasoning is a lightweight open model designed for advanced mathematical…

$0.12/1M in · $0.12/1M out
128,000 tokens context

Aihub Phi 4 Multimodal Instruct

by Microsoft

Microsoft's latest model

$0.12/1M in · $0.48/1M out
128,000 tokens context

Use Aihub Phi 4 via the AIHubMix unified API — one interface for every major LLM.