GPT-6.2 Astra
gpt-6.2-astra
TextOpenAIGPT-6.2 Astragpt-6.2-astra
gpt-6.2-astra is the most capable GPT-6.2 model: Sol is the everyday option, Astra is aimed at science, law, finance and complex engineering. OpenAI calls it its strongest cyber model, so higher-risk security help is more restricted. Text and image input, 1.05M-token context, 128K output, function calling.
Authentication
- Base URL
https://api.dreamto.ai- Authorization
Authorization: Bearer YOUR_API_KEY- Content-Type
application/json- Model name (model)
gpt-6.2-astra
Integration protocol
Why choose this protocol
Best for existing OpenAI SDK, Chat Completions code, or unified gateway integrations.
Endpoint URL
POST/v1/chat/completions
Authorization: Bearer YOUR_API_KEYContent-Type: application/jsonRequest / response JSON
Request
{
"model": "gpt-6.2-astra",
"tools": [],
"stream": false,
"messages": [
{
"role": "user",
"content": "Hello, world"
}
],
"verbosity": "medium",
"max_tokens": 4096,
"temperature": 0.7,
"tool_choice": "auto",
"response_format": {
"type": "json_object"
},
"reasoning_effort": "medium",
"system_instruction": "You are a rigorous assistant."
}Response
{
"id": "chatcmpl_example",
"model": "gpt-6.2-astra",
"usage": {
"total_tokens": 24,
"prompt_tokens": 8,
"completion_tokens": 16
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello, world"
},
"finish_reason": "stop"
}
],
"created": 1710000000
}Request / response fields
Request fields
| Field | Field type | Required | Default | Options / range | Description | Example |
|---|---|---|---|---|---|---|
| messages | array | Y | - | - | OpenAI-compatible chat message array. | [{"role":"user","content":"Hello, world"}] |
| system_instruction | string | N | - | - | Used to set the role, style, and boundaries of responses. | You are a rigorous assistant. |
| temperature | number | N | 1 | - | Controls randomness; lower is more stable. | 0.7 |
| max_tokens | integer | N | - | - | Limits the maximum output length of this response. | 4096 |
| stream | boolean | N | false | - | Whether to use a streaming response. | false |
| response_format | object | N | - | - | Structured output format, e.g. JSON object. | {"type":"json_object"} |
| tools | array | N | - | - | OpenAI tools/function calling definitions. | [] |
| tool_choice | string | N | - | - | auto, none, or a specific tool. | auto |
| reasoning_effort | enum | N | - | low, medium, high, xhigh | How much compute the reasoning model spends thinking. Higher values give deeper answers but take longer and cost more. This list shows the levels verified to work on this model; unlisted levels are rejected by the upstream. | medium |
| verbosity | enum | N | - | low, medium, high | Controls how detailed the answer is. low is more concise, high more thorough. Verified to work on this model; not guaranteed for other models in the same official series. | medium |
Response fields
| Field | Field type | Required | Default | Options / range | Description | Example |
|---|---|---|---|---|---|---|
| id | string | N | - | - | Response identifier for this request. | chatcmpl_example |
| model | string | N | - | - | Name of the model that actually responded. | gpt-6.2-astra |
| choices[].message.content | string | N | - | - | The main text content generated by the model. | Hello, world |
| usage.prompt_tokens | integer | N | - | - | Number of tokens consumed by the request input. | 8 |
| usage.completion_tokens | integer | N | - | - | Number of tokens consumed by the model's output. | 16 |
| usage.total_tokens | integer | N | - | - | Total tokens for input and output combined. | 24 |
| object | string | N | - | - | - | chat.completion |
| created | integer | N | - | - | - | 1710000000 |
| choices | array | N | - | - | - | [{"index":0,"message":{"role":"assistant","content":"Hello, world"},"finish_reason":"stop"}] |
| choices[] | object | N | - | - | - | {"index":0,"message":{"role":"assistant","content":"Hello, world"},"finish_reason":"stop"} |
| choices[].index | integer | N | - | - | - | 0 |
| choices[].message | object | N | - | - | - | {"role":"assistant","content":"Hello, world"} |
| choices[].message.role | string | N | - | - | - | assistant |
| choices[].finish_reason | string | N | - | - | - | stop |
| usage | object | N | - | - | - | {"total_tokens":24,"prompt_tokens":8,"completion_tokens":16} |
Code examples
cURLrequest.sh
curl -X POST "https://api.dreamto.ai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6.2-astra",
"messages": [
{
"content": "Hello, world",
"role": "user"
}
],
"system_instruction": "You are a rigorous assistant.",
"temperature": 0.7,
"max_tokens": 4096,
"stream": false,
"response_format": {
"type": "json_object"
},
"tools": [],
"tool_choice": "auto",
"reasoning_effort": "medium",
"verbosity": "medium"
}'