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.
| Model | OpenAI'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 ID | openai/gpt-6-lunaShort form gpt-6-luna also works |
| Base URL | https://api.stdcmpt.com/v1 |
| Context | 1.05M tokens; about 850K input and 50K output per request |
| Input | Text, images and files |
| Reasoning | low, 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.
# 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 tokens | Prompt up to 272K | Prompt 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.
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
- Codex's built-in web search is off on this connection, and the launcher refuses
--config,--profileand--ossso it can keep the connection settings it writes. - The Responses API here is stateless:
previous_response_idreturns 400. Codex sends the full conversation and works as shipped; a custom Responses client must do the same. - 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.
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