phi-4 - API لـمصر، بالجنيه المصري
مباشرPhi-4 is a model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets. The goal of this approach was to ensure that small capable models were trained with data focused on high quality and advanced reasoning.
Modality
محادثة
Context window
16K Tokens
أقصى Output
15K Tokens
المنطقة
US
Weights
Weights مفتوحة
منشور
14 يوليو 2026
الأسعار
Input
4.12
ج.م لكل 1M Tokens
Output
8.23
ج.م لكل 1M Tokens
مثال على التكلفة الشهرية
329.32 ج.م
تقدير توضيحي: 50M Input tokens و15M Output tokens شهريًا وفق أسعار هذا الـ Model في الكتالوج.
استخدمه عبر واجهة API
يعمل phi-4 مع أي SDK متوافقة مع OpenAI: وجّه الـ Base URL إلى https://backend.sovereigneg.com/v1 واستخدم مفتاح API الخاص بك من SovereignEG.
تشغيل خدمات الذكاء الاصطناعي
POST /v1/chat/completions — متوافق مع OpenAI: استخدم seg-sdk الخاص بنا، أو أي OpenAI SDK كبديل مباشر.
from seg import SEG # pip install seg-sdk
client = SEG(api_key="YOUR_API_KEY")
response = client.chat.completions.create(
model="phi-4",
messages=[
{"role": "user", "content": "What are some fun things to do in Cairo?"}
],
)
print(response.choices[0].message.content)from openai import OpenAI
client = OpenAI(
base_url="https://backend.sovereigneg.com/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="phi-4",
messages=[
{"role": "user", "content": "What are some fun things to do in Cairo?"}
],
)
print(response.choices[0].message.content)import OpenAI from "openai"
const client = new OpenAI({
baseURL: "https://backend.sovereigneg.com/v1",
apiKey: "YOUR_API_KEY",
})
const response = await client.chat.completions.create({
model: "phi-4",
messages: [
{ role: "user", content: "What are some fun things to do in Cairo?" },
],
})
console.log(response.choices[0].message.content)curl https://backend.sovereigneg.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "phi-4",
"messages": [
{"role": "user", "content": "What are some fun things to do in Cairo?"}
]
}'الأسئلة الشائعة
كم تكلفة phi-4؟
4.12 ج.م لكل 1M من Input tokens؛ 8.23 ج.م لكل 1M من Output tokens. يُحتسب الاستخدام لكل Token بالجنيه المصري، بلا أي التزام بحد أدنى.
ما حجم الـ Context window في phi-4؟
يدعم phi-4 Context window بحجم 16,384 Tokens (16K)، ويُخرج حتى 14,745 Output tokens في الاستجابة الواحدة.
أين يُستضاف phi-4؟
يُخدَم phi-4 من US (مستضاف في الولايات المتحدة).
هل phi-4 Model بـ Weights مفتوحة؟
نعم، phi-4 هو Model بـ Weights مفتوحة. وتستدعيه عبر واجهة API من SovereignEG مثل أي Model آخر في الكتالوج، مع محاسبة لكل Token بالجنيه المصري.
كيف أستخدم phi-4 عبر واجهة API؟
phi-4 متاح عبر واجهة API من SovereignEG المتوافقة مع OpenAI: وجّه الـ Base URL في الـ SDK لديك إلى https://backend.sovereigneg.com/v1، واستدعِ Endpoint /v1/chat/completions مع Model ID phi-4 ومفتاح API الخاص بك.
Models ذات صلة
عرض كل الـ Models ←Arize AI Qwen 2 1.5B Instruct
arize-ai · محادثة · Context 33K
5.88 ج.م / 1M Input tokens
Beam 1.0 501B A23B
reflection · محادثة · Context 1M
23.52 ج.م / 1M Input tokens
Claude Fable 5.1
Anthropic · محادثة · Context 1M
588.08 ج.م / 1M Input tokens
Claude Haiku 5.5
Anthropic · محادثة · Context 1M
5.88 ج.م / 1M Input tokens