GPT-6 Astra
OpenAI's top GPT-6 model for the hardest reasoning, programming and agent tasks, with a 922K context window.
Price
$0.50 Input · $2.50 Output / 1M
$0.45 in
$2.25 out
$0.045 cached
Endpoint
/chat
Delivery pattern
Direct request-response
Model specifications
Context: 922K tokens
Max output: 128K tokens
Nominal model specifications. Available context and output limits depend on the channel and client settings.
API documentation
Build and copy the request
Choose the options this model accepts. The code below updates as you choose.
https://apiking.ai/v1/chat/completionsBearer API keyReturns directlyAPI_KEY="${API_KEY:-YOUR_API_KEY}"
curl --fail-with-body -sS https://apiking.ai/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "GPT-6 Astra",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"stream": false
}'Parameter reference
modelExact model identifier for this request.
messagesRequired on /v1/chat/completions.
inputRequired on /v1/responses.
Response lifecycle
Successful response example for this endpoint.
Response lifecycle
Successful response example for this endpoint.
{
"id": "chatcmpl_xxx",
"choices": [
{
"message": {
"role": "assistant",
"content": "Hello!"
}
}
]
}Errors and production
Retry rules, idempotency, and the minimum production checklist.
Errors and production
Retry rules, idempotency, and the minimum production checklist.
400 / 422Fix the request fields or unsupported option; do not retry unchanged.
401Check that the API key is present, active, and sent as a Bearer token.
402The account balance is insufficient.
409The Idempotency-Key is processing or was reused with another body.
429Back off according to Retry-After before retrying.
5xxRetry with exponential backoff and keep the original Idempotency-Key.
- Keep API keys on your server for public mobile and browser applications.
- Set a unique Idempotency-Key for every billable async operation.
- Persist task_id so polling can resume after a restart.
- Use a timeout for every HTTP request and surface the request ID in support reports.
- Read live model metadata instead of hard-coding prices and supported options.
Price and tiers
save 95% vs officialList price, for everyone.
Input
$0.50/ 1M tokens
$10.00
Output
$2.50/ 1M tokens
$50.00
Cache read $0.05 / 1M tokens
Web search $0.01 / search, added on top of tokens
The price shown here is exactly what you are billed — failed calls are refunded automatically.
GPT-6 Astra at a glance
- Model ID
- GPT-6 Astra
- Type
- Chat & reasoning
- Vendor
- OpenAI
- Context window
- 922K tokens
- Max output
- 128K tokens
- Endpoint
- POST /v1/chat/completions
- Delivery
- Direct response
- Billed by
- Per token
What GPT-6 Astra costs
- One request with a 2,000-token prompt and a 500-token answer$0.00225
- 1,000 such requests$2.25
- 1,000 such requests with the prompt read from cache$1.35
At the list price. Failed calls are not charged.
Common questions
How much does the GPT-6 Astra API cost?
GPT-6 Astra costs $0.50 Input · $2.50 Output / 1M tokens on APIKing. That is 95% below the official list price. Pay as you go from your balance.
How do I call the GPT-6 Astra API?
Send a request to https://apiking.ai/v1/chat/completions with your APIKing key as a Bearer token and set the model to GPT-6 Astra.
What is the model ID of GPT-6 Astra?
Set the model parameter to GPT-6 Astra.
Can I use the OpenAI SDK with GPT-6 Astra?
Yes. Set the base URL to https://apiking.ai/v1, use your APIKing key as the API key and GPT-6 Astra as the model.
Does GPT-6 Astra support streaming?
Yes. Send stream: true and the answer arrives as it is generated.
Does GPT-6 Astra support prompt caching?
Yes. A prompt read from cache costs $0.05 per 1M tokens instead of $0.50.
What are the limits of GPT-6 Astra?
Context: 922K tokens. Max output: 128K tokens.
Am I charged when a GPT-6 Astra call fails?
A failed call or a failed generation is not charged. Tasks are estimated first and settled at what they actually used.
Compare GPT-6 Astra with similar models
| Model | Vendor | Price | Spec |
|---|---|---|---|
| GPT-6 Astra | OpenAI | $0.50 in · $2.50 out / 1M | 922K context |
| GPT-6.2 Astra | OpenAI | $0.40 in · $2.00 out / 1M | 922K context |
| GPT-6 Luna | OpenAI | $0.0784 in · $0.392 out / 1M | 922K context |
| Claude Opus 5.5 | Anthropic | $0.50 in · $2.50 out / 1M | 1M context |
| Claude Sonnet 5.5 | Anthropic | $0.25 in · $1.30 out / 1M | 1M context |
| GPT-6.2 Sol | OpenAI | $0.10 in · $0.50 out / 1M | 922K context |