Chuyển đến nội dung chính
Logo OpenAI

GPT 5.6 Luna API

OpenAI

GPT 5.6 Luna thuộc dòng mô hình GPTXem tất cả mô hình GPT

Mô hình GPT 5.6 nhanh nhất của OpenAI cho khối lượng công việc lớn và nhạy cảm độ trễ, với đầu vào văn bản và hình ảnh.

openai/gpt-5.6-luna

Tài liệu

Cuộc trò chuyện

Bắt đầu cuộc trò chuyện

Mô hình GPT 5.6 nhanh nhất của OpenAI cho khối lượng công việc lớn và nhạy cảm độ trễ, với đầu vào văn bản và hình ảnh.

Enter để gửi · Shift+Enter để xuống dòng

UnificAlly không lưu trữ prompt và câu trả lời LLM của bạn. Chúng tôi chỉ lưu thông tin số token sử dụng để tính phí.

Sử dụng POST /v1/chat/completions với khóa API UnificAlly của bạn. Hỗ trợ system prompt, user prompt, tools, streaming và chế độ suy nghĩ khi khả dụng.

Cập nhật

What is the GPT 5.6 Luna API?

The GPT 5.6 Luna API is live on UnificAlly as openai/gpt-5.6-luna, at $0.15/1M tokens for input and $0.90/1M tokens for output. GPT 5.6 Luna is the fast, high-throughput model in OpenAI's GPT 5.6 family, previewed on June 26, 2026 and generally available since July 9, 2026. It takes text and image input and returns text, with a 1,050,000-token context window, a 128,000-token max output, and knowledge up to February 16, 2026. Luna is tuned for high-volume and latency-sensitive workloads, and it still holds its own on real work: 50.3 on Agents' Last Exam, ten points above Claude Fable 5, and 74.6 on the Coding Agent Index, above Claude Opus 4.8. Terra sits above it for everyday work and Sol at the top for the hardest problems.

GPT 5.6 Luna API specs

Model IDopenai/gpt-5.6-luna
EndpointPOST https://direct-api.unifically.com/v1/chat/completions
Other formatsPOST /v1/responses, POST /v1/messages
Request typesChat completion, streaming, tool calls
ResponseSynchronous JSON, or server-sent events with "stream": true
Input rate$0.15/1M tokens
Output rate$0.90/1M tokens
Cache read rate$0.015/1M tokens
Cache creation rate$0.1875/1M tokens

Billing is per token, with no subscription. These are the standard rates; a prompt over 272,000 tokens bills the whole request at the long-context rate. The OpenAI API pricing guide covers the rates across the GPT line.

How to use the GPT 5.6 Luna API

The GPT 5.6 Luna API uses /v1/chat/completions, the OpenAI-compatible endpoint shared by every language model on UnificAlly.

  1. Create an API key on the API keys page.
  2. Send a POST request to https://direct-api.unifically.com/v1/chat/completions with the model ID and a messages array.
  3. Read the reply from choices[0].message.content in the same response.
curl -X POST https://direct-api.unifically.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "openai/gpt-5.6-luna",
    "messages": [
      { "role": "user", "content": "Classify this support ticket: billing, bug, or feature request?" }
    ]
  }'

The response comes back synchronously with the completion:

