APIMart
Back to all models

GPT-6 Luna API

OpenAIModel ID gpt-6-lunaText modelReleased September 22, 2026

Use Luna to turn every support call transcript into the same five fields, sort form submissions by what the sender wants, or copy the lines of a purchase order into rows.

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

GPT-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-6 Luna.

Try GPT-6 Luna with your own material

Structured summaries

Give GPT-6 Luna a call transcript or a long email thread and a fixed list of fields, and have it fill each field in one or two sentences, writing “not mentioned” where the material is silent. Spot-check a sample against the originals each week.

Example: Can you summarize this call into our five fields?

Material

Transcript
Dana from Northwind says exports have failed since Tuesday’s update. The agent cleared the export cache and the next export worked.
Transcript
The agent promised to check the logs for the cause and email Dana by Friday.

PromptFill in Customer, Issue, What we did, Next step and Owner from the transcript. One or two sentences per field. Write “not mentioned” if the transcript doesn’t say.

Sample answer · written by hand to show the reasoning

Customer: Dana, Northwind. Issue: exports have failed since Tuesday’s update. What we did: cleared the export cache; the next export worked. Next step: check the logs for the cause and email Dana by Friday. Owner: not mentioned.

About the GPT-6 Luna API

  • OpenAI’s most efficient GPT-6 model

    OpenAI describes GPT-6 Luna as its most efficient model for focused, high-volume tasks, and says it is 50% cheaper than its predecessor, GPT-5.6 Luna.

  • Built for repeated work with a clear goal

    OpenAI’s model guide names extracting invoice fields, classifying requests and producing structured summaries. Move complex coding, research and long agent runs to GPT-6.2 Sol.

  • Reasoning effort from none to max

    GPT-6 Luna has six reasoning effort levels, with medium as the default. Set it to none for the fastest replies in bulk, and raise it only where your tests show better results.

  • GPT-6 Luna API key and access

    You don’t need a separate GPT-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-6-luna. The GPT-6 Luna context window (listed as max input) and maximum output are shown in the specs at the top of this page.

How to call the GPT-6 Luna API

To call GPT-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-6-luna",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

GPT-6 Luna access details

Model IDgpt-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-6 Luna API request parameters

GPT-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-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-6 Luna API pricing

The GPT-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
Input0.8Credits~$0.080.76Credits~$0.0760.72Credits~$0.0721Credits~$0.120%
Cached input0.08Credits~$0.0080.076Credits~$0.00760.072Credits~$0.00720.1Credits~$0.0120%
Output4Credits~$0.43.8Credits~$0.383.6Credits~$0.365Credits~$0.520%

Prices are for reference only. View full pricing

Why call GPT-6 Luna API through APIMart

  • 20% below official pricing

    GPT-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.008 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    GPT-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-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-6 Luna API key works for every model in the table; just change the model parameter.

Differences between OpenAI models
ComparisonGPT-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 LunaGPT-5.6 SolGPT-5.6 TerraGPT-6 AstraGPT-6 SolGPT-6.1 SolGPT-6.1 TerraGPT-6.2 AstraGPT-6.2 Sol
Best forStructured summaries, 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 xhighHigh-volume tasks, Classification, Data extractionComplex professional work, Coding and debugging, Text and image inputBalanced cost, Support and review, Text and image inputComplex coding, Professional work, ResearchComplex 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 cutoffMay 18, 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, 2026February 16, 2026April 30, 2026April 20, 2026April 30, 2026June 1, 2026May 18, 2026June 1, 2026
Input price$0.08$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$0.16$3.2$1.6$8$1.6$1.6$0.8$6.4$1.6
Output price$0.4$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$0.96$16$9.6$40$8$8$4$32$8

GPT-6 Luna FAQ

Should I use GPT-6 Luna or GPT-6.2 Sol?

Use GPT-6 Luna for focused tasks in large numbers, such as extraction, classification and structured summaries; it is the lowest-priced GPT-6 model. GPT-6.2 Sol is OpenAI’s model for everyday coding, agents and writing, and suits work that needs more reasoning. Both have the same context window and maximum output. On APIMart they share one endpoint and API key, so you only change the model parameter.

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

OpenAI lists the GPT-6 Luna context window at 1,050,000 tokens in total, of which input can use up to 922,000 tokens and output up to 128,000 tokens. 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 and cache rates double, and output costs 1.5 times the base rate. The table on this page lists base rates; long-context rates are on the pricing page.

Which reasoning effort levels does GPT-6 Luna support?

Six: none, low, medium, high, xhigh and max, with medium as the default, according to OpenAI’s model docs. Use none for the fastest replies on simple high-volume requests; OpenAI’s migration guide suggests starting there when moving a GPT-4.x workload to Luna, then raising the level only if your own tests need it.

Does GPT-6 Luna support function calling?

Yes, with one condition. According to OpenAI’s model docs, on the Chat Completions endpoint GPT-6 Luna supports function calling only when reasoning_effort is set to none. If your request defines tools, set reasoning_effort to none; structured outputs and streaming are also supported.

How does GPT-6 Luna score in OpenAI’s published results?

On DeepSWE 1.1, a set of long-horizon software engineering tasks, GPT-6 Luna scores 66.6% at max reasoning effort, against 68.8% for GPT-6 Sol. OpenAI says that costs 93% less per task than Claude Opus 5 running at medium effort. On AutomationBench 1.0.6, at high effort, it scores 5.4 points above its predecessor at 58% lower cost per task.

What should I check when moving from GPT-4o or GPT-4o mini to GPT-6 Luna?

Change the model parameter to gpt-6-luna; the endpoint and API key stay the same. Two things to watch: GPT-6 Luna defaults to medium reasoning effort, so set it to none first, as OpenAI’s migration guide suggests, to keep latency and output tokens close to what you had; and if your requests define tools, reasoning_effort must be none for function calling to work. The context also grows from the GPT-4o family’s 128K to 922,000 input tokens. Compare rates in the two models’ pricing tables on this site.

How can I try this model online?

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

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

Set model to gpt-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-6 Luna?

On APIMart, GPT-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-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-6 Luna API cost?

The GPT-6 Luna API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.08 per million input tokens and $0.4 per million output tokens. Diamond: $0.072 per million input tokens and $0.36 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.