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 voor GPT-6 Astra / Chat met lange context en transparante tokenprijzen
Bouw met GPT-6 Astra via het OpenAI-compatibele chat-endpoint van PiAPI. Gebruik de testomgeving om berichten te testen en het directe antwoord te bekijken.
Promotietarieven voor beperkte tijd (20% van de officiële OpenAI-prijs). Alle prijzen per 1 miljoen tokens.
$2.00
$4.00
Klaar om met GPT-6 Astra te bouwen?
Een OpenAI-compatibele chat-API voor toepassingen met lange context en ontwikkelprocessen.
Stuur een standaard messages-array naar POST /v1/chat/completions en ontvang direct het volledige antwoord.
Kies low, medium of high als redeneerinspanning om de balans tussen snelheid en diepgang op je werkwijze af te stemmen.
De prijzen voor inputtokens, gecachte inputtokens en outputtokens worden voor beide contextniveaus samen weergegeven.
Bij meer dan 272000 inputtokens schakelt het volledige verzoek over naar de tarieven voor lange 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/…
Standaardverzoeken kosten $2.00 per 1 miljoen inputtokens, $0.20 per 1 miljoen gecachte inputtokens en $10.00 per 1 miljoen outputtokens.
Bij meer dan 272000 inputtokens wordt het volledige verzoek afgerekend tegen het lange-contexttarief: $4.00 input, $0.40 gecachte input en $15.00 output per 1 miljoen tokens.
Gebruik het OpenAI-compatibele endpoint POST /v1/chat/completions met een model-waarde en een messages-array.
More questions? See the API docs.
GPT-6 Astra API