LLM Reference
OpenAI API

GPT-6 Luna on OpenAI API

GPT-6 · OpenAI

Serverless

Last refreshed 2026-09-23. Next refresh: weekly.

Why use GPT-6 Luna on OpenAI API?

OpenAI API offers GPT-6 Luna with pay-as-you-go pricing at $0.10/1M input tokens. OpenAI is a leading AI research and deployment company dedicated to developing safe and beneficial artificial general intelligence (AGI) for humanity.

Compare GPT-6 Luna across 4 providers to find the best fit for your use case
Input / 1M
$0.10
Output / 1M
$0.50
Cache
read $0.010
Batch
-50% · in $0.050 / out $0.25

Setup recipe

Python + curl
Install
pip install openai
Auth
export OPENAI_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
Model ID
gpt-6-luna

Request example

import os
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY from env
response = client.chat.completions.create(
    model="gpt-6-luna",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".
  • The examples expect OPENAI_API_KEY; rename it only if your application config maps the new variable.

Compare GPT-6 Luna Across Providers

ProviderInput (per 1M)Output (per 1M)
OpenAI API$0.10$0.50
AWS Bedrock$0.10$0.50
Azure OpenAI$0.10$0.50
OpenRouter$0.10$0.50

Pricing

TypePrice (per 1M)
Input tokens$0.10
Output tokens$0.50

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt CachingBatch API

About GPT-6 Luna

OpenAI GPT-6 Luna, announced September 22, 2026 with GPT-6 Sol, is the most efficient GPT-6 tier for focused high-volume tasks below Sol and flagship Astra. First-party OpenAI API id gpt-6-luna. Docs: 1,050,000 context, 128,000 max output, knowledge cutoff May 18, 2026, text and image input to text output, reasoning effort none/low/medium/high/xhigh/max, function calling, structured outputs, prompt caching, Batch and Flex at 50% of Standard, Fast mode at 2x, and computer use and code interpreter via Responses tools.

Get Started

Model Specs

Released2026-09-22
Context1.05m
Knowledge cutoff2026-05

Related Models on OpenAI API