Tīrtha is still being built, so some features and models may not work as expected yet. Billing always follows the prices shown. Something broken? Email [email protected].

Tīrtha

Models / Microsoft

phi-4

by Microsoft

Used for reasoning and fast.

Best forReasoning

Open weights · MITReleased Dec 11, 2024

phi-4 is made by Microsoft. It takes text in and answers in text, with a context window of 16,384 tokens.

Context16,384 tokens
Max output16,384 tokens
Takes on TīrthaText
Use phi-4 now
catalog/phi-4

Add credits · Read the docs

Tīrtha Bench review

What people use it for, in its maker's words:

ReasoningFast
Context16,384 tokens
Takes in on Tīrthatext

Try it

Model id catalog/phi-4 · base URL https://api.tirtha.ai/v1. Any OpenAI-compatible client works: change the base URL and keep your code.

curl https://api.tirtha.ai/v1/chat/completions \ -H "Authorization: Bearer $TIRTHA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "catalog/phi-4", "messages": [{"role": "user", "content": "Hello"}]}'
# pip install openai import os from openai import OpenAI client = OpenAI(base_url="https://api.tirtha.ai/v1", api_key=os.environ["TIRTHA_API_KEY"]) r = client.chat.completions.create(model="catalog/phi-4", messages=[{"role": "user", "content": "Hello"}]) print(r.choices[0].message.content)
// Node 18+. Set TIRTHA_API_KEY in your environment (never put your key in a web page). async function main() { const r = await fetch("https://api.tirtha.ai/v1/chat/completions", { method: "POST", headers: {"Authorization": `Bearer ${process.env.TIRTHA_API_KEY}`, "Content-Type": "application/json"}, body: JSON.stringify({model: "catalog/phi-4", messages: [{role: "user", content: "Hello"}]}), }); console.log((await r.json()).choices[0].message.content); } main();

Limits and support

MakerMicrosoft
Accepts on Tīrthatext
Context16,384 tokens
Max output16,384 tokens
LicenceMIT
ReleasedDec 11, 2024

What it is for

In the maker's own words, from its published model card. Claims and benchmarks on that card are the maker's own, not measured by Tīrtha.

What a job costs

1,000 calls of 2,000 tokens in and 500 out cost about -

Worked out from the live price above, without cached input. Your own calls will differ in size.

Similar models on Tīrtha

Licence

Weights: MIT. Read the licence.

From the maker: Model card: microsoft/phi-4 on Hugging Face · Last updated by the maker: Jul 14, 2026Facts from the maker's card are the maker's own, not measured by Tīrtha.