GPT-5.6 Luna API

OpenAI's fastest and most cost-efficient GPT-5.6 model, built for high-volume, latency-sensitive workloads

Modalities
Text, ImageText
In / Out price
$0.2/$1.2per 1M
Context window
1.05M tokens
Released
Jul 9, 2026

GPT-5.6 Luna overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by GPT-5.6 Luna through AI/ML API

GPT-5.6 Luna by OpenAI

GPT-5.6 Luna is an OpenAI chat and code model with text, image and file inputs, text output, reasoning, function calling and structured outputs.

GPT-5.6 Luna specs

Model ID
openai/gpt-5.6-luna
Developer
OpenAI
Context window
1,050,000 tokens
Max output
128,000 tokens
Input
Text, Image
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Capabilities

  • Reasoning
  • Function calling
  • Vision
  • Structured outputs
  • Streaming

GPT-5.6 Luna benchmarks by Artificial Analysis

See how GPT-5.6 Luna compares in generation speed. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 9 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

GPT-5.6 Luna API pricing

GPT-5.6 Luna pricing in US dollars
UsagePriceUnit
Input$0.21M tokens
Output$1.21M tokens
Cached input$0.021M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

GPT-5.6 Luna vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
GPT-5.6 Luna$0.2$1.2
GPT-6 Luna$0.1$0.5
GPT-6.1 Terra$1$5
GPT-6.1 Sol$2$10
GPT-6.1 Terra Pro$2.12$10.58

How to use the GPT-5.6 Luna API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5.6-luna",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

GPT-5.6 Luna FAQ

What is the context window of GPT-5.6 Luna?

GPT-5.6 Luna has a 1,050,000 tokens context window and can return up to 128,000 tokens.

What inputs and outputs does GPT-5.6 Luna support?

GPT-5.6 Luna takes text, image, file in as input and returns text out.

What is the model ID for GPT-5.6 Luna?

Use openai/gpt-5.6-luna as the model id.

When was GPT-5.6 Luna released?

GPT-5.6 Luna became available on July 9, 2026.

How much does GPT-5.6 Luna cost?

GPT-5.6 Luna costs $0.2 input and $1.2 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does GPT-5.6 Luna support streaming?

Yes, GPT-5.6 Luna can stream responses as they are generated.

Can GPT-5.6 Luna read images?

Yes, GPT-5.6 Luna accepts image input alongside text.

Who created GPT-5.6 Luna?

GPT-5.6 Luna was built by OpenAI.

What tasks is GPT-5.6 Luna suited for?

It is a chat and code model with reasoning, vision, and tool-calling capabilities, making it suitable for conversational and coding tasks that require structured output.

Start building with GPT-5.6 Luna

GPT-5.6 Luna API

openai/gpt-5.6-luna

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "openai/gpt-5.6-luna",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'