LLM Reference
OpenAI API

Using GPT-6 Luna on OpenAI API

Implementation guide · GPT-6 · OpenAI

Serverless

OpenAI API exposes GPT-6 Luna through model ID gpt-6-luna. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

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

Quick Start

  1. 1
    Create an account at OpenAI API and generate an API key.
  2. 2
    Use the OpenAI API SDK or REST API to call gpt-6-luna — see the documentation for request format.
  3. 3
    You'll be billed $0.10/1M input, $0.50/1M output tokens. See full pricing.

Code Examples

Install
pip install openai
API key
OPENAI_API_KEY
Model ID
gpt-6-luna

Use the model slug directly, e.g. "gpt-4o" or "gpt-4.1-mini".

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)

Pricing on OpenAI API

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.

Model Specs

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

Provider

OpenAI API
OpenAI API

OpenAI

San Francisco, California, United States