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 di GPT-6 Astra / Chat a contesto lungo con prezzi trasparenti per token
Sviluppa con GPT-6 Astra tramite l’endpoint di chat compatibile con OpenAI di PiAPI. Usa l’area di prova per testare i messaggi e consultare la risposta immediata.
Prezzi promozionali a tempo limitato (20% del prezzo ufficiale di OpenAI). Tutti i prezzi sono per 1 milione di token.
$2.00
$4.00
Vuoi iniziare a sviluppare con GPT-6 Astra?
Un’API di chat compatibile con OpenAI per applicazioni con contesto lungo e flussi di sviluppo.
Invia un array messages standard a POST /v1/chat/completions e ricevi subito la risposta completa.
Scegli un livello di impegno nel ragionamento low, medium o high in base all’equilibrio tra velocità e profondità richiesto dal tuo flusso di lavoro.
I prezzi dei token di input, input in cache e output sono mostrati insieme per entrambi i livelli di contesto.
Quando il contesto di input supera 272000 token, l’intera richiesta passa alle tariffe 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/…
Le richieste standard costano $2.00 per 1 milione di token di input, $0.20 per 1 milione di token di input memorizzati nella cache e $10.00 per 1 milione di token di output.
Quando il contesto di input supera 272000 token, l’intera richiesta viene fatturata alla tariffa long-context: $4.00 input, $0.40 input in cache e $15.00 output per 1 milione di token.
Usa l’endpoint POST /v1/chat/completions compatibile con OpenAI con un valore model e un array messages.
More questions? See the API docs.
GPT-6 Astra API