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
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
Try gpt-6-astra
Ask a question, upload images, or paste from clipboard. Then inspect the streamed answer, token usage, latency, and estimated cost.
Upload or paste up to 4 images, 10 MB each. Images are safety reviewed.
gpt-6-astra API Quickstart
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
}'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.
Combine input_text and input_image in one input message. Use a public HTTPS image URL; Playground uploads automatically provide a temporary reviewed URL.
/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": "Describe the main subject, setting, and important visual details."
},
{
"type": "input_image",
"image_url": "https://static.hiapi.ai/example/subject-1.jpg",
"detail": "low"
}
]
}
],
"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
Request fields at a glance
Start with core fields, then enable advanced capabilities as needed.
Core fields
The fields that form a valid request
- model Required
- Use the model ID shown on this page.
- input Required
- Pass the current conversation context as a message array.
- stream Required
- Must be set to true.
- store Fixed
- Fixed to false and shown explicitly in examples.
Capability fields
Enable reasoning, context, and tools as needed
- reasoning.effort Optional
- medium. Examples and Playground default to medium; set this field explicitly in API requests.
- instructions Optional
- Define the role and response requirements.
- previous_response_id Conditional
- Use with compatible storage and response chaining; with store=false, replay context from the client.
- tools / tool_choice Optional
- Declare and control function tool calls.
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.
gpt-6-astra API Pricing
Billing follows the input, output, and cache token categories actually reported in usage. All prices below are shown per 1 million tokens.
Total input ≤ 272,000 tokens
- Input tokens
- 5,000 Credits/ 1M tokens
- Output tokens
- 25,000 Credits/ 1M tokens
Prompts and context sent to the model
Responses generated by the model
- Cache read
- 500 Credits/ 1M tokens
- Cache write
- 6,250 Credits/ 1M tokens
Long-context pricing and billing details
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.
gpt-6-astra Model Specifications
These specifications reflect the current public HiAPI text request contract. Undisclosed capabilities are not inferred by the page.
- Streaming
- Supported
- Tool calling
- Not supported
- Structured JSON
- Not supported
- Reasoning
- Not supported
- Input modalities
- text · image · file
- Output modalities
- text
- Reasoning efforts
- -
- Max output
- 128K
About gpt-6-astra
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.
- Provider
- OpenAI
- Endpoint
- /v1/responses
- Context window
- 1.05M
- Released
- Not disclosed
How to Use gpt-6-astra
The Playground and API share the same model ID, so three steps take a prompt into production.
Step 1
Validate online
Test instructions, input, and reasoning.effort in the Playground.
Step 2
Manage API keys
View an existing key or create another after signing in; one key works across all available models.
Step 3
Integrate your server
Send requests to /v1/responses and track cost with the usage object.
Frequently asked questions
What is GPT-6 Astra suited for?
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.
Which model ID, endpoint, and SDK settings should I use?
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.
Why do the examples use an input array, stream=true, and store=false?
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.
How should I choose a reasoning effort?
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.
Can I turn reasoning off or adjust sampling parameters?
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.
What do the context and maximum-output limits mean?
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.
Why can response.completed contain an empty output array?
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.
How do I continue a conversation, and is history billed again?
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.
How are input, output, cache reads, and cache writes charged?
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.
When does long-context pricing apply?
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.
Do repeated prompts always receive a cache discount?
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.
How do I use function calls and structured JSON?
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.
What should I check when a request fails or its cost looks wrong?
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.
HiAPI Blog