{
  "id": "3f8e2a1c-7b4d-4e9a-9c2f-5d1e8b7a6c40",
  "object": "chat.completion",
  "created": 1710000000,
  "model": "openai/gpt-5.6-luna",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "billing"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 28,
    "completion_tokens": 64,
    "total_tokens": 92,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

The usage object holds the token counts the request is billed on. Set "stream": true to receive tokens as they generate. Send requests to direct-api.unifically.com so long replies finish in full.

GPT 5.6 Luna API parameters

ParameterTypeDefaultWhat it does
modelstringrequiredModel identifier. Use openai/gpt-5.6-luna
messagesarrayrequiredNon-empty array of message objects with role and content. Roles: system, developer, user, assistant, tool, function
streambooleanfalseStreams the response as server-sent events
stream_optionsobjectnoneSet { "include_usage": true } to get a final chunk with token usage. Only used when stream is true
temperaturenumbernoneSampling temperature between 0 and 2. Higher values produce more random output
max_tokensintegernoneMaximum number of tokens to generate
max_completion_tokensintegernoneAccepted as an alias for max_tokens
reasoning_effortstringnoneHow much the model reasons before answering
top_pnumbernoneNucleus sampling. An alternative to temperature
stopstring or arraynoneUp to four sequences where the model stops generating
toolsarraynoneTools the model may call. Each needs a type and a function definition
tool_choicestring or objectnonenone, auto, required, or a specific tool
response_formatobjectnoneSet { "type": "json_object" } for JSON mode

The GPT 5.6 Luna API documentation lists every supported endpoint and request format for this model.

Key features of GPT 5.6 Luna

Beats Fable 5 on Agents' Last Exam

Luna scores 50.3 on Agents' Last Exam, which tests long-running professional workflows across 55 fields. That is ahead of GPT-5.5 at 46.9, Claude Opus 4.8 at 45.2, and Claude Fable 5 at 40.5, from the fastest model in the family.

Built for throughput

Luna is the fastest GPT 5.6 model, made for the calls you fire thousands of times a day. It still scores 74.6 on the Coding Agent Index, above Claude Opus 4.8 at 72.5, and 82.5% on Terminal-Bench 2.1 at max effort.

Reasoning effort you can tune

Luna runs from no reasoning up to max effort. Keep it low for instant replies; raise it when a batch job deserves more thinking. On GeneBench v1 the range moves it from 1.6% to 14.4% pass@1.

Text and image input

Luna reads screenshots and scanned pages alongside short text prompts, so high-volume pipelines can mix the two in one request.

Holds up on CursorBench 3.2

On Cursor's coding-agent benchmark, Luna scores 61.1% at max effort, level with Sonnet 5 at 61.5% and ahead of Composer 2.5 at 56.1%. Strong for the fastest model in the family.

Predictable prompt caching

Explicit cache breakpoints and a 30-minute minimum cache life reuse a stable prompt across a batch instead of resending it on every call. For template-heavy pipelines, that is spend control you set once per run.

What GPT 5.6 Luna is best for

  • High-volume pipelines

    Classification, extraction, summarization, and routing at the family's fastest turnaround.

  • Latency-sensitive apps

    The fast option for chat frontends and agent steps that need instant replies.

  • Bounded agent steps

    Tool-calling subtasks and quick checks inside larger agent loops.

  • Vision at scale

    Screenshots and scanned pages read inline for high-volume document jobs.

  • Cached repeated prompts

    Cache breakpoints reuse a shared template across a whole batch.

GPT 5.6 Luna use cases

Route the bulk of your traffic through Luna: ticket tagging, entity extraction, summaries, and short assistant replies where fast turnaround decides the architecture. Use it as the worker model inside agent systems, handling bounded subtasks while Terra or Sol does the planning. It reads screenshots and scanned pages inline, so it fits high-volume document jobs that mix images with short text. It is also a sensible coding helper for draft patches and quick explanations, since it beats the previous Opus generation on terminal work. For template-heavy batch jobs, cache breakpoints reuse the shared prompt across the whole run.

GPT 5.6 Luna limitations

Luna trades reasoning depth for speed. On GeneBench v1 it tops out at 14.4% pass@1 versus 28.4% for Terra, and on ExploitBench it reaches 33.2% versus Terra's 52.9%. When a task needs deep multi-step reasoning, move up to Terra or Sol.

GPT 5.6 runs behind layered safeguards. Real-time cyber and biology classifiers can pause or withhold higher-risk generations, and some legitimate dual-use security work may be blocked or slowed.

Arena has not published an Elo for Luna yet. A ranked position is pending while the public rollout is this new.

Long prompts cost more. Once a request's prompt passes 272,000 tokens, the whole request bills at the long-context rate: double on input, cache read, and cache write, and 1.5x on output. Keep prompts under that line where you can, and reuse a stable system prompt through cache breakpoints instead of resending it.

When to use GPT 5.6 Luna

Use Luna when volume and latency are the constraint: the calls you make thousands of times a day, the agent steps that must return fast, and the batch jobs where turnaround decides feasibility. If output quality on hard reasoning starts to bind, step up to Terra for GPT-5.5-class results; save Sol for the work that needs the strongest model.

Câu hỏi thường gặp

Câu hỏi thường gặp về GPT 5.6 Luna

openai/gpt-5.6-luna, called through the OpenAI-compatible POST /v1/chat/completions endpoint with your UnificAlly API key.

Luna is billed per token from a prepaid balance, and access starts with a key made on the API keys page after signup. Send that key as Authorization: Bearer <key> to https://direct-api.unifically.com/v1/chat/completions with the model openai/gpt-5.6-luna; OpenAI SDKs work there after a base URL change.

Classification and routing calls are a plain chat completion: model: openai/gpt-5.6-luna, a messages array (screenshots allowed as image input), and a low reasoning_effort when fast answers matter most. The reply sits in choices[0].message.content of the same response, with billed tokens in usage, or it streams as server-sent events with "stream": true.

High-volume, latency-sensitive work: classification, extraction, routing, summaries, and short replies where fast turnaround matters most.

For the fastest model in the family, yes. It scores 74.6 on the Artificial Analysis Coding Agent Index, above Claude Opus 4.8 at 72.5, and 82.5% on Terminal-Bench 2.1 at max effort.

1,050,000 tokens, with a max output of 128,000 tokens and a knowledge cutoff of February 16, 2026.

Billing switches to the long-context rate for the whole request once the prompt passes 272,000 tokens. Input, cache read, and cache write bill at double the standard rate and output at 1.5x. Both rates are listed on the pricing page.

Text and image input, with text output. Good for high-volume jobs that mix short text with screenshots or scanned pages.

Yes, from no reasoning up to max. Low efforts return fast answers; max effort lifts benchmark scores by producing more output tokens.

Luna trades reasoning depth for speed. Terra scores higher on nearly every published eval, and Sol adds the most depth at max effort plus ultra mode. Luna wins on turnaround and throughput.

GPT 5.6 runs with real-time cyber and biology misuse classifiers. Higher-risk generations can pause for review, and some dual-use security requests may be blocked.

Hướng dẫn và so sánh GPT 5.6 Luna

Xem bảng giá, giới hạn và kết quả thử nghiệm thực tế trước khi chạy mô hình này.