⌘K

GPT-6.2 Astra

gpt-6.2-astra

GPT-6.2 Astra is a reasoning model for demanding coding and professional tasks, with text and image input, text output, a 1,050,000 token context window, up to 922,000 input tokens, and 128,000 max output tokens. Use model ID `gpt-6.2-astra` for requests to `https://cloud.vtrix.ai/llm/chat/completions`.

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 string required

Message role

Options: user, assistant, system, developer

content string | array required

Text 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 integer

Choice index

message object

The generated message

role string

Message role (always assistant)

content string

Generated text content

finish_reason string

Reason for completion termination


usage object

Token usage statistics

prompt_tokens integer

Number of tokens in the prompt

completion_tokens integer

Number of generated tokens, including reasoning tokens

total_tokens integer

Total tokens used