API Notes
gpt-6.2-astra uses the Responses API for tool calling
Authentication
authorization string required
All APIs require authentication via Bearer Token.
Get API Key:
Visit API Key Management Page to get your API Key.
Usage:
Add to request header:
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Model ID to use for the request
Value: gpt-6.2-astra
messages array required
Array of message objects representing the conversation history
role
stringrequiredMessage role
Options:
user,assistant,system,developer
content
string | arrayrequiredText string or an array of text and image content parts
max_completion_tokens integer
Maximum tokens to generate, including reasoning tokens and visible output. Reserve enough tokens for both reasoning and the final answer
Range: 1 - 128000
max_tokens integer
Legacy maximum token limit. This parameter is deprecated; use max_completion_tokens for new integrations
Range: 1 - 128000
reasoning_effort string
Controls reasoning depth. Higher levels allow more reasoning at the cost of additional tokens and latency. Reasoning is always enabled
Options: low, medium, high, xhigh, max
Recommended starting value: medium
stream boolean
Whether to stream the response incrementally
Default: false
Response Format
id string
Unique identifier for the completion
object string
Object type, always chat.completion
created integer
Unix timestamp of creation time
model string
The model used for completion
choices array
Array of completion choices
index
integerChoice index
message
objectThe generated message
role
stringMessage role (always
assistant)content
stringGenerated text content
finish_reason
stringReason for completion termination
usage object
Token usage statistics
prompt_tokens
integerNumber of tokens in the prompt
completion_tokens
integerNumber of generated tokens, including reasoning tokens
total_tokens
integerTotal tokens used