PL Log inOpen Studio
CatalogVideo36Image31Audio5Chat & code27New AI modelsCost calculatorAI agents

Chat & code OpenAI · 2026-11

GPT-6.2 Sol API

OpenAI's everyday GPT-6.2 model - for coding and agent workflows, cheaper than Astra

Input$2.02per 1M tokens
Output$10.13per 1M tokens
Cached input$0.101per 1M tokens

1,000 chatbot replies$7.091,500 input + 400 output tokens each

Prompt caching works through the API: repeated context is billed at the cached rate. Failed requests cost nothing.

Compare with other chat models →

GPT-6.2 Sol is the GPT-6.2 model OpenAI positions for everyday coding and multi-step work, below GPT-6.2 Astra and the successor to GPT-6.1 Sol. It takes text and images, has a 1,050,000-token context window (up to 922,000 input tokens) and returns up to 128,000 tokens. You set the reasoning depth with reasoning_effort: low, medium (default), high or xhigh. You can force a JSON schema with response_format, and streaming works too.

max_completion_tokens includes reasoning tokens, and those bill as output - with a very low cap you may get only reasoning and no visible answer.

Best for

  • Everyday coding: fixes, tests, refactoring
  • Long-context analysis of documents and reports
  • Strict JSON output for automation
  • Image tasks: screenshots, diagrams, charts

How to call it

OpenAI SDK with a different base URL:

python
from openai import OpenAI

client = OpenAI(base_url="https://jantaris.com/v1", api_key="sk-jt-...")
resp = client.chat.completions.create(
    model="gpt-6.2-sol",
    reasoning_effort="medium",
    messages=[{"role": "user", "content": "Find the bug in this function and propose a fix."}],
)
print(resp.choices[0].message.content)

FAQ

What is the GPT-6.2 Sol API price?

$2.02 / $10.13 per 1M tokens. Prompts over 272K input tokens are billed at the higher long-context rate for the whole request.

Sol or Astra?

Start with Sol. Use GPT-6.2 Astra for the tasks Sol cannot handle - run the same task on both and compare the output and cost in your dashboard.

Does tool calling work?

Not on this endpoint - OpenAI offers tools for the GPT-6.2 series only through the Responses API. For agent loops with tools use GPT-5.6 Sol.

Does it accept images?

Yes, as image_url parts in a message.

How to call GPT-6.2 Sol via API

from openai import OpenAI

client = OpenAI(base_url="https://jantaris.com/v1", api_key="sk-jt-...")
resp = client.chat.completions.create(
    model="gpt-6.2-sol",
    messages=[{"role": "user", "content": "Write a haiku about Baltic amber."}],
)
print(resp.choices[0].message.content)