GPT-6.2 Sol API

Solve coding and agentic tasks from text and image input with adjustable reasoning effort

Modalities
Image, TextText
In / Out price
$2/$10per 1M
Context window
1.05M tokens
Released
Nov 17, 2026

GPT-6.2 Sol overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 17, 2026.

SVG of a pelican riding a bicycle, written by GPT-6.2 Sol through AI/ML API

GPT-6.2 Sol by OpenAI

OpenAI built GPT-6.2 Sol as an efficient reasoning model for everyday work. OpenAI says it is smarter and more efficient than GPT-6.1 Sol.

GPT-6.2 Sol specs

Model ID
openai/gpt-6.2-sol
Developer
OpenAI
Context window
1,050,000 tokens
Max output
128,000 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Reading the reported scores

OpenAI's GPT-6.2 system card reports 55.40 percent for GPT-6.2 Sol on a single-attempt evaluation. The same report gives a 50.5 percent mean code execution rate at the maximum reasoning setting.

The model supports tools, parallel tool calls, structured output and file input. Use structured output when your code parses the reply, and check each tool call result before the next step of an agent loop.

Set reasoning effort first

Reasoning effort accepts low, medium or high. Lowering it gives faster responses and uses fewer tokens on reasoning, so it is the main control for latency on this endpoint.

Start with medium on your real prompts. Move to low for simple requests where speed matters, and move to high only if the answers on hard tasks are not good enough.

Sol or Astra

OpenAI recommends GPT-6.2 Sol for complex work when GPT-6.2 Astra is not required. GPT-6.2 Astra is the flagship model for the hardest coding, agentic and professional work.

Run the same set of prompts on both models and keep Sol unless Astra fixes failures you can measure.

Use cases

Fix bugs and write features in a codebase by sending source files and a task description.

Run an agent that calls tools in parallel and checks each result before continuing.

Read a screenshot or diagram together with a text question and answer in text.

Extract fields from long documents into structured output for a downstream system.

Capabilities

  • File input
  • Reasoning
  • Streaming
  • Structured outputs
  • Function calling
  • Vision

GPT-6.2 Sol API pricing

GPT-6.2 Sol pricing in US dollars
UsagePriceUnit
Input$21M tokens
Output$101M tokens
Cached input$0.11M tokens

Prices from the AI/ML API price list, checked on Nov 17, 2026.

GPT-6.2 Sol vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GPT-6.2 Sol$2$10
GPT-6.1 Terra$1$5
GPT-6.1 Sol$2$10
GPT-6 Sol$2$10
GPT-6.1 Terra Pro$2.116$10.58

How to use the GPT-6.2 Sol API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-6.2-sol",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

GPT-6.2 Sol FAQ

How much does GPT-6.2 Sol cost?

GPT-6.2 Sol costs $2 / 1M tokens for input and $10 / 1M tokens for output on AI/ML API. Cached input is billed at $0.1 / 1M tokens.

Can GPT-6.2 Sol read images?

Yes. It accepts text and image input and returns text. It does not output images or audio.

Which request option changes how long the model thinks?

Reasoning effort, with the values low, medium and high. Lower values give faster responses and use fewer reasoning tokens.

How long can a single reply be?

The maximum output is 128,000 tokens. Streaming is supported, so you can show text as it is generated.

When should I choose GPT-6.2 Astra instead?

OpenAI recommends Sol for complex work when Astra is not required. Try Astra on the hardest coding, agentic and professional tasks where Sol falls short in your own tests.

What is the GPT-6.2 Sol model ID?

Use openai/gpt-6.2-sol as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.

What is the context window of GPT-6.2 Sol?

GPT-6.2 Sol accepts up to 1,050,000 tokens of context and returns up to 128,000 output tokens.

Start building with GPT-6.2 Sol

GPT-6.2 Sol API

openai/gpt-6.2-sol

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-6.2-sol",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'