{"slug":"gpt-5.6-luna-pro","name":"GPT-5.6 Luna Pro","family":"openai","family_name":"OpenAI","developer":"OpenAI","color":"#10a37f","status":"active","released":"2026-07-09","snapshot_of":null,"open":false,"context":1050000,"max_output":128000,"knowledge_cutoff":"2026-02","modalities":["text","image","file"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":155,"latency":8.93,"short":"A closed, low-priced model from OpenAI with a very large 1M-token context window. It has no benchmark results in the registry, so its profile rests on specifications and price.","strengths":["Input costs $0.20 per million tokens, well below the $1.01 blended median","Context window of 1M tokens, with responses up to 128k tokens","Supports tool calling, reasoning mode and structured output","Accepts text, image and file inputs"],"weaknesses":["No benchmark results, so output quality cannot be compared with other models","Only one provider listed, OpenRouter","Closed weights, so it cannot be self-hosted"],"best_for":"Low-cost agents that need long context, tool calls and structured output, where benchmark evidence is not required.","long":"GPT-5.6 Luna Pro is a closed-weights model from OpenAI, released in July 2026 with a knowledge cutoff of February 2026. Its main appeal for an agent builder is cost and context. Input is priced at $0.20 per million tokens and output at $1.20 per million, giving a blended price of $0.45 per million tokens against a registry median of about $1.01. The context window is 1M tokens and responses can run to 128k tokens, which leaves room for large documents or long multi-step sessions.\n\nThe model supports tool calling, reasoning mode and structured output, and it accepts text, images and files. These are the features most agent designs depend on, so the model is a plausible fit for those workloads on paper. Its price rank is 55 of 194 and its popularity rank is 86 of 194, both in the middle of the registry.\n\nThe registry holds no benchmark results for this model, and it is available only through OpenRouter. Anyone choosing it should test quality on their own tasks before committing, since the specifications alone do not show how well it performs.","described":true,"gateway":false,"byok":true,"string":"openrouter:openai/gpt-5.6-luna-pro","input":0.2,"output":1.2,"cache_read":0.02,"blended":0.45,"efficiency":null,"bench":{},"offers":[{"provider":"openrouter","name":"OpenRouter","model_id":"openai/gpt-5.6-luna-pro","api":["openai"],"input":0.2,"output":1.2,"cache_read":0.02,"cache_write":0.25,"input_tiers":[{"start":272000,"price":0.4}],"output_tiers":[{"start":272000,"price":1.8}],"context":1050000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:openai/gpt-5.6-luna-pro","gateway_string":null}],"ranks":{"intelligence":null,"popularity":86,"efficiency":null,"speed":16,"price":55},"top_score":0.2476,"about":["A closed, low-priced model from OpenAI with a very large 1M-token context window. It has no benchmark results in the registry, so its profile rests on specifications and price.","GPT-5.6 Luna Pro is a closed-weights model from OpenAI, released in July 2026 with a knowledge cutoff of February 2026. Its main appeal for an agent builder is cost and context. Input is priced at $0.20 per million tokens and output at $1.20 per million, giving a blended price of $0.45 per million tokens against a registry median of about $1.01. The context window is 1M tokens and responses can run to 128k tokens, which leaves room for large documents or long multi-step sessions.","The model supports tool calling, reasoning mode and structured output, and it accepts text, images and files. These are the features most agent designs depend on, so the model is a plausible fit for those workloads on paper. Its price rank is 55 of 194 and its popularity rank is 86 of 194, both in the middle of the registry.","The registry holds no benchmark results for this model, and it is available only through OpenRouter. Anyone choosing it should test quality on their own tasks before committing, since the specifications alone do not show how well it performs."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:openai/gpt-5.6-luna-pro', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('openrouter:openai/gpt-5.6-luna-pro', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent(\n    'openrouter:openai/gpt-5.6-luna-pro',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['OPENROUTER_API_KEY'] = '...'\n\nagent = Agent('openrouter:openai/gpt-5.6-luna-pro')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export OPENROUTER_API_KEY='...'\n\nuvx pax --model 'openrouter:openai/gpt-5.6-luna-pro'","soon":true},{"file":"pi.sh","lang":"sh","code":"# npm install -g @earendil-works/pi-coding-agent\nexport OPENROUTER_API_KEY='...'\n\npi --model 'openrouter/openai/gpt-5.6-luna-pro'","soon":false},{"file":"codex.sh","lang":"sh","code":"# npm install -g @openai/codex\nexport OPENROUTER_API_KEY='...'\n\ncodex --model 'openai/gpt-5.6-luna-pro' \\\n  -c model_provider='openrouter' \\\n  -c model_providers.openrouter.name='OpenRouter' \\\n  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \\\n  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'","soon":false},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/openai-compatible\nimport { createOpenAICompatible } from '@ai-sdk/openai-compatible'\nimport { generateText } from 'ai'\n\nprocess.env.OPENROUTER_API_KEY = '...'\n\nconst openrouter = createOpenAICompatible({\n  name: 'openrouter',\n  baseURL: 'https://api.openrouter.example/v1',\n  apiKey: process.env.OPENROUTER_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: openrouter('openai/gpt-5.6-luna-pro'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}