APIMart
Back to all models

GPT-5.6 Luna API

OpenAIModel ID gpt-5.6-lunaText modelReleased July 9, 2026

Use GPT-5.6 Luna to sort thousands of support tickets by topic, pull the order number and date out of every customer email, or route messages by language.

Max input
922,000 tokens
Max output
128,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
February 16, 2026
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

GPT-5.6 Luna API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on GPT-5.6 Luna.

Try GPT-5.6 Luna with your own material

Sorting support tickets

Send GPT-5.6 Luna each ticket with your list of categories and ask for one category and a confidence flag as JSON. Spot-check a sample every day and send low-confidence tickets to a person.

Example: Which category does this ticket belong to?

Material

Categories
billing, login, shipping, product_question, other
Ticket
I was charged twice for my November order, can you refund one of the payments?

PromptPick one category for the ticket from the list and return JSON with category and confident.

Sample answer · written by hand to show the reasoning

{"category": "billing", "confident": true}. The customer reports a duplicate charge and asks for a refund, which is a billing issue even though it mentions an order.

About the GPT-5.6 Luna API

  • Built for high-volume work

    OpenAI designed GPT-5.6 Luna for cost-sensitive, high-volume workloads; it roughly corresponds to the nano tier of earlier GPT-5 families.

  • 1.05M context, 128K output

    The context window is 1,050,000 tokens and the maximum output 128,000 tokens, with text and image input. Requests over 272K input tokens are billed at long-context rates.

  • Reasoning from none to max

    Choose reasoning effort from none to max, with medium as the default; none suits fast, simple requests at volume. Function calling and structured outputs are supported.

  • GPT-5.6 Luna API key and access

    You don’t need a separate GPT-5.6 Luna API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID gpt-5.6-luna; GPT-5.6 Luna API pricing is in the table on this page.

How to call the GPT-5.6 Luna API

To call GPT-5.6 Luna, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-5.6-luna",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GPT-5.6 Luna access details

Model IDgpt-5.6-luna
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

GPT-5.6 Luna API request parameters

GPT-5.6 Luna uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use gpt-5.6-luna for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

GPT-5.6 Luna API pricing

The GPT-5.6 Luna API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input1.6Credits~$0.161.52Credits~$0.1521.44Credits~$0.1442Credits~$0.220%
Cached input0.16Credits~$0.0160.152Credits~$0.01520.144Credits~$0.01440.2Credits~$0.0220%
Output9.6Credits~$0.969.12Credits~$0.9128.64Credits~$0.86412Credits~$1.220%

Prices are for reference only. View full pricing

Why call GPT-5.6 Luna API through APIMart

  • 20% below official pricing

    GPT-5.6 Luna API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below OpenAI's official prices, and cached input costs just $0.016 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GPT-5.6 Luna, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try GPT-5.6 Luna with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which OpenAI model should you choose?

