GPT-6 Sol API

openai/gpt-6-sol
GPT-6 Sol is OpenAI's model for complex coding and agentic workflows, sitting below the flagship GPT-6 Astra with the same 1,050,000-token context window at a fifth of the price.
Context
1M tokens
Input
$2.6 / 1M tokens
Output
$13 / 1M tokens
Released
Sep 22, 2026

Overview

What Is GPT-6 Sol?

GPT-6 Sol is the middle tier of OpenAI's GPT-6 family: below the flagship GPT-6 Astra and above the fast, cheap GPT-6 Luna. It is aimed at complex coding and agentic workflows — the work where a model has to plan, call tools, read results and keep going, rather than answer once and stop.

All three share the same 1,050,000-token context window. What separates them is depth and price: Sol costs a fifth of Astra and roughly twenty times Luna, which makes the choice between them a question about how hard the task actually is.

Technical Reference

  • Developer: OpenAI
  • Model ID: openai/gpt-6-sol
  • Release date: 22 September 2026
  • Endpoint: POST /v1/chat/completions
  • Context window: 1,050,000 tokens
  • Max output: 128,000 tokens
  • Modalities: Image, Text → Text
  • Reasoning effort: none to max, medium by default
  • Capabilities: function calling, parallel tool calls, structured outputs, vision, web search, prompt caching

API Pricing

  • Input: $2.6 / 1M tokens
  • Output: $13 / 1M tokens
  • Cached input: $0.26 / 1M tokens
  • Cache write: $3.25 / 1M tokens

What That Costs In Practice

A chat-sized exchange of 1,000 input and 300 output tokens runs about $0.0065 — roughly 150 calls per dollar. A code-review request with 50,000 tokens of repository context and a 2,000-token reply costs about $0.156, so a dollar covers around six of them.

Prompt caching is where the real money is on agentic work. Cached input is $0.26 against $2.6 — a tenth — while writing to the cache costs $3.25 once. A twenty-step agent replaying a 30,000-token preamble pays about $1.56 without caching and about $0.25 with it, after a one-time write of roughly $0.10. The break-even lands at the second step, so for anything that loops it is close to free money.

Reasoning Effort Is A Dial, Not A Switch

Sol runs from none to max, defaulting to medium. That control matters more than it sounds: reasoning tokens bill at the output rate, so effort is the main lever on both latency and cost. Routine edits, classification and formatting rarely need more than low; architecture decisions, tricky debugging and multi-file refactors are where high or max pays for itself. Leaving everything at max is the most common way to overspend on a model like this.

The 1.05M Context Window

1,050,000 tokens is on the order of 3,000 pages, or a substantial codebase with its history and documentation. For agents, the practical win is that a long transcript does not need to be summarised away every few steps — the point where long runs usually start contradicting themselves. For code work, it means the model can hold the actual call sites rather than a retrieved guess at them.

Output is capped at 128,000 tokens, which is enough for a large diff or a long structured document in a single reply.

Where GPT-6 Sol Makes The Most Sense

Complex coding. Multi-file changes, migrations and debugging where the model needs both the code and the surrounding context to be right rather than plausible.

Agentic pipelines. Planning, tool calls, parallel tool calls and structured outputs, with web search available when the answer is not in the prompt.

Vision-adjacent work. Screenshots, diagrams and design mockups alongside the prompt — UI work that would otherwise have to be described in words first.

Long-context analysis. Research, due diligence and audits across document sets that would need a retrieval layer elsewhere.

When To Reach For Something Else

For high-volume, well-specified work — classification, extraction, short rewrites — GPT-6 Luna at $0.13 / $0.65 does the same job at a twentieth of the price. For the hardest problems, where one correct answer is worth more than the difference in bill, GPT-6 Astra at $13 / $65 is the better trade. Sol is the middle: strong enough for real engineering, cheap enough to run inside a loop.

GPT-6 Sol vs Astra vs Luna

