Home/Models/phi-4

phi-4

Microsoft model on KRX unified, OpenAI-compatible API. One key, lower prices, free welcome credit.

Input / 1M
$0.070
Output / 1M
$0.140
Context
16K
Provider
Microsoft

Call phi-4 in seconds

Drop your KRX key into any OpenAI client and point it at https://api.krxlab.com/v1. Billed per token, to the cent.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.krxlab.com/v1",
    api_key="sk-krx-...",
)

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

Start calling phi-4

Sign up, get your welcome credit, and call phi-4 — plus every other model — from one key in under a minute.

© 2026 KRX Labs