
TL;DR
A practical guide to choosing GPT-5.6 Sol, Terra, and Luna, using programmatic tool calling, caching, and the multi-agent beta in production.
Last updated: July 9, 2026
OpenAI's GPT-5.6 release is a family, not one model with three price points. Sol is the frontier tier for difficult professional work, Terra is the cost-and-capability middle, and Luna is optimized for high-volume workloads. The useful developer question is therefore not “which model is smartest?” It is “which tier should handle each step of this workflow?”
This guide focuses on the API surface and the engineering decisions around it. OpenAI says the family is generally available in the Responses API, with a 1.05 million-token context window, up to 128K output tokens, and support for functions, web search, file search, and computer use. All three tiers accept the same model-generation inputs, so a router can change cost and capability without redesigning every prompt.
| Model | API model ID | Best fit | Input / output per 1M tokens | Context / max output |
|---|---|---|---|---|
| GPT-5.6 Sol | gpt-5.6-sol (alias gpt-5.6) | Complex coding, research, long-running professional workflows | $5 / $30 | 1.05M / 128K |
| GPT-5.6 Terra | gpt-5.6-terra | Strong everyday agents and balanced workloads | $2.50 / $15 | 1.05M / 128K |
| GPT-5.6 Luna | gpt-5.6-luna | High-volume classification, extraction, and routine transformations | $1 / $6 | 1.05M / 128K |
The models expose reasoning effort from none through max, according to the model catalog. That gives you two independent controls: tier selects the model's capability and economics, while effort controls how much work it should invest for a request. Treat both as runtime policy, not constants buried in application code.
OpenAI reports results across coding, knowledge work, computer use, science, and cybersecurity evaluations. Those are OpenAI-reported benchmarks, not a substitute for your own task-level evals. The practical signal is consistency: the release emphasizes fewer tokens, fewer model turns, and lower estimated cost for comparable work, especially when the model can coordinate tools instead of narrating every intermediate step.
Start with Luna for work that is repetitive, bounded, and easy to grade. Examples include normalizing records, assigning a support category, extracting fields into a schema, or drafting a first pass that will always be reviewed. Move to Terra when the task has several dependent steps, ambiguous context, or a meaningful tool call. Use Sol when failure is expensive, the work spans many files, or the agent must plan, execute, inspect, and revise a result.
| Workflow step | Default tier | Escalate when |
|---|---|---|
| Triage and routing | Luna | The input is ambiguous or high impact |
| Retrieval and synthesis | Terra | Sources conflict or the context is unusually broad |
| Code change with tests | Terra | The change crosses subsystems or needs visual inspection |
| Security review or complex debugging | Sol | Keep Sol when the risk or blast radius is high |
| Final artifact polish | Sol or Terra | Use Sol for design-sensitive, multi-file output |
Log the selected tier, effort, tool calls, latency, token counts, and evaluator result. A router should be able to learn from those traces. In many systems, the cheapest path is not “always Luna”; it is Luna for the easy majority, with a clear escalation path when a grader or guardrail says the result needs another pass.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 9, 2026 • 5 min read
Jul 9, 2026 • 8 min read
Jul 9, 2026 • 7 min read
Jul 9, 2026 • 5 min read
The Responses API is the common surface for the GPT-5.6 family. A minimal request can select a model and provide an input, while tools are attached as capabilities your application is willing to expose. Keep the example below deliberately generic: use the current SDK and Responses API reference for the exact language-specific types and authentication setup.
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.responses.create({
model: "gpt-5.6-terra",
input: "Summarize the deployment failures in the attached incident notes.",
tools: [
{ type: "file_search" },
{
type: "function",
name: "create_ticket",
description: "Create an incident ticket",
strict: true,
parameters: {
type: "object",
properties: {
title: { type: "string" },
},
required: ["title"],
additionalProperties: false,
},
},
]
});
console.log(response.output_text);
The important architectural choice is ownership. Your server should authorize each function, validate arguments, enforce timeouts, and record the result. The model can choose a tool, but it should not become your permission system. For web, file, and computer-use tools, define the data boundary and retention policy just as carefully as you would for a human operator.
GPT-5.6 introduces programmatic tool calling in the Responses API. Instead of returning every intermediate result to the model and asking what to do next, the model can write and run a lightweight program in memory that coordinates tools, filters intermediate data, and returns only the useful state. OpenAI describes this as compatible with Zero Data Retention because the coordination program runs in the request flow rather than requiring a persistent external workspace.
This matters when an agent must inspect many records, call several APIs, or repeatedly transform tool output. Direct tool calling can make your prompt enormous: tool result A goes back to the model, then tool result B, then a combined answer. Programmatic calling lets the workflow filter early and pass a compact summary forward. It is not a reason to remove observability. Capture the tool plan, inputs, outputs, and final decision, subject to your data policy, so you can reproduce failures.
Use it where the work is data-heavy and deterministic. For a single lookup, a normal function call is simpler. For a fan-out over hundreds of items, programmatic coordination can reduce context growth and model turns. Benchmark both paths with your real payload sizes, because token savings depend on how much intermediate data would otherwise cross the model boundary.
GPT-5.6 adds explicit cache breakpoints and a 30-minute minimum cache life. Cached input reads receive a 90% discount, while cache writes for GPT-5.6 and later are billed at 1.25 times the uncached input rate. Put stable instructions, schemas, and reference material before request-specific data, then place a cache breakpoint after the stable prefix. Do not cache user-specific secrets or content that should not persist for the cache lifetime.
Caching is most useful for agents with a large system prompt, a long policy bundle, or a repeated repository context. Measure cache hit rate and effective input cost. If a prompt changes on every request, a breakpoint adds complexity without a benefit.
ultra settingOpenAI's ultra setting coordinates four agents in parallel by default for demanding work. The API exposes a multi-agent beta that lets GPT-5.6 run concurrent subagents and synthesize their work in one request. This is promising for independent research paths, code review perspectives, or parallel file analysis, but it is not free parallelism.
Start with a single Sol or Terra agent and a reliable evaluator. Add parallel agents only when the subtasks are genuinely independent and you can define a synthesis contract. Set a budget for total tokens, tool calls, and wall-clock time. Require each subagent to return evidence, assumptions, and an uncertainty signal, then have the synthesizer resolve conflicts rather than averaging prose. Beta behavior and limits can change, so isolate the orchestration behind a feature flag and keep a single-agent fallback.
The GPT-5.6 system card describes layered safeguards, monitoring, and access controls, with additional scrutiny for high-risk cyber and biology capabilities. Your application still owns authorization, sandboxing, secret handling, and auditability. Run tools with least privilege, make destructive actions confirmable, and separate read-only research from write access. For coding agents, use disposable worktrees or sandboxes and require tests before merging.
Do not infer safety from a high benchmark score. Red-team the exact tools and data paths your product exposes. A capable model with a poorly scoped function can create more risk than a weaker model with good boundaries.
none, medium, and max effort where applicable.The result should be a model policy you can explain: Luna handles volume, Terra handles the default agent loop, and Sol handles the cases where more capability pays for itself.
gpt-5.6?The API model catalog lists gpt-5.6-sol as the model ID and gpt-5.6 as its alias. Pin the full ID when you need an explicit deployment choice, and use the alias only when its update behavior fits your release policy.
Use Terra as a sensible baseline for an agent or application workflow. Start with Sol when the task is complex or high consequence, and start with Luna when volume and cost dominate and you have a reliable grader.
No. Large context is an option, not a target. Retrieval, compaction, caching, and concise tool results usually produce lower latency and better cost than sending every available document on every turn.
No. OpenAI describes the API multi-agent capability as beta. Use it for controlled experiments with budgets, observability, and a single-agent fallback until its behavior and limits are stable for your workload.
Read next
GPT-5.6 Sol dropped on June 26, 2026 as a limited preview with government-imposed access restrictions. Here is what developers need to know about the three-tier Sol/Terra/Luna model family, pricing, availability timeline, and how to prepare your codebase for GA.
9 min readState-of-the-art computer use, steerable thinking you can redirect mid-response, and a million tokens of context. GPT 5.4 is OpenAI's most capable model yet.
8 min readDurable execution lands on Vercel. What it means for agents, long-running flows, and indie dev stacks - with code, gotchas, and where it fits the agent stack.
10 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
OpenAI's flagship. GPT-4o for general use, o3 for reasoning, Codex for coding. 300M+ weekly users. Tasks, agents, web br...
View ToolOpenAI's coding agent for terminal, cloud, IDE, GitHub, Slack, and Linear workflows. Reads repos, edits files, runs comm...
View ToolOpenAI's latest flagship model. Major leap in reasoning, coding, and instruction following over GPT-4o. Powers ChatGPT P...
View ToolOpenAI's open-source terminal coding agent built in Rust. Runs locally, reads your repo, edits files, and executes comma...
View ToolConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsInstall Ollama and LM Studio, pull your first model, and run AI locally for coding, chat, and automation - with zero cloud dependency.
Getting StartedStep-by-step guide to building an MCP server in TypeScript - from project setup to tool definitions, resource handling, testing, and deployment.
AI Agents
The video reviews OpenAI’s newly released GPT 5.4, highlighting access tiers (GPT 5.4 Thinking in ChatGPT Plus/Teams/Pro/Enterprise and GPT 5.4 in the $200/month tier) and API availability. It covers

Getting Started with OpenAI's New TypeScript Agents SDK: A Comprehensive Guide OpenAI has recently unveiled their Agents SDK within TypeScript, and this video provides a detailed walkthrough...

OpenAI's New GPT Image Model API📸 Today OpenAI released their new GPT Image one model via API! 🌟 Last month, ChatGPT introduced Image Generation, and it quickly became a hit with over...

GPT-5.6 Sol dropped on June 26, 2026 as a limited preview with government-imposed access restrictions. Here is what deve...

State-of-the-art computer use, steerable thinking you can redirect mid-response, and a million tokens of context. GPT 5....

OpenAI is consolidating its desktop apps, not merging ChatGPT and Codex into one indistinguishable product. Here is how...

GPT-5.4 ships state-of-the-art computer use, steerable thinking, and a million-token window. Here is the implementation...

GPT-5.5 and 5.5 Pro hit the API on April 24. Here is what changes for builders: pricing, agentic tasks, tool-use, and th...

OpenAI is drawing a line in the sand. GPT-5 Codex is not an API release.

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.