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.
API untuk GPT-6 Astra / Chat konteks panjang dengan harga token transparan
Bangun dengan GPT-6 Astra melalui endpoint chat kompatibel OpenAI milik PiAPI. Gunakan area uji untuk mencoba pesan dan memeriksa respons langsung.
Harga promosi terbatas (20% dari harga resmi OpenAI). Semua harga per 1 juta token.
$2.00
$4.00
Siap membangun dengan GPT-6 Astra?
API chat kompatibel OpenAI untuk aplikasi berkonteks panjang dan alur kerja pengembang.
Kirim array messages standar ke POST /v1/chat/completions dan terima respons lengkap secara langsung.
Pilih tingkat upaya penalaran low, medium, atau high sesuai keseimbangan kecepatan dan kedalaman yang dibutuhkan alur kerja Anda.
Harga token input, input cache, dan output ditampilkan bersama untuk kedua tingkat konteks.
Saat konteks input melebihi 272000 token, seluruh permintaan beralih ke tarif konteks panjang.
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/…
Permintaan standar berharga $2.00 per 1 juta token input, $0.20 per 1 juta token input cache, dan $10.00 per 1 juta token output.
Saat konteks input melebihi 272000 token, seluruh permintaan ditagihkan dengan tarif konteks panjang: $4.00 input, $0.40 input cache, dan $15.00 output per 1 juta token.
Gunakan endpoint POST /v1/chat/completions yang kompatibel dengan OpenAI dengan nilai model dan array messages.
More questions? See the API docs.
GPT-6 Astra API