GPT-6.2 API guide: Sol and Astra, prices and requests
GPT-6.2 Sol and Astra on DreamTo: what each model is for, context limits, per-million-token prices, and Chat Completions and Responses request examples.

On this page
GPT-6.2 is on DreamTo as two models: GPT-6.2 Sol, the everyday reasoning model, and GPT-6.2 Astra, the one for the hardest projects. Both take text and image input, have a 1.05M-token context window, return up to 128K output tokens, and are called through the OpenAI-compatible Chat Completions and Responses endpoints with a DreamTo API key.
This guide covers what the model catalog says each model is for, what they cost, and the requests themselves. The code samples read the key from $DREAMTO_API_KEY and use the base URL https://api.dreamto.ai.
Sol and Astra side by side#
The model IDs are gpt-6.2-sol and gpt-6.2-astra. The catalog calls Sol the lower-cost, everyday model and Astra the most capable GPT-6.2 model, aimed at science, law, finance and complex engineering. The API docs describe the same split: in the GPT-6 family Astra is the most capable tier and Sol is the flagship workhorse.
| GPT-6.2 Sol | GPT-6.2 Astra | |
|---|---|---|
| Model ID | gpt-6.2-sol | gpt-6.2-astra |
| Role | Efficient everyday reasoning | Frontier reasoning for the hardest projects |
| Input | Text and image | Text and image |
| Context window | 1.05M tokens | 1.05M tokens, up to 922,000 of them input |
| Max output | 128K tokens | 128K tokens |
| Reasoning effort | Cannot be set to none | low, medium, high, xhigh |
| Function calling | Yes | Yes |
| Endpoints | Chat Completions, Responses | Chat Completions, Responses |
What the catalog says Sol is for#
The catalog describes Sol as handling multistep agentic workflows, direct writing and changes in existing codebases with fewer output tokens. It says Sol nearly matches Astra on merge-ready code changes and writes with less filler. The use cases it lists:
- Turn review notes into migration tasks: affected files, unresolved decisions and a regression check for each review comment.
- Consolidate feedback across channels: group numbered tickets and interview notes around reproducible problems, then write one backlog card per group.
- Review release communications: build a fact sheet of user-facing changes first, then write the release notes and internal talking points from it.
- Write a regression report that separates observed facts from hypotheses and includes the shortest known reproduction.
What the catalog says Astra is for#
Astra's entry lists complex engineering reasoning, synthesis across source documents, and hard cases that need review. Its use cases are planning jobs with many dependencies:
- Rehearse a cross-team upgrade from service boundaries and a dependency graph.
- Split a legacy interface into a migration sequence with an owner, compatibility period, rollback point and verification command for every step.
- Draft a decision memo with source references and unverified assumptions.
- Design a phased rollout with a stop threshold and rollback owner per phase.
The catalog also notes that OpenAI calls Astra its strongest cyber model, so higher-risk security help is more restricted. If your product depends on security-related answers, test those prompts before you commit to Astra.
Prices: two tiers by input length#
Both models bill per token, and the rate depends on the input length of the request: one set of rates applies up to 272K input tokens and a higher set above that. The table shows the rates in the catalog as of December 2026, per 1M tokens, with the 75% discount the catalog currently shows for both models already applied. Prices and discounts change, and the prices page has the current numbers.
| Per 1M tokens | Sol, input ≤ 272K | Sol, input > 272K | Astra, input ≤ 272K | Astra, input > 272K |
|---|---|---|---|---|
| Input | $0.5 | $1 | $2 | $4 |
| Cache read | $0.025 | $0.05 | $0.1 | $0.2 |
| Cache write | $0.625 | $1.25 | $2.5 | $5 |
| Cache write (12h) | $1.25 | $2.5 | $5 | $10 |
| Output | $2.5 | $3.75 | $10 | $15 |
Astra costs four times as much as Sol on every line, in both tiers. Within one model, going past 272K input tokens doubles the input and cache rates and raises the output rate by half, so both catalog entries advise estimating the charge before a request gets that long.
Chat Completions requests#
The docs call Chat Completions the most widely used chat protocol for language models. The OpenAI SDKs connect by changing the base URL, and so do frameworks such as LangChain and LlamaIndex.
curl "https://api.dreamto.ai/v1/chat/completions" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.2-sol", "messages": [ {"role": "system", "content": "You write short, factual engineering summaries."}, {"role": "user", "content": "Explain what a rollback point is in a migration plan, in three sentences."} ] }'Put the system prompt in a system message. The reply is a chat.completion object with the text in choices[0].message.content and the token counts in usage.
Reasoning effort and verbosity#
reasoning_effort sets how much the model reasons before it answers. For Astra the catalog lists low, medium, high and xhigh as the levels verified to work, and says unlisted levels are rejected upstream. It also lists verbosity for Astra with low, medium and high, where low is more concise, and notes that this parameter is not guaranteed for other models in the series.
curl "https://api.dreamto.ai/v1/chat/completions" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.2-astra", "reasoning_effort": "high", "verbosity": "low", "messages": [ {"role": "user", "content": "Here are two interface contracts and a caller inventory. List the effect on each caller and one test per change."} ] }'Sol takes reasoning_effort too; the API reference's own example sends high to gpt-6.2-sol. The catalog says Sol's reasoning cannot be set to none, and suggests starting at low or medium and comparing quality, time and usage on a fixed set of cases before going higher. When you migrate a client, check what it sends by default, because a request that asks for no reasoning is rejected.
Models do not all accept the same parameters. The docs give temperature as one that reasoning models reject, and say an unsupported parameter is answered with a 400. The catalog's parameter list for both models still includes temperature, next to max_tokens, response_format, tools and tool_choice, so test sampling settings on a small request before you depend on them. The API reference also marks max_tokens as deprecated in favor of max_completion_tokens, which counts reasoning tokens as well as visible output.
Streaming#
Add "stream": true and the reply arrives as server-sent events. Each frame is a chat.completion.chunk and the last one is data: [DONE]. The docs say the final chunk carries usage; the streaming example in the API reference also sets stream_options.include_usage to ask for it.
import osfrom openai import OpenAIclient = OpenAI( base_url="https://api.dreamto.ai/v1", api_key=os.environ["DREAMTO_API_KEY"].strip(),)stream = client.chat.completions.create( model="gpt-6.2-sol", messages=[{"role": "user", "content": "Write a four-line poem about autumn."}], stream=True,)for chunk in stream: if chunk.choices and chunk.choices[0].delta.content: print(chunk.choices[0].delta.content, end="")Image input#
An image goes in an image_url content part next to the text, as an image URL or a Base64 data URL. The catalog's suggestion for Sol is to pair an interface screenshot with the written ticket for the same issue, and to ask the model to identify the relevant control and state before it writes the note.
curl "https://api.dreamto.ai/v1/chat/completions" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.2-sol", "messages": [ { "role": "user", "content": [ {"type": "text", "text": "Ticket: the Save button does nothing after editing the title. Which control and state in this screenshot match the ticket? Then write a three-line note for an engineer."}, {"type": "image_url", "image_url": {"url": "https://your-cdn.example.com/screenshot.png"}} ] } ] }'Function calling#
Tools go in the tools array. The catalog describes tool_choice as auto, none or a specific tool.
import jsonimport osfrom openai import OpenAIclient = OpenAI( base_url="https://api.dreamto.ai/v1", api_key=os.environ["DREAMTO_API_KEY"].strip(),)tools = [ { "type": "function", "function": { "name": "create_backlog_card", "description": "Create one backlog card for a group of related tickets.", "parameters": { "type": "object", "properties": { "title": {"type": "string"}, "ticket_ids": {"type": "array", "items": {"type": "string"}}, "reproduction": {"type": "string"}, }, "required": ["title", "ticket_ids"], }, }, }]completion = client.chat.completions.create( model="gpt-6.2-sol", messages=[ { "role": "user", "content": "T-101 and T-117 both report that exports time out above 10,000 rows. Create a backlog card.", } ], tools=tools, tool_choice="auto",)message = completion.choices[0].messagefor call in message.tool_calls or []: print(call.function.name, json.loads(call.function.arguments))The model returns tool_calls when it wants the function run. Run it yourself, send the result back in a role: tool message that carries the call's tool_call_id, and call the endpoint again to get the final answer.
Responses requests#
Responses is OpenAI's newer interface for the GPT family. The input is a string or a list of messages, images and tool results, and the output is a list of typed items: messages, reasoning and function calls. The docs say reasoning models work best here and that the streaming events are finer-grained.
Three fields change name compared with Chat Completions. The system prompt goes in instructions, reasoning effort goes in reasoning.effort, and an image is an input_image content item.
curl "https://api.dreamto.ai/v1/responses" \ -H "Authorization: Bearer $DREAMTO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-6.2-astra", "reasoning": {"effort": "medium"}, "input": "Give a migration sequence for splitting one billing endpoint into two, with a rollback point for each step." }'With the OpenAI SDK the call is client.responses.create(...) and the reply text is in response.output_text. Streaming uses typed events: response.created, response.output_text.delta and finally response.completed, which carries the complete Response object and usage. This sample reuses the client from the streaming example above.
stream = client.responses.create( model="gpt-6.2-sol", input="Write a four-line poem about autumn.", stream=True,)for event in stream: if event.type == "response.output_text.delta": print(event.delta, end="")Function calling works here as well, with a flatter shape: each tool is {"type": "function", "name": ..., "parameters": ...}, the model returns a function_call item in output, and you send the result back as a function_call_output item.
What Responses does not do on DreamTo#
The docs list four limits:
- Only
POST /v1/responsesis available. Retrieving, deleting or cancelling a response, and theinput_tokensandcompactendpoints, are not provided. - Do not rely on
previous_response_id,conversationorbackground. Send the whole conversation ininputwith every request. - For multi-turn reasoning, pass the items of the previous
output, includingreasoning, back in the nextinputunchanged. - Use function calling (
type: function) for tools. Built-in tools hosted by OpenAI, such as web search, file search, code interpreter and computer use, are not guaranteed to be available.
Chat Completions is stateless in the same way: conversations are not stored, so store and the endpoints that list or delete stored completions are not available.
Error handling#
Chat Completions and Responses return the same error structure with a real HTTP status. Branch on the status first, then on error.code.
| HTTP | error.code | What to do |
|---|---|---|
| 400 | invalid_request | Malformed JSON, a missing field, or a parameter the model does not support. Fix the request as message says |
| 401 | unauthorized | Check the API key header |
| 402 | insufficient_balance | Top up and retry |
| 403 | forbidden | The API key is not allowed to use the model. Contact DreamTo to enable access |
| 404 | not_found | Check the model string |
| 429 | rate_limit_exceeded | Back off and retry |
| 500 | api_error | Retry later |
| 502 / 503 / 504 | service_unavailable | Retry later |
Parameter-validation errors that come straight from the model side may carry only code and message, and code may be the numeric status, so rely on the HTTP status and log the X-Request-Id response header. When a streamed request fails after streaming has started, the error appears in the stream and the HTTP status stays 200.
More detail is in the error reference, Authentication, and the Chat Completions and Responses pages.
Long inputs and prompt caching#
The 1.05M-token window is meant for work that depends on links across documents: related source files, specifications, interview notes. Three habits from the catalog tips keep long requests affordable and checkable:
- Send only the material relevant to the task. Past 272,000 input tokens the request is billed in the higher tier.
- Keep terminology, format rules and a passing example at the start of the prompt and append the changing data after them. Then check the cached input in the returned
usagebefore you attribute a cost difference to reuse:prompt_tokens_details.cached_tokensin Chat Completions,input_tokens_details.cached_tokensin Responses. - Ask for original record IDs and evidence locations in the output, so a reviewer can verify each finding.
For setup around these requests, see One API key for every model and Use DreamTo models in Cursor, Cline, Codex and OpenCode.
Choosing between Sol and Astra#
Start with Sol. It costs a quarter of Astra's rate on every line, and release notes, feedback consolidation and regression reports are the jobs the catalog lists for it. Send a request to Astra when it is the work the catalog assigns to that model: reasoning over interface contracts and their callers, tracing disagreements across source documents, or decisions that need traceable evidence.
To decide with data, follow the Astra tips: pick examples at different difficulty levels, run the same set at each effort level, and record correctness, elapsed time and token use. The same set works for comparing the two models, because switching is a change to the model string. You can try either one in its playground first: Sol and Astra. Other language models are on the models page.
FAQ#
What is the difference between GPT-6.2 Sol and GPT-6.2 Astra?#
Sol is the lower-cost, everyday model for agentic workflows, writing and changes in existing codebases. Astra is the most capable GPT-6.2 model, aimed at science, law, finance and complex engineering, at four times the price per token. Both have a 1.05M-token context window and 128K max output.
How do I call GPT-6.2 through the DreamTo API?#
Send a POST to https://api.dreamto.ai/v1/chat/completions or https://api.dreamto.ai/v1/responses with the header Authorization: Bearer $DREAMTO_API_KEY and model set to gpt-6.2-sol or gpt-6.2-astra. The OpenAI SDKs work once the base URL is https://api.dreamto.ai/v1.
How much does the GPT-6.2 API cost?#
As of December 2026, for requests up to 272K input tokens, the catalog shows Sol at $0.5 per 1M input tokens and $2.5 per 1M output tokens, and Astra at $2 per 1M input tokens and $10 per 1M output tokens, with a 75% discount applied. Longer requests use higher rates. See the prices page for current numbers.
Does GPT-6.2 support images and function calling?#
Yes. Both models take text and image input and support function calling through the tools array. Built-in tools hosted by OpenAI, such as web search, are not guaranteed to be available.
Can I turn reasoning off on GPT-6.2 Sol?#
No. The catalog says Sol's reasoning cannot be set to none, so a request that sends that value is rejected. Start with low or medium. For Astra, the catalog lists low, medium, high and xhigh.
Can I use previous_response_id with the Responses endpoint?#
Not on DreamTo. Only POST /v1/responses is available, so send the whole conversation in input with every request and pass the previous reasoning items back unchanged.


