GPT-Image 2.6 Flare & Sunburst are liveImages from $0.025 each

GPT-5.6 Luna API

LLM

The GPT-5.6 Luna API is the fast, lowest-priced 5.6 route with 1M context, vision, and tool use.

What are we making today?

Bring an idea, a question, or a first draft.

Enter to send · Shift + Enter for a new line

01

What this model is for

The GPT-5.6 Luna API is the fast, lowest-priced 5.6 route with 1M context, vision, and tool use.

GPT-5.6 Luna is the cost tier of OpenAI's GPT-5.6 family, listed as gpt-5.6-luna and marked fast in the catalog, which puts it lowest of the three on input, output and cache-read rates. It shares the family limits: a 1,050,000-token window, 922,000 maximum input, 128,000 maximum output, text and image input, text output, and a knowledge cutoff of February 16, 2026. Medium is the API default effort; none, low, high, xhigh and max are the other five settings.

Luna earns its place on jobs a script can score, where the same shape repeats thousands of times: converting configurations, generating tests from a written specification, triaging failing checks, pulling fields out of tickets. The Responses tool list includes web search, file search, hosted shell, apply patch, computer use, MCP and structured outputs, though each client exposes its own subset. GPT-5.6 Terra is the step up when a task needs judgment, and Claude Haiku 4.5 stays the native low-cost option inside Claude Code.

Choose Luna for frequent GPT-5.6 coding iterations where responsiveness and lower token cost lead the decision.

Best-fit coding workloads

Tests from a written specification

Generate cases for a written specification, then keep only the ones that fail against the old code and pass against the new. Give the signature, the invariants and two example cases, ask for a table of inputs and expected outputs, and let your suite decide which rows survive.

Triage of failing checks

Read CI output and sort failures into flaky, environment and real. Ask for one line per failure with the file and the first line of the stack trace, run at low effort, and pass anything marked real to a stronger model with the same log attached.

Configuration conversion

Translate a batch of configuration files from one schema to another. Provide both schemas, ask for one file per response, and load every result with the real parser before writing it. Structured outputs keep the shape stable, and a diff against the original catches dropped keys.

02

Technical specification

Catalog facts and integration details verified for this route.

Model ID
gpt-5.6-luna
Context
1M
Inputs and tools
Vision · Tool use · Fast responses
API endpoint
/v1/chat/completions
Cache hit / 1M
$0.02 USD
Coding clients
Codex · Cursor · Cline · Aider

Limits to plan around

  • A green run on a narrow test is not proof: the model can satisfy the cases it was shown and still miss the rule behind them, so keep a rule-level check.
  • Codex signed in with a ChatGPT account does not advertise this id; a custom provider with an API key is a separate access path, and the two answer different questions.
  • The output ceiling is 128,000 tokens, so a large migration has to be split into patches that each fit, and each patch needs its own check.
  • Knowledge stops at February 16, 2026, and reading a long log is still a reading: a count or a timestamp can be wrong while the summary sounds right.

03

Compare nearby models

Compare workload fit and current listed token rates before choosing a route.

ModelBest forContextInputOutput
GPT-5.6 LunaThis page
gpt-5.6-luna
The cost tier for repeated, machine-checkable jobs through Codex or an OpenAI-compatible client.1M
$0.2 USD
Official price $0.2 USD
$1.2 USD
Official price $1.2 USD
GPT-5.6 Terra
gpt-5.6-terra
The step up when a task needs judgment about what the code should do, not only whether it runs.1M
$0.3 USD
Official price $2 USD
$1.8 USD
Official price $12 USD
GPT-6 Luna
gpt-6-luna
The newer fast tier, listed at lower rates with a later knowledge cutoff.1M
$0.2 USD
Official price $0.1 USD
$1.2 USD
Official price $0.5 USD
Claude Haiku 4.5
claude-haiku-4-5
Anthropic's low-cost model with a 200K window, the native pick inside Claude Code.200K
$0.28 USD
Official price $1 USD
$1.4 USD
Official price $5 USD

04

SDK quickstarts

Use one base URL and model ID from cURL, Python, or TypeScript.

Streaming chat completion
curl https://api.omniakey.com/v1/chat/completions \
  -H "Authorization: Bearer $OMNIAKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.6-luna",
    "messages": [
      {"role": "user", "content": "Review this pull request"}
    ],
    "stream": true
  }'

05

Estimate token cost

Enter expected input and output tokens to compare current listed rates.

OmniaKey estimate
$0.044
Official-rate estimate
$0.044
Estimated savings
$0.00

Estimate covers input and output tokens only. Cache usage, retries, tools, and client-side token accounting can change the final charge.

07

Sources and verification

Model facts and links were checked on 2026-10-27. Provider documentation remains the authority for upstream behavior.

Common errors

The errors OmniaKey users hit most often, from our production logs. Each message appears as the API returns it.

HTTP 400

This group only supports streaming generation requests. Set stream to true.
Cause
Some of the upstream routes for this model accept streaming requests only, and a non-streaming request reached one of them.
Fix
Set stream to true.

HTTP 403

Insufficient quota
Cause
Your OmniaKey balance has run out.
Fix
Top up your balance. The same API key works again right away.

HTTP 403

insufficient quota for pre-charge
Cause
Before a request runs, OmniaKey reserves its largest possible cost, which grows with the prompt and max_tokens. Your balance is below that amount.
Fix
Top up, or lower max_tokens.

HTTP 401

Invalid token
Cause
The request carries no API key, or a key that does not exist.
Fix
Copy the key from your dashboard again and check that your client sends it.

HTTP 503

No available channel for model <model> under group <group>
Cause
The model name does not match one OmniaKey serves, often because of a dot or a capital letter, such as claude-sonnet-5.5 for claude-sonnet-5-5. It also appears when every supplier of the model is unavailable.
Fix
Use the exact model ID, gpt-5.6-luna. If it already matches, retry later or switch models.

HTTP 524

524: A timeout occurred
Cause
No data came back for about 100 seconds, so Cloudflare closed the connection. Long answers without streaming run into this.
Fix
Set stream to true, so tokens arrive while the answer is written.

Frequently asked questions

How much does GPT-5.6 Luna cost on OmniaKey?

OmniaKey charges the official rate: $0.2 USD per 1M input tokens and $1.2 USD per 1M output tokens, in USD.

What is the context window for GPT-5.6 Luna?

The listed context window is 1M. Actual usable limits can also depend on the client and upstream request format.

Why does Codex say gpt-5.6-luna is not supported?

Codex signed in with a ChatGPT account only advertises the models listed for that login, so an API model id can be rejected there while the same id works elsewhere. Availability under a ChatGPT login and availability through an API key are separate access paths. Point the client at a custom provider with the OmniaKey base URL and key, and copy the id from the catalog.

Is GPT-5.6 Luna cheaper than Terra?

On the published rate cards Luna lists the lowest input, output and cache-read rates in the GPT-5.6 family, while Terra labels a higher rate over the same window. That ordering says nothing about completed-task cost, because a cheap attempt that needs five retries can still cost more than one Terra run. Compare them on accepted results for one task class.

Which reasoning effort suits Luna?

The API default is medium, which is already more thinking than a fixed-schema conversion needs. Run extraction, classification and formatting at none or low, use medium for small refactors, and raise effort only when a check fails. Extra effort helps when the plan is wrong, not when the typing is.

How much can GPT-5.6 Luna read at once?

1,050,000 tokens, with a maximum input of 922,000 and a maximum output of 128,000, the same limits as the rest of the family. The window also holds tool definitions, history, retrieved files and images, so a repository will not fit whole in practice.

Does GPT-5.6 Luna support tools and images?

It accepts text and images and can call tools. The Responses documentation lists web search, file search, hosted shell, apply patch, computer use, MCP and structured outputs, but a gateway or IDE plugin may expose only some of them. Test the exact client path before building on a hosted tool, then call https://api.omniakey.com/v1 with gpt-5.6-luna.