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 für GPT-6 Astra / Chat-Completions mit Langkontext und transparenten Tokenpreisen
Entwickle mit GPT-6 Astra über PiAPIs OpenAI-kompatiblen Chat-Completions-Endpunkt. Teste Nachrichten im Playground und prüfe die direkte Antwort.
Zeitlich begrenzte Aktionspreise (20 % des offiziellen OpenAI-Preises). Alle Preise gelten pro 1 Million Token.
$2.00
$4.00
Bereit, mit GPT-6 Astra zu entwickeln?
Eine OpenAI-kompatible Chat-API für Anwendungen mit langem Kontext und Entwicklungsabläufe.
Sende ein standardmäßiges messages-Array an POST /v1/chat/completions und erhalte die fertige Antwort direkt.
Wähle low, medium oder high als Denkaufwand, um Geschwindigkeit und Tiefe an deinen Arbeitsablauf anzupassen.
Die Preise für Eingabe-, gecachte Eingabe- und Ausgabetoken werden für beide Kontextstufen zusammen angezeigt.
Wenn der Eingabekontext 272000 Token überschreitet, wechselt die gesamte Anfrage zu den Langkontext-Tarifen.
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/…
Standardanfragen kosten $2.00 pro 1 Million Eingabetoken, $0.20 pro 1 Million gecachte Eingabetoken und $10.00 pro 1 Million Ausgabetoken.
Wenn der Eingabekontext 272000 Token überschreitet, wird die gesamte Anfrage zum Langkontext-Tarif abgerechnet: $4.00 Eingabe, $0.40 gecachte Eingabe und $15.00 Ausgabe pro 1 Million Token.
Verwende den OpenAI-kompatiblen Endpunkt POST /v1/chat/completions mit einem model-Wert und einem messages-Array.
More questions? See the API docs.
GPT-6 Astra API