GPT-6 Astra offers streaming text, five reasoning levels, function calls and JSON output through the Responses API.
Provider: OpenAI
Category: text generation
Endpoint: /v1/responses
Status: Available
Cost: --
GPT-6 Astra offers streaming text, five reasoning levels, function calls and JSON output through the Responses API.
API access
Endpoint
POST /v1/responses
Base URL
https://api.hiapi.ai
Uses the OpenAI Responses format. One HiAPI key works across all available models.
Input price
5,000 Credits
/ 1M tokens · Total input ≤ 272,000 tokens
Output price
25,000 Credits
/ 1M tokens · Total input ≤ 272,000 tokens
Context
1.05M
context window
Max output
128K
output tokens
Ask a question to stream the answer and inspect token usage, latency, and estimated cost.
Call GPT-6 Astra with the streaming OpenAI Responses format. Copy a ready-to-use cURL, Python, or Node.js example below.
/v1/responsescurl -N -X POST "https://api.hiapi.ai/v1/responses" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-astra",
"input": [
{
"type": "message",
"role": "user",
"content": [
{
"type": "input_text",
"text": "Explain one practical way to check an AI-generated answer against its source."
}
]
}
],
"stream": true,
"store": false,
"reasoning": {
"effort": "medium"
}
}'Tip: Replace YOUR_API_KEY with your actual API key from the API Keys page.
Uses the OpenAI Responses format. Keep stream: true, send input as a message array, and set reasoning effort with reasoning.effort.
Responses API
Start with core fields, then enable advanced capabilities as needed.
The fields that form a valid request
Enable reasoning, context, and tools as needed
Max output is a model specification limit, not a per-request generation target. Examples show only the runtime fields currently available and verified on HiAPI.
Billing is based on actual input, output, and cached token usage. All prices below are shown per 1 million tokens.
Total input ≤ 272,000 tokens
Prompts and context sent to the model
Responses and reasoning generated by the model
The tier is selected by total input tokens per request, including cache reads and writes. Above the threshold, that tier applies to all input, output, and cache tokens in the request, not only the excess.
| Token type | Total input ≤ 272,000 tokens | Total input > 272,000 tokens |
|---|---|---|
| Input | 5,000 Credits | 10,000 Credits |
| Output | 25,000 Credits | 37,500 Credits |
| Cache read | 500 Credits | 1,000 Credits |
| Cache write | 6,250 Credits | 12,500 Credits |
All prices are per 1 million tokens.
These specifications reflect the current public HiAPI text request contract. Undisclosed capabilities are not inferred by the page.
GPT-6 Astra offers streaming text, five reasoning levels, function calls and JSON output through the Responses API.
HiAPI exposes this model through /v1/responses. Test prompts and parameters in the Playground, then use the same HiAPI API key in your server application.
The Playground and API share the same model ID, so three steps take a tested prompt into production.
Step 1
Test instructions, input, and reasoning.effort in the Playground.
Step 2
View an existing key or create another after signing in; one key works across all available models.
Step 3
Send requests to /v1/responses and track cost with the usage object.
GPT-6 Astra is an OpenAI model for complex reasoning, coding, research, and document work, including code review and multistep analysis. This integration covers text input and text output; check the relevant integration reference before using other input or output formats.
Use model gpt-6-astra and POST /v1/responses. Set your OpenAI SDK base URL to https://api.hiapi.ai/v1, supply a HiAPI API key, and use the Responses client. The same key can access models enabled for your account. Media models using /v1/tasks require a different request structure.
This integration uses a message array in input, streams events with stream=true, and leaves conversation storage to your client with store=false. Adapt Chat Completions messages and choices handling to Responses, and do not parse an entire SSE response as a single JSON object.
Set reasoning.effort to low, medium, high, xhigh, or max. Examples and Playground start with medium; try low for simpler requests and compare higher efforts on difficult work. Higher effort may increase latency and output tokens. Compare results and cost on representative tasks, and send the desired effort explicitly in API requests.
GPT-6 Astra does not support reasoning.effort=none. This integration does not expose temperature, top_p, or max_output_tokens controls. Follow this model's examples and check the exact endpoint contract when a parameter is rejected.
The published model limits are a 1,050,000-token context window and 128,000 output tokens. Input and generated content share the context budget, and reasoning consumes output budget. Maximum output is a specification limit, not the expected response length or an adjustable max_output_tokens control in this integration.
Content may already have arrived through response.output_text.delta or response.output_item.done. Accumulate those events and read status and usage at completion instead of requiring the final event to repeat every output item. Handle response.failed and response.incomplete separately.
With store=false, replay the user messages, assistant items, and tool results needed for the next turn in input. Replayed history counts as input again, with any reported cache hits billed at the cache-read rate. Keep the context needed for the task rather than unrelated history.
Each category uses the rate shown in live pricing. Total input includes cache reads and writes; subtract both when calculating ordinary input to avoid charging them twice. Reasoning tokens are already included in output. Page estimates are informational; account usage logs record settled charges.
The threshold uses total input, including cache reads and writes. Exactly 272,000 input tokens stays in the standard band; 272,001 selects the long-context band for the entire request, including output and cache usage. It is not a surcharge only on the excess. Expand the pricing details to compare both bands.
No. Cache writes and hits depend on server policy, reusable prefixes, and retention. Use cached_tokens and cache_write_tokens from usage. Zero means no usage was reported for that category; repeating a prompt alone is not evidence of a cache discount.
Declare functions in tools. Your application executes a returned function_call and sends function_call_output with the same call_id and required context. Use text.format.type=json_object for JSON, or json_schema for field constraints. Assemble streamed JSON before parsing and validating it; see the documented request examples.
Check the API key, exact model ID, endpoint, and request fields first. For missing text, verify SSE handling rather than reading only final output. For pricing questions, compare input, cache, output, and the selected context band against usage. Provide the request ID, error code, and time for support, without disclosing your API key.