All three carry the same 1,050,000-token window, so the comparison is about capability per dollar rather than capacity. Astra is the flagship at $13 / $65 per 1M tokens; Sol sits at $2.6 / $13; Luna is the fast tier at $0.13 / $0.65. A common pattern is to route by task: Luna for the mechanical steps, Sol for the ones that need judgement, Astra reserved for the few that genuinely stall the other two.

Uptime and performance

  • Uptime (24h): 60.0%
  • Uptime (7d): 94.0%
  • Availability (24h): 28.0%
  • Error rate (24h): 72.0%
  • End-to-end latency (24h median): 1.2s
  • Time to first token (24h median): 1.2s
  • Throughput (24h median): 15.9 tok/s

Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.

Use cases

Complex coding. Multi-file refactors, migrations and debugging where the model needs the real call sites, not a retrieved approximation. The 1,050,000-token window holds the code and its history; the 128,000-token output ceiling leaves room for a large diff in one reply.

Agentic workflows. Planning loops with function calling, parallel tool calls and structured outputs, plus web search when the answer is not in the prompt. Prompt caching at a tenth of input price is what keeps a twenty-step loop affordable.

Multimodal engineering work. Screenshots, diagrams and mockups in the same request as the prompt — UI fixes and design-to-code work without describing the picture first.

Long-context research. Audits, due diligence and literature review across document sets large enough that a retrieval pipeline would otherwise be mandatory.

How to use GPT-6 Sol API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to openai/gpt-6-sol.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/chat/completions",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "openai/gpt-6-sol",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ]
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "openai/gpt-6-sol",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-6-sol","messages":[{"role":"user","content":"Hello!"}]}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

GPT-6 Sol API Pricing

TypePrice
Input
$2.6 / 1M tokens
Output
$13 / 1M tokens
Cached input
$0.26 / 1M tokens

Cache writes are billed at $3.25 / 1M tokens.

GPT-6 Sol Benchmarks

BenchmarkScoreWhat it measuresSourceRetrieved
Intelligence
47.5
Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial AnalysisSourceSeptember 24, 2026

Use cases

Complex coding. Multi-file refactors, migrations and debugging where the model needs the real call sites, not a retrieved approximation. The 1,050,000-token window holds the code and its history; the 128,000-token output ceiling leaves room for a large diff in one reply.

Agentic workflows. Planning loops with function calling, parallel tool calls and structured outputs, plus web search when the answer is not in the prompt. Prompt caching at a tenth of input price is what keeps a twenty-step loop affordable.

Multimodal engineering work. Screenshots, diagrams and mockups in the same request as the prompt — UI fixes and design-to-code work without describing the picture first.

Long-context research. Audits, due diligence and literature review across document sets large enough that a retrieval pipeline would otherwise be mandatory.

GPT-6 Sol vs other models

ModelInputOutputContextBest for
GPT-6 Sol
This page
$2.6 / 1M tokens
$13 / 1M tokens
1M tokens
Everyday coding and agents
$13 / 1M tokens
$65 / 1M tokens
1M tokens
Agentic workflows and computer use
$5.2 / 1M tokens
$26 / 1M tokens
1M tokens
Frontier reasoning + agents
$2.6 / 1M tokens
$15.6 / 1M tokens
1M tokens
Everyday coding + agents

Frequently asked questions

Yes. GPT-6 Sol is available on AI/ML API through the OpenAI-compatible chat completions endpoint under the model ID openai/gpt-6-sol.

On AI/ML API, GPT-6 Sol costs $2.6 per million input tokens, $13 per million output tokens and $0.26 per million cached input tokens. Cache writes are billed at $3.25 per million.

GPT-6 Astra is the flagship of the GPT-6 family, at $13 / $65 per million tokens. GPT-6 Sol sits below it at $2.6 / $13 with the same 1,050,000-token context window, for coding, reasoning and agentic work that does not need the heaviest tier.

Send a request to https://api.aimlapi.com/v1/chat/completions with openai/gpt-6-sol as the model id. It is the same OpenAI-compatible endpoint every other GPT model on AI/ML API uses.

Start building with GPT-6 Sol

Get API Key
1000+ models, one API.