Microsoft (Phi)
Phi 4
model
phi-4BudgetStabil★ Biaya rendah di kelasnyaStreamingToolsBatchGlobal
Konteks
16K
Input / 1M token
$0.0700
Output / 1M token
$0.1400
Tentang model ini
Phi 4
Phi 4 is a budget-tier model available through the Anoman gateway. Detailed performance benchmarks and use-case guidance for this model are coming soon. In the meantime, see the code example below to integrate it into your workflow, and the tier + region information in the hero for pricing and residency.
Contoh kode
Chat completion dengan Phi 4
from openai import OpenAI
client = OpenAI(
base_url="https://api.anoman.io/v1",
api_key="anm-sk-..."
)
response = client.chat.completions.create(
model="phi-4",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)