HiAPI
OverviewModels MarketAPI KeysUsage StatisticsCall LogsBillingReferralPlaygroundStorageChangelogContact UsSettings
Display unit
N
Powered by hiapi
Settings

Welcome

Contact Us

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: --

Back to models
OpenAIText APIOnline

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

PlaygroundAPIPricingCapabilitiesOverview

Run settings

The Playground charges the signed-in account balance without requiring an extra API key. Server-side API calls still require a HiAPI API key.

Try GPT-6 Astra

Ask a question to stream the answer and inspect token usage, latency, and estimated cost.

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.

Code Example
API Endpoint:/v1/responses
curl -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

Request fields at a glance

Start with core fields, then enable advanced capabilities as needed.

3 required4 capability fields

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
low, medium, high, xhigh, max. 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.
i

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.

Manage API keysUse the same HiAPI key across all available models.

GPT-6 Astra API Pricing

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

Input tokens
5,000 Credits/ 1M tokens

Prompts and context sent to the model

Output tokens
25,000 Credits/ 1M tokens

Responses and reasoning 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 typeTotal input ≤ 272,000 tokensTotal input > 272,000 tokens
Input5,000 Credits10,000 Credits
Output25,000 Credits37,500 Credits
Cache read500 Credits1,000 Credits
Cache write6,250 Credits12,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
Supported
Structured JSON
Supported
Reasoning
Supported
Input modalities
text
Output modalities
text
Reasoning efforts
low · medium · high · xhigh · max
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 tested prompt into production.

  1. Step 1

    Validate online

    Test instructions, input, and reasoning.effort in the Playground.

  2. Step 2

    Manage API keys

    View an existing key or create another after signing in; one key works across all available models.

  3. 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.