OpenAI · checked October 13, 2026

How do I run GPT-6 Luna in Codex or OpenCode?

GPT-6 Luna runs on Standard Compute at https://api.stdcmpt.com/v1 with the model ID openai/gpt-6-luna. The same key works in Codex and OpenCode.

ModelOpenAI's GPT-6 model for focused, high-volume work; OpenAI calls it its most efficient model. It has a 1.05M-token context window and 128K max output.
Model IDopenai/gpt-6-luna
Short form gpt-6-luna also works
Base URLhttps://api.stdcmpt.com/v1
Context1.05M tokens; about 850K input and 50K output per request
InputText, images and files
Reasoninglow, medium, high, xhigh or max, per request or as a Models page default

Copy a working config

Codex is the natural home for Luna, and OpenCode works with the same key. Pinning Luna keeps every request on it; leave the model as standardcompute if you want harder steps to go to a stronger model you selected.

terminal/v1/responses
# Install Codex and the Standard Compute launcher once
npm install -g @openai/codex
curl -fsSL https://standardcompute.com/cli/install.sh | sh

# Start Codex pinned to openai/gpt-6-luna
standardcompute launch codex -- --model openai/gpt-6-luna

Replace YOUR_API_KEY with a key from the dashboard; OpenCode reads it from STANDARDCOMPUTE_API_KEY. Full setup: Codex CLI, OpenCode.

What it costs

Per 1M tokensPrompt up to 272KPrompt over 272K
Input$0.10$0.20
Cached input$0.01$0.02
Cache write$0.125$0.25
Output$0.50$0.75

OpenAI standard API rates. Regional data-residency endpoints add 10%. Source: OpenAI API pricing, checked October 13, 2026.

A 150K-token Codex turn on GPT-6 Luna
19,500 fresh input × $0.10/M$0.0019
130,500 cache hits × $0.01/M$0.0013
700 output × $0.50/M$0.0003
One turn$0.0036

Averages from coding-agent traffic on our gateway, Sep 13 to Oct 12, 2026: 87% of prompt tokens are cache hits and a turn returns about 700 tokens. Vendor list prices. Luna's higher rate starts at 272K, which about 9 in 10 coding-agent requests never reach.

At that rate the $20 budget in the $19 Starter plan goes a long way on Luna alone. A plan pays off when Luna shares the month with heavier models.

What works differently here

  1. Codex's built-in web search is off on this connection, and the launcher refuses --config, --profile and --oss so it can keep the connection settings it writes.
  2. The Responses API here is stateless: previous_response_id returns 400. Codex sends the full conversation and works as shipped; a custom Responses client must do the same.
  3. Luna is the efficient tier. GPT-6 Sol is not on Standard Compute yet, so for harder steps select GPT-6 Astra or GPT-5.6 Sol next to Luna and let routing decide.

Other ways to run GPT-6 Luna

OpenAI API
$0.10 / $0.50 per 1M
First-party, pay per token, with the long-prompt rate above 272K.
ChatGPT plans with Codex
Subscription
Codex's native login. Usage runs within the plan's limits rather than a token bill.
OpenRouter / Azure
Pay per token
Per-token billing through another account, for fallback or procurement.
Standard Compute
Monthly plan
One key for Codex, OpenCode and Claude Code, with Luna next to Claude, Gemini and open models.

FAQ

Does GPT-6 Luna work in Claude Code?

Yes. Standard Compute serves every catalog model on the Messages API, so standardcompute launch claude -- --model openai/gpt-6-luna works. Codex is the closer fit: it is OpenAI's own agent and speaks the Responses API natively.

Is GPT-6 Sol or GPT-6.1 Sol available?

Not yet. On the OpenAI side, GPT-6 Sol lists at $2 / $10 per million tokens. On Standard Compute the stronger OpenAI options today are GPT-6 Astra and GPT-5.6 Sol.

GPT-6 Luna or Claude Haiku 5.5?

Same $0.10 / $0.50 list price on short prompts, but Haiku 5.5 charges five times more past 100K tokens while Luna's step comes at 272K. On a month of real coding-agent traffic Luna was about three times more efficient.

Plans from $19/mo

One key for GPT-6 Luna and the rest of the catalog, with a monthly compute budget you can watch in the dashboard and no overage charges.

Get your API key

Sources: OpenAI API pricing · OpenAI: GPT-6 Luna model page
Related: Claude Haiku 5.5 vs GPT-6 Luna, priced on real traffic · Codex CLI with other models · All model IDs