← All models

phi-4-miniself-hostable

Run phi-4-mini through Flow AI's OpenAI-compatible API. We route to the cheapest provider hosting it and fail over automatically — you pay the live clearing price plus 2.5%.

Input $/M
$0.07
Output $/M
$0.14

Use it

python
from openai import OpenAI
client = OpenAI(base_url="https://api.flowaiapi.com/v1", api_key="fa-...")
r = client.chat.completions.create(
    model="phi-4-mini",          # or "auto" to let Flow AI pick the cheapest capable model
    messages=[{"role": "user", "content": "..."}],
)

How Flow AI makes phi-4-mini cheaper

Flow AI runs an open market for inference: it clears each request at the lowest price across every provider hosting phi-4-mini — direct APIs, inference providers, flat-rate subscriptions, and self-hosted nodes — and bills you the true (prompt-cache-aware) cost plus a flat 2.5%. The published rate is always the ceiling. See the docs or all models.

Similar models on Flow AI

or:microsoft/phi-4 · or:google/gemma-4-26b-a4b-it · or:qwen/qwen3-coder-30b-a3b-instruct · or:tencent/hy-mt2-30b-a3b · or:tencent/hy-mt2-7b

phi-4-mini API — the cheapest way to run phi-4-mini | Flow AI