Skip to main content
GPT-6 Astra uses the Responses API for text, image and file input, Structured Outputs, and tool workflows. Select a tab for the request shape you need.
gpt-6-astra also accepts text requests through POST /v1/chat/completions. Use this Responses API reference for reasoning controls, tools, image and file input, Structured Outputs, streaming, and prompt caching.

Create response

POST /v1/responses
cURL

Request headers

string
required
Bearer authentication in the form Bearer YOUR_API_KEY.
string
default:"application/json"
required
Data exchange format.

Request body

string
required
AnyFast model ID. Use gpt-6-astra.
string | object[]
required
Text or an ordered list of message, image, file, and tool-result items.
string
System or developer instructions inserted into the model context.
object
Reasoning configuration.
string
low, medium, high, xhigh, or max. none and minimal are not supported.
string
auto, concise, or detailed.
string
auto, current_turn, or all_turns.
string
Use standard. The current AnyFast route does not expose GPT-6 Astra Pro mode.
integer
Maximum visible-output and reasoning tokens. Maximum: 128000.
string
low, medium, or high.
string[]
Additional response data. Use reasoning.encrypted_content for encrypted reasoning items. Do not use message.output_text.logprobs.
string
Stable key that improves cache matching for related requests.
object
Prompt-cache options. mode selects implicit or explicit breakpoints; ttl currently supports 30m; comparison_response_id requests comparison diagnostics.
string
implicit or explicit.
string
default:"30m"
Currently only 30m is supported.
object
Marks an explicit reusable-prefix boundary. Use { "mode": "explicit" }.
object
Application-defined string key-value pairs.
boolean
default:false
Stream response events over SSE.
boolean
Controls event obfuscation for streaming responses.
boolean
default:true
Controls upstream response storage. AnyFast does not expose response retrieval.
string
default:"disabled"
Use disabled on the current AnyFast route.
Do not send temperature, top_p, or top_logprobs. GPT-6 Astra also does not support message.output_text.logprobs in include.
AnyFast does not expose Responses retrieval, Conversations, or Vector Stores management. Do not use background, conversation, previous_response_id, stored prompt references, or configuration_update.

Response

200
string
Response ID.
string
Always response.
string
queued, in_progress, completed, incomplete, failed, or cancelled.
object[]
Ordered reasoning, message, and tool-call output items.
string
Convenience aggregation of text output when available.
object
Input, output, cached, cache-write, and reasoning token usage.
object | null
Why a response ended incomplete.
object | null
Error details for a failed response.

Common errors

error
Invalid input, unsupported reasoning or sampling parameter, incompatible state fields, or invalid tool/schema configuration.
error
Missing or invalid API key.
error
Rate or quota limit reached.

Official references