GPT-6.2 API Guide: Astra, Sol and Moving From GPT-6.1
GPT-6.2 Astra and Sol in the OpenAI API: model ids, limits and prices, the instructions and prefix changes from 6.1, and the same call in the AI SDK.
Published

GPT-6.2 is two models in the OpenAI API, gpt-6.2-astra and gpt-6.2-sol. Sol costs what GPT-6.1 Sol cost, and Astra costs less than GPT-6 Astra. Swapping the model id takes one line. The real work is in how your app builds the next turn. From 6.2 on, the Responses API drops the model's earlier reasoning when your code edits the conversation behind it, and top-level instructions now come after the input.
The two models, and which job each one is for
OpenAI added both models to the API on November 17, 2026 (API changelog). In OpenAI's words, Astra is "our most capable model for your hardest projects, from start to finish." Sol is "our go-to model for everyday work, from coding to powering agents at scale." The changelog puts the split in developer terms: Astra "for demanding reasoning and coding tasks", Sol "for everyday coding and agent workflows." For what launched outside the API, see GPT-6.2 explained.
As of November 2026, OpenAI's model pages for Astra and Sol list the same limits for both. They differ only in price and knowledge cutoff.
Both pages list the same Responses API tools as supported: web search, file search, image generation, code interpreter, hosted shell, apply patch, skills, computer use, MCP and tool search. Both can hand work to subagents through the Multi-agent beta. Function calling, structured outputs and streaming are supported on both. Rate limits are also identical: 5,000 requests and 1,000,000 tokens a minute on the Build tier, 10,000 and 4,000,000 on Launch, 15,000 and 40,000,000 on Grow.
Start a thread on Sol and escalate to Astra, never the other way. There are two reasons. First, Sol's Standard rates are a quarter of Astra's on every line: input, cached input, cache writes and output. For the same token counts, one Astra request costs as much as four Sol requests. Astra earns its price on a job only when Sol would need more than four attempts, or extra review time, to reach the same accepted result. Second, OpenAI's reasoning guide says moving to a more capable model in the same family keeps compatible reasoning, while moving to a less capable one removes it. Astra is the more capable model, so an Astra thread handed down to Sol loses its reasoning. A Sol thread handed up to Astra keeps it.
OpenAI's reasoning guide also says to "start with gpt-6.2-astra for most reasoning workloads." That is sound for a hard task someone is waiting on. For an agent running at volume, the price gap points to Sol first. GPT-6.2 Astra vs Sol works through that choice job by job, and GPT-6.2 vs Claude Fable 5.2 covers it if you are also weighing another lab.
A first request, and the settings that matter
These are two requests from OpenAI's reasoning guide: Astra at low effort, and Sol in pro mode.
curl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-6.2-astra",
"reasoning": {"effort": "low"},
"input": [
{
"role": "user",
"content": "Write a bash script that takes a matrix represented as a string with format \"[1,2],[3,4],[5,6]\" and prints the transpose in the same format."
}
]
}'curl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-6.2-sol",
"reasoning": {
"mode": "pro",
"effort": "medium"
},
"input": "Review this database migration plan and identify potential failure modes."
}'The settings worth knowing before your first deploy, as OpenAI's docs state them:
- Reasoning effort. Use
reasoning.effortin Responses andreasoning_effortin Chat Completions. Both models rejectnone. The migration guide says to start a new integration atmediumand to replacenoneorminimalwithlow. OpenAI's effort table putslowfor tool use, search and multi-step decisions where speed and cost matter, andmediumas the default for most work, agentic coding included. It keepshighfor hard debugging and deep planning, andxhighfor long runs, only "when your evals show a clear benefit." Vercel's AI SDK, which checks effort values per model, acceptslow,medium,high,xhighandmaxfor both models. - Reasoning mode.
reasoning.modeisstandardby default.prois for difficult tasks that can wait. It does more model work, so you pay for more tokens, at the model's standard rates. - Output cap.
max_output_tokenslimits everything the model generates, reasoning tokens included. Reasoning tokens are billed as output, and the ceiling is 128,000 on both models. - Sampling settings are gone. In Chat Completions, omit
temperature,top_p,logprobsandtop_logprobs. In Responses, omittemperature,top_pandtop_logprobs, and removemessage.output_text.logprobsfrominclude. - Tools need Responses. Both models answer plain Chat Completions requests, but a tool call of any kind, your own function or a hosted tool, has to go through the Responses API.
What changes in a request coming from GPT-6.1
OpenAI's migration quickstart lists the checks in this order. The last column says whether a GPT-6.1 Sol integration already does it. For the plan-by-plan view of the upgrade, see GPT-6.2 vs GPT-6.1.
Two more changes come from the "What's new" list, not the checklist, and neither shows up as an error. Editing earlier conversation items now drops reasoning (see the prefix section next). A change of safety_identifier drops it too: OpenAI names that reason end_user_mismatch. Send the same identifier on every request in a conversation, or leave it out of all of them.
Switch new conversations to 6.2 and let open ones finish on the model they started on. OpenAI's reasoning guide says persisted reasoning "can be reused only within the same model family," and OpenAI calls Astra and Sol the GPT-6.2 model family. Moving a thread across that line halfway through risks losing its earlier reasoning.
The instructions field now means "this turn only"
On GPT-6.2, the Responses API puts top-level instructions after input, past the points where a prompt can be cached. It bills those tokens at the uncached input rate on every request, "even if you repeat identical instructions." They also do not carry over with previous_response_id. Put rules that apply to every turn in a developer message as the first item of input, and keep instructions for guidance that applies to this request alone. OpenAI's example of that is asking the model to summarize its findings on the last turn of a workflow.
{
"model": "gpt-6.2-sol",
"input": [
{ "role": "developer", "content": "<your stable rules: role, tool policy, output format>" },
{ "role": "user", "content": "<the request>" }
],
"instructions": "Summarize your findings."
}The arithmetic on Sol's rates: 5,000 tokens of standing rules sent with 10,000 requests is 50 million tokens. As top-level instructions, that is $100 at the uncached $2.00 per million. Read from cache at $0.10 per million, it is $5, plus the cache write at $2.50 per million each time the prefix is written. On Astra the same two figures are $400 and $20. On models from GPT-5.6 on, a prefix must be at least 1,024 visible input tokens to be cached at all.
In the Vercel AI SDK, the system prompt goes to reasoning models as a developer message by default (the provider's systemMessageMode). Standing rules written there land where 6.2 wants them.
Keep the prefix unchanged
A reasoning item's prefix is everything in the conversation before it. If your code rewrites any of it, for example by shortening an old tool result, editing the first developer message or replacing old turns with a summary, the API drops the reasoning items that follow. "Answer quality can decline and the model may use more tokens to repeat earlier work," OpenAI's guide says. Some of these edits are easy to make without noticing: changing tools or text.format between requests counts too.
Developer rules, then the user's request
The rules are rewritten in place
input_transformations: reasoning removed, prefix_mismatch
Developer rules, then the user's request
New rules are added after the history
Earlier reasoning kept, prefix still cacheable
The same guide lists an append-only way for each common edit:
Here is the effort change as OpenAI writes it. The item goes before the next user message, and the new effort holds until another update replaces it:
{
"type": "configuration_update",
"reasoning": {
"effort": "high"
}
}Draft a database migration plan.
response saved · its id goes into previous_response_id
configuration_update · effort high
Analyze the failure modes and propose rollback steps.
request-level effort still low · high applies from here on
OpenAI says effort and format updates work in standard, single-agent mode, so keep reasoning.mode at standard on threads that use them.
As of Nov 24, 2026 · Source: OpenAI, Using GPT-6.2, Keep the prefix unchanged and Reasoning models
To see whether it happened, read input_transformations in each response. It lists every reasoning item the API removed, with its id and the reason. A prefix_mismatch id matches a reasoning item in an earlier response's output, so you can find the edit that caused it. For cache misses, set prompt_cache_options.comparison_response_id to an earlier response's id and read the diagnostic reason and the cached token count. The diagnostics are best effort and cannot prove the model reused its reasoning. How to use GPT-6 prompt caching walks through the cache side.
Long jobs: a completion window, not Flex
GPT-6.2 Astra and Sol do not support Flex processing, and OpenAI says new models will not get it. For work that can wait, the background guide offers discounted completion windows, in public beta. Model token rates are 30% below Standard for a two-hour window and 40% below for an eight-hour one. This request is built from the parameters the guide names:
curl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-6.2-sol",
"input": "<the job>",
"background": true,
"service_tier": "default",
"background_options": { "completion_window": "8h" }
}'Leave stream unset or set it to false. Set service_tier to default: with auto, the request gets the discount only if the API happens to pick Standard. Save the response id, and get the result from a response.completed webhook or by polling. Windowed requests share the Batch and background rate limit. A Standard request cannot reuse a cache entry written by a windowed one, even for an identical prompt.
At those discounts, Sol's input drops from $2.00 to $1.40 on the two-hour window and $1.20 on the eight-hour one, and its output drops from $10.00 to $7.00 and $6.00. The Batch API is cheaper still at half of Standard, $1.00 and $5.00. Use Batch for independent requests you can send all at once. Use a window for an agent run where each response decides the next request: carry the same continuation_id through its follow-ups and they become eligible for higher queue priority.
What it costs, in one place
Per million tokens at Standard rates, for requests of up to 272K input tokens, as of November 2026 (pricing):
- GPT-6.2 Astra: $8.00 input, $0.40 cached input, $10.00 per 30-minute cache write, $40.00 output.
- GPT-6.2 Sol: $2.00 input, $0.10 cached input, $2.50 per 30-minute cache write, $10.00 output.
The same call through the Vercel AI SDK
Vercel's OpenAI provider added both models twice, once on each release line. @ai-sdk/openai 4.0.120, on the package's current line, shipped them on November 17. Version 3.0.145, published under the ai-v6 tag for apps still on AI SDK 6, followed on November 22. Both release notes say the same thing: "add GPT-6.2 Astra and GPT-6.2 Sol model support" (3.0.145 release). On the current line, any version from 4.0.120 has them, and npm's latest tag pointed to 4.0.123 on November 24, 2026. On AI SDK 6, update the provider to 3.0.145. For the SDK itself, start with our Vercel AI SDK guide.
The call is the same on both routes. Only the model reference and the key change.
Install ai and @ai-sdk/openai, then set OPENAI_API_KEY. This is Vercel's own example from the release:
import { openai } from '@ai-sdk/openai';
import { generateText } from 'ai';
const result = await generateText({
model: openai('gpt-6.2-sol'),
prompt: 'Describe a new holiday in one sentence.',
maxOutputTokens: 128,
maxRetries: 0,
providerOptions: { openai: { reasoningEffort: 'low' } },
});
console.log(result.text);
console.log('Token usage:', result.usage);
console.log('Finish reason:', result.finishReason);openai(modelId) calls the Responses API by default (since AI SDK 5), so tool calls work. Vercel's provider strips temperature, topP and logprobs for GPT-6 and later models and returns a warning.
Install ai, then set AI_GATEWAY_API_KEY. A plain model string takes the Gateway route, from Vercel's model page:
import { generateText } from 'ai';
const result = await generateText({
model: 'openai/gpt-6.2-sol',
prompt: 'Why is the sky blue?',
});
console.log(result.text);Add -fast to the id (openai/gpt-6.2-sol-fast) for fast mode. Vercel notes that the Gateway "does not expose every API" in the direct provider. For provider-specific options, use @ai-sdk/openai.
Two direct-provider features match the 6.2 prefix rules. To raise effort mid-conversation, add an empty system message carrying providerOptions.openai.reasoningEffortUpdate before the next user message, and set allowSystemInMessages: true on the call. The provider sends it as a configuration_update item. To check for dropped reasoning, Vercel's provider docs use GPT-6.2 Astra in their example:
const result = await generateText({
model: openai.responses('gpt-6.2-astra'),
messages,
});
console.log(result.providerMetadata?.openai?.inputTransformations);
// [{ id: 'rs_...', type: 'reasoning', action: 'removed', reason: 'prefix_mismatch' }]An empty array means nothing was removed. For a stream, await result.providerMetadata after the stream has finished.
What people get wrong
- "It accepts Chat Completions, so my tools will work." Plain text works there. Tool calls need Responses.
- "I'll set effort to
nonefor speed." The API rejects it on both models.lowis the floor. - "Flex halves the bill." Not on 6.2. Use Batch or a background window.
- "
instructionsis my system prompt." On 6.2 it covers one turn, comes after the input and is billed uncached every time. - "Routing between Astra and Sol is free." Going up from Sol keeps compatible reasoning. Going down from Astra removes it.
- "A green test suite means the migration worked." Dropped reasoning raises no error. Check
input_transformationson a real multi-turn run before you switch the default.
Questions developers ask
Is GPT-6.2 available in the API?
Yes. gpt-6.2-astra and gpt-6.2-sol have been in the Responses API and Chat Completions since November 17, 2026. Tool calls need the Responses API.
Can I fine-tune GPT-6.2?
No. Both model pages list fine-tuning as not supported.
Can I use GPT-6.2 through a cloud provider?
OpenAI's model pages list Google Cloud, in private preview, under the same ids. Vercel's AI Gateway page for Sol lists OpenAI, Azure and Bedrock as providers serving it.
Are there special versions of GPT-6.2?
On November 24, 2026, OpenAI released healthcare configurations, gpt-6.2-astra-healthcare and gpt-6.2-sol-healthcare. Each pairs the model with a harness built for clinical questions, and its web search uses a dedicated index of medical sources. The pricing page also lists gpt-6.2-astra-law. At Standard short-context rates, each costs the same as its base model, on promotional pricing that runs at least through December 31, 2026.
I use GPT-6.2 in Codex, not the API. Does this apply?
The request rules apply only to code that calls the API. In Codex and ChatGPT your plan sets what you get. See How to Use GPT-6.2 for access by plan and Codex usage limits for the limits.
Best AI model for coding in 2026
Where GPT-6.2 sits among the models developers pick for coding work.
- Published
- Category
- Build







