Standard context
$2.00
- Input: $2.00 / 1M tokens · cached input: $0.20 / 1M tokens · output: $10.00 / 1M tokens.
- Applies when input context is 272,000 tokens or less.
واجهة GPT-6 Astra للمطورين / إكمال محادثات بسياق طويل مع تسعير واضح للرموز
طوّر تطبيقات باستخدام GPT-6 Astra عبر نقطة إكمال المحادثات المتوافقة مع OpenAI من PiAPI. استخدم مساحة التجربة لاختبار الرسائل وفحص الاستجابة الفورية.
أسعار ترويجية لفترة محدودة (20% من السعر الرسمي لـ OpenAI). جميع الأسعار لكل 1 مليون token.
$2.00
$4.00
هل أنت مستعد للتطوير باستخدام GPT-6 Astra؟
واجهة محادثات متوافقة مع OpenAI للتطبيقات ذات السياق الطويل وسير عمل المطورين.
أرسل مصفوفة messages قياسية إلى POST /v1/chat/completions واحصل على الاستجابة المكتملة فوراً.
اختر مستوى جهد الاستدلال low أو medium أو high حسب التوازن بين السرعة والعمق الذي يحتاجه سير عملك.
تُعرض أسعار رموز الإدخال والإدخال المخزن مؤقتاً والإخراج معاً لكلتا فئتي السياق.
عندما يتجاوز سياق الإدخال 272,000 token، ينتقل الطلب بالكامل إلى أسعار السياق الطويل.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/task' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-6-astra",
"task_type": "chat-completion",
"input": {
"messages": [{"role":"user","content":"Explain what an API gateway does, in two sentences."}]
}
}'
# → { "task_id": "9d5a…", "status": "pending" }curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'
# poll until status = completed
{
"data": {
"status": "completed",
"output": {
"content": "https://img.theapi.app/ephemeral/…"
}
}
}$ npm install -g piapi-cli $ piapi run gpt-6-astra \ messages=[object Object] ✓ Task completed! https://img.theapi.app/ephemeral/…
تكلفة الطلبات القياسية هي $2.00 لكل 1 مليون token للإدخال، و$0.20 للإدخال المخزن مؤقتاً، و$10.00 للإخراج.
عند تجاوز سياق الإدخال 272,000 token، تتم محاسبة الطلب بالكامل وفق المستوى الطويل: $4.00 للإدخال، و$0.40 للإدخال المخزن مؤقتاً، و$15.00 للإخراج لكل 1 مليون token.
استخدم نقطة النهاية POST /v1/chat/completions المتوافقة مع OpenAI مع قيمة model ومصفوفة messages.
More questions? See the API docs.
GPT-6 Astra API