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 का API / पारदर्शी टोकन मूल्य के साथ लंबा संदर्भ चैट
PiAPI के OpenAI-संगत चैट पूर्णता एंडपॉइंट से GPT-6 Astra के साथ ऐप बनाएं। प्रयोग क्षेत्र में संदेशों का परीक्षण करें और तुरंत मिलने वाला उत्तर देखें।
सीमित समय के प्रचारात्मक मूल्य (OpenAI के आधिकारिक मूल्य का 20%)। सभी मूल्य प्रति 1 मिलियन tokens हैं।
$2.00
$4.00
क्या आप GPT-6 Astra के साथ बनाना शुरू करने के लिए तैयार हैं?
लंबे संदर्भ वाले ऐप और डेवलपर कार्यप्रवाह के लिए OpenAI-संगत चैट API।
POST /v1/chat/completions पर मानक messages ऐरे भेजें और पूरा उत्तर तुरंत प्राप्त करें।
अपने कार्यप्रवाह में गति और गहराई के संतुलन के अनुसार तर्क प्रयास का स्तर low, medium या high चुनें।
संदर्भ के दोनों स्तरों के लिए इनपुट, कैश किए गए इनपुट और आउटपुट टोकन की कीमतें एक साथ दिखाई जाती हैं।
जब input context 272,000 tokens से अधिक होता है, तो पूरा अनुरोध long-context दर पर चला जाता है।
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/…
मानक अनुरोधों की कीमत प्रति 1 मिलियन input tokens $2.00, cached input tokens $0.20 और output tokens $10.00 है।
जब input context 272,000 tokens से अधिक होता है, तो पूरे अनुरोध पर long-context tier लागू होता है: प्रति 1 मिलियन tokens input $4.00, cached input $0.40 और output $15.00।
model मान और messages ऐरे के साथ OpenAI-संगत POST /v1/chat/completions एंडपॉइंट का उपयोग करें।
More questions? See the API docs.
GPT-6 Astra API