Base prices per 1M tokens (USD). Your GPT-5.6 Luna API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-5.6 Luna CurrentGPT-4oGPT-4o miniGPT-4o-2024-11-20GPT-4.1GPT-4.1 minio3GPT-5GPT-5 miniGPT-5 nanoGPT-5 ProGPT-5 SearchGPT-5.1GPT-5.2GPT-5.2 ProGPT-5.3-CodexGPT-5.4GPT-5.4 miniGPT-5.4 nanoGPT-5.4 ProGPT-5.5GPT-5.6 SolGPT-5.6 TerraGPT-6 AstraGPT-6 LunaGPT-6 SolGPT-6.1 SolGPT-6.1 TerraGPT-6.2 AstraGPT-6.2 Sol
Best forHigh-volume tasks, Classification, Data extractionText and image input, Function calling and structured outputs, No reasoning step, fast repliesHigh-volume classification and extraction, Text and image input, Low-cost small modelNewest GPT-4o snapshot, Text and image input, No reasoning step, fast repliesInstruction following, Deprecated, 1M-token contextFast and low-cost, Deprecated, 1M-token contextDeep reasoning, Visual reasoning, Coding and technical writingCoding and agents, Deprecated, Reasoning effort minimal to highCost-efficient reasoning, Deprecated, 400K contextFastest and cheapest, Deprecated, ClassificationHard reasoning, Deprecated, Responses APIWeb search in Chat Completions, Searches before every answer, Text in, text outCoding and agents, Deprecated, Text and image inputProfessional work, Reasoning up to xhigh, Text and image inputHard reasoning, More compute per request, Responses APIAgentic coding, 400K context, Responses APICoding and professional work, 1.05M context, Text and image inputCoding and subagents, 400K context, Text and image inputClassification and extraction, Cheapest GPT-5.4 model, Text and image inputHard reasoning, More compute per request, Text and image inputCoding and professional work, 1.05M context, Reasoning from none to xhighComplex professional work, Coding and debugging, Text and image inputBalanced cost, Support and review, Text and image inputComplex coding, Professional work, ResearchStructured summaries, Classification, Data extractionComplex coding, Agentic workflows, Testing and debuggingComplex coding, Professional documents, Business workflowsVisual reasoning, Drawings and screenshots, WritingComplex coding, Long-document analysis, Professional researchEveryday coding, Agentic tasks, Writing
Input typesText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageTextText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, ImageText, Image
Max input922,000 tokens128,000 tokens128,000 tokens128,000 tokens1,047,576 tokens1,047,576 tokens200,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens272,000 tokens922,000 tokens272,000 tokens272,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens922,000 tokens
Max output128,000 tokens16,384 tokens16,384 tokens16,384 tokens32,768 tokens32,768 tokens100,000 tokens128,000 tokens128,000 tokens128,000 tokens272,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffFebruary 16, 2026October 1, 2023October 1, 2023October 1, 2023June 1, 2024June 1, 2024June 1, 2024September 30, 2024May 31, 2024May 31, 2024September 30, 2024—September 30, 2024August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025August 31, 2025December 1, 2025February 16, 2026February 16, 2026April 30, 2026May 18, 2026April 20, 2026April 30, 2026June 1, 2026May 18, 2026June 1, 2026
Input price$0.16$2$0.12$2$1.6$0.32$1.6$1$0.2$0.04$12$1$1$1.4$16.8$1.4$2$0.6$0.16$24$4$3.2$1.6$8$0.08$1.6$1.6$0.8$6.4$1.6
Output price$0.96$8$0.48$8$6.4$1.28$6.4$8$1.6$0.32$96$8$8$11.2$134.4$11.2$12$3.6$1$144$24$16$9.6$40$0.4$8$8$4$32$8

GPT-5.6 Luna FAQ

Should I use GPT-5.6 Luna or GPT-6 Luna?

For new high-volume work, try GPT-6 Luna first: it is the newer Luna model and OpenAI’s list prices for it are lower than for GPT-5.6 Luna. Keep GPT-5.6 Luna where your pipeline is already validated on it, and compare the two on a sample of your own data before you switch. On APIMart both use the same endpoint and API key, so you only change the model parameter.

Is the GPT-5.6 Luna context window 1,050,000 or 922,000 tokens?

OpenAI lists a total context window of 1,050,000 tokens for GPT-5.6 Luna, of which up to 922,000 tokens are input and up to 128,000 tokens are output. This page shows max input and max output separately, so you can estimate from the length of your material and the expected reply.

How are requests over 272K input tokens billed?

Under OpenAI’s pricing rules, when a request’s input exceeds 272,000 tokens, the whole request is billed at long-context rates: input is 2x and output 1.5x the base rate. The table on this page lists the base rates of GPT-5.6 Luna pricing; long-context rates are on the pricing page.

Which reasoning effort levels does GPT-5.6 Luna support?

Six: none, low, medium, high, xhigh and max, with medium as the default, according to OpenAI’s model docs. For classification and extraction at volume, start with none for the fastest, cheapest replies and raise the level only if your own tests need it.

Which earlier GPT-5 model does GPT-5.6 Luna correspond to?

OpenAI says GPT-5.6 Luna roughly corresponds to the nano model tier used in earlier GPT-5 families, GPT-5.6 Terra to the mini tier, and GPT-5.6 Sol to the unsuffixed tier. If you are moving a nano workload, start with Luna and test on your own data.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select GPT-5.6 Luna in the text category to start exploring.

Which model ID does the GPT-5.6 Luna API use?

Set model to gpt-5.6-luna. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of GPT-5.6 Luna?

On APIMart, GPT-5.6 Luna accepts up to 922,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

GPT-5.6 Luna can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the GPT-5.6 Luna API cost?

The GPT-5.6 Luna API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.16 per million input tokens and $0.96 per million output tokens. Diamond: $0.144 per million input tokens and $0.864 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.