Blog

GPT-6 Luna Pricing (2026): Cost per Token and API Code

Unicorn API Team · · 11 min read

GPT 6 Luna pricing chart comparing input and output credit costs against GPT 6 Sol and Astra

GPT 6 Luna pricing on Unicorn API is 6 credits per million input tokens and 30 credits per million output tokens, which makes Luna the cheapest member of OpenAI’s GPT-6 family by a wide margin. This guide converts those credits into dollars, shows what real workloads cost, compares Luna with Sol, Astra and Gemini 4 Neon, and gives you code that calls the model and logs the exact cost of each request.

If you only need the headline: on a monthly plan, a million input tokens cost $0.06 and a million output tokens cost $0.30. Most single requests cost a small fraction of one credit.

What is GPT 6 Luna pricing on Unicorn API?

OpenAI launched GPT-6 Sol and GPT-6 Luna together in September 2026 as the mid and small tiers beneath its flagship. On Unicorn API, GPT 6 Luna is a chat model you call with the OpenAI-compatible chat completions endpoint, and it is billed per token in credits.

A token is a chunk of text the model reads or writes, usually a short word or part of a longer one. Input tokens are everything you send: the system prompt, conversation history, documents and tool definitions. Output tokens are what the model writes back. Here is the full rate card:

Token typeCredits per 1M tokensDollars per 1M (plan, $0.01/credit)Dollars per 1M (top-up, $0.015/credit)
Input6$0.06$0.09
Output30$0.30$0.45
Cached input0.6$0.006$0.009
Cache write7.5$0.075$0.1125

Two things decide which dollar column applies to you. Monthly plans give you credits at $0.01 each: Starter is $25, Creator $50, Studio $100 and Pro $200 per month. Top-up credits cost $0.015 each and never expire, which suits bursty or occasional use. Full details are on the pricing page.

If you think in thousands of tokens rather than millions, GPT 6 Luna pricing works out to 0.006 credits per 1,000 input tokens and 0.03 credits per 1,000 output tokens.

How GPT 6 Luna pricing works: tokens, credits and caching

Every request is charged from the usage the model reports when it finishes. There is no per-request fee and no minimum. You pay for the tokens that went in and the tokens that came out, each at its own rate.

Output costs five times more than input

Luna’s output rate (30 credits per million) is five times its input rate (6 credits per million). That ratio matters when you plan a workload. A summariser that reads 10,000 tokens and writes 200 is input-heavy and very cheap. A content generator that reads a 100-token brief and writes 3,000 tokens is output-heavy, and output dominates the bill. When you estimate GPT 6 Luna pricing for your app, look at which side of that ratio your traffic sits on.

Cached input and cache writes

Prompt caching means the provider stores a repeated prefix of your prompt, such as a long system prompt or a reference document, so later requests that start with the same text do not pay full price to process it again. On Luna:

  • Cached input is billed at 0.6 credits per million, a tenth of the normal input rate.
  • Cache write tokens, the tokens stored into the cache, are billed at 7.5 credits per million, slightly above the normal input rate.

The split between cached and uncached tokens comes from the usage the model reports, so you do not have to calculate it yourself. What you control is prompt structure: put stable content first and variable content last, so the shared prefix is as long as possible.

Reasoning effort and max_tokens

Luna accepts a reasoning_effort field. Asking the model to think harder can produce more tokens per answer, and output is the expensive side of the rate card. The max_tokens field caps the length of a reply, which also caps the output cost of any single call. Set both deliberately rather than leaving them to defaults.

Diagram showing how a request splits into cached input, new input and output tokens, each billed at a different credit rate
Each request is billed in three parts: cached input, new input and output. Output carries the highest rate.

What does GPT 6 Luna cost for real workloads?

Rates per million tokens are hard to feel. Here are three worked examples using plan credits at $0.01 each. Every figure below is simple multiplication from the rate card, so you can repeat it with your own numbers.

Example 1: a single request

A request with 2,000 input tokens and 500 output tokens:

  • Input: 2,000 × 6 ÷ 1,000,000 = 0.012 credits
  • Output: 500 × 30 ÷ 1,000,000 = 0.015 credits
  • Total: 0.027 credits, about $0.00027

You could run roughly 37 of these for a single credit.

Example 2: a support chatbot

Say your bot handles 100,000 conversations a month, each averaging 1,500 input tokens and 300 output tokens.

  • Input: 150 million tokens × 6 = 900 credits
  • Output: 30 million tokens × 30 = 900 credits
  • Total: 1,800 credits, or $18 on a plan ($27 with top-ups)

That fits inside the Starter plan’s 2,500 credits with room to spare. Now suppose 1,000 of those 1,500 input tokens are a fixed system prompt that gets served from cache:

  • Cached input: 100 million × 0.6 = 60 credits
  • Uncached input: 50 million × 6 = 300 credits
  • Output: 900 credits (unchanged)
  • Total: 1,260 credits, about $12.60, before a small cache write charge

Caching cut the input bill from 900 credits to 360. Output did not change, which is why output length is usually the next thing to tune.

Example 3: bulk classification

You need to label one million short records. Each call sends 400 input tokens and gets back a 20-token label.

  • Input: 400 million × 6 = 2,400 credits
  • Output: 20 million × 30 = 600 credits
  • Total: 3,000 credits, or $30 on a plan

The same job on GPT 6 Sol would cost 48,000 credits for input plus 12,000 for output: 60,000 credits, or $600. This is where GPT 6 Luna pricing earns its place. For high-volume, narrow tasks where a smaller model is accurate enough, the gap is a factor of 20.

GPT 6 Luna vs Sol vs Astra: price comparison

OpenAI’s GPT-6 lineup on Unicorn API spans three tiers plus the newer 6.2 versions. Here is how they line up, alongside Google’s Gemini 4 Neon as a cross-vendor reference. All figures are credits per million tokens.

ModelInputOutputCached inputCache writeOutput vs Luna
GPT 6 Luna6300.67.51x
GPT 6 Sol1206001215020x
GPT 6.2 Sol120600615020x
Gemini 4 Neon2401,20012not listed40x
GPT 6.2 Astra4802,4002460080x
GPT 6 Astra5602,80056700about 93x

A few things stand out:

  • Luna is exactly one twentieth of Sol on input, output and cache rates. If Luna handles a task well, there is no pricing reason to use Sol for it.
  • GPT 6.2 Sol keeps Sol’s input and output rates but halves the cached input rate to 6 credits per million. For heavily cached workloads that need Sol-level quality, 6.2 Sol is the better buy.
  • GPT 6.2 Astra is cheaper than GPT 6 Astra on every line. The background on that release is in our post on GPT-6.2 Astra and Sol and the Astra price cut.
  • Gemini 4 Neon sits between Sol and Astra on price. It is Google’s 1M-context reasoning model, aimed at complex coding, analysis and science, and it is also available through an OpenAI-compatible route as Gemini 4 Neon OpenAI.

For a broader view across vendors, see the LLM API price comparison, which prices common tasks rather than raw tokens. If you are weighing the top tier specifically, GPT 6 Astra vs Claude Opus 5.5 covers that decision.

Where you see different numbers elsewhere

Third-party pricing trackers list GPT-6 Luna rates for various providers and endpoints, and they do not always agree with each other. Before you compare, check three things: which provider the figure is for, whether it is per million or per thousand tokens, and whether it counts cached input separately. On Unicorn API the figure that matters is the one debited from the usage each request reports, and you can check it before running anything.

How to call GPT 6 Luna and track the cost of each request

Luna uses the standard chat completions shape, so any OpenAI-compatible client works. You need an API key from the keys page; store it in an environment variable called UNICORN_API_KEY. If you want to try prompts before writing code, the browser playground runs the same models.

curl

curl https://api.unicornapi.net/v1/chat/completions \
  -H "Authorization: Bearer $UNICORN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6-luna",
    "messages": [
      {"role": "system", "content": "You label support tickets as billing, bug, or other. Reply with one word."},
      {"role": "user", "content": "I was charged twice for my subscription this month."}
    ],
    "max_tokens": 5,
    "temperature": 0
  }'

Python with a cost logger

This script sends a request, reads the token counts from the response, and converts them into credits and dollars using Luna’s rate card. It treats cached tokens separately when the response reports them.

import os
import requests

API_URL = "https://api.unicornapi.net/v1/chat/completions"
API_KEY = os.environ["UNICORN_API_KEY"]

# GPT 6 Luna rates, credits per 1,000,000 tokens
RATE_INPUT = 6
RATE_OUTPUT = 30
RATE_CACHED = 0.6

PLAN_DOLLARS_PER_CREDIT = 0.01
TOPUP_DOLLARS_PER_CREDIT = 0.015


def ask_luna(messages, max_tokens=300):
    resp = requests.post(
        API_URL,
        headers={
            "Authorization": f"Bearer {API_KEY}",
            "Content-Type": "application/json",
        },
        json={
            "model": "gpt-6-luna",
            "messages": messages,
            "max_tokens": max_tokens,
        },
        timeout=60,
    )
    resp.raise_for_status()
    return resp.json()


def estimate_credits(usage):
    prompt_tokens = usage.get("prompt_tokens", 0)
    output_tokens = usage.get("completion_tokens", 0)
    details = usage.get("prompt_tokens_details") or {}
    cached = details.get("cached_tokens", 0)
    uncached = prompt_tokens - cached

    credits = (
        uncached * RATE_INPUT
        + cached * RATE_CACHED
        + output_tokens * RATE_OUTPUT
    ) / 1_000_000
    return credits


if __name__ == "__main__":
    data = ask_luna([
        {"role": "user", "content": "Summarise the benefits of prompt caching in two sentences."}
    ])
    print(data["choices"][0]["message"]["content"])

    credits = estimate_credits(data["usage"])
    print(f"Credits: {credits:.6f}")
    print(f"Plan cost: ${credits * PLAN_DOLLARS_PER_CREDIT:.8f}")
    print(f"Top-up cost: ${credits * TOPUP_DOLLARS_PER_CREDIT:.8f}")

Your local estimate is a monitoring aid. The authoritative charge is the one debited from the usage the model reports. If you want the exact price of a request before you send it, call POST /v1/models/price; the request format is in the API documentation.

Switching tiers without rewriting code

Because Luna, Sol and Astra share the same input fields, moving a request between tiers is a one-word change to model. A common pattern is to send everything to Luna first and escalate to gpt-6-sol only when a check fails, for example when the reply is not valid JSON or a confidence label comes back low. You keep Luna’s price on most traffic and pay Sol’s rate only where it is needed.

Three-step pipeline: send a chat request, read the token usage from the response, and log the credit cost
Read the usage object on every response and log the cost, so your bill never surprises you.

How to lower your GPT 6 Luna bill

Luna is already cheap, but at volume small habits add up. These are the levers that move GPT 6 Luna pricing the most, in rough order of impact for typical apps.

  1. Cap output with max_tokens. Output costs five times input. If you need a one-word label, set max_tokens to a handful, and say so in the prompt.
  2. Put stable text first. System prompts, instructions and reference documents belong at the start of the message list so they form a cacheable prefix. Cached input is a tenth of the normal input rate.
  3. Trim conversation history. Chat apps often resend the entire history on every turn. Summarise or drop old turns once they stop being useful.
  4. Use structured output. The response_format field lets you ask for JSON, which tends to produce shorter, predictable replies and avoids retry calls caused by parsing failures.
  5. Match reasoning effort to the task. Simple extraction rarely needs extended thinking. Keep reasoning_effort low unless testing shows it improves results enough to pay for itself.
  6. Choose plans for steady use, top-ups for spikes. Plan credits are a third cheaper than top-ups ($0.01 against $0.015). If your usage is predictable, a plan lowers the effective rate. Top-ups never expire, so they work as a buffer.

Common mistakes when estimating GPT 6 Luna pricing

Most budgeting errors come from a handful of assumptions that look reasonable until the first invoice.

  • Counting only your user’s message. The input bill includes the system prompt, every prior turn, tool definitions and any retrieved documents. In retrieval apps the retrieved context is often 90 percent of input.
  • Ignoring the output multiplier. Teams estimate cost from input volume alone, then find a verbose model doubled the bill. Always estimate output separately at 30 credits per million.
  • Mixing up per-thousand and per-million figures. 6 credits per million is 0.006 per thousand. A factor-of-1,000 slip is easy when you copy numbers between spreadsheets.
  • Comparing tiers on price alone. Luna is 20 times cheaper than Sol, but if it needs three attempts or human review on a hard task, the real cost changes. Measure accuracy on a sample of your own data first.
  • Confusing ChatGPT with the API. People searching for “chat gpt 6” pricing often mean the app subscription. That is a separate product. API calls are billed per token, regardless of any ChatGPT plan you hold.
  • Forgetting cache writes. Storing a prefix costs 7.5 credits per million, a little more than normal input. Caching pays off when a prefix is reused many times, not when every prompt is unique.

When is GPT 6 Luna the right choice?

GPT 6 Luna pricing makes it the default for high-volume, well-defined work: classification, tagging, extraction into JSON, short summaries, routing user messages, first-pass moderation and simple chat. In these jobs the instructions are clear, the output is short, and a smaller model’s accuracy is usually close enough to a larger one’s to make the 20x saving worth it.

Reach for a larger model when the task needs long multi-step reasoning, careful code changes across many files, or nuanced writing where quality is the product. In those cases:

  • GPT 6.2 Sol is the sensible step up, with the same input and output rates as GPT 6 Sol and cheaper cached input.
  • GPT 6.2 Astra is OpenAI’s top tier at a lower price than the original Astra.
  • Gemini 4 Neon is worth testing for complex coding, analysis and science, with four thinking levels up to xhigh.

The practical approach is to test rather than guess. Run 100 to 200 real examples through Luna and one larger model, score the results, and compare cost per correct answer, not cost per token. Because every model on Unicorn API shares one key and one credit balance, that test costs very little and needs no new accounts. You can browse the rest of the lineup in the model catalog, and if you work inside Cursor, Claude Code or another coding agent, the agents setup lets you call the same models from there.

For most teams, the answer ends up being both: Luna for the bulk of traffic, a larger model for the requests that need it, and a cost logger like the one above so GPT 6 Luna pricing stays predictable as usage grows.

Frequently asked questions

How much does GPT 6 Luna cost per million tokens?

On Unicorn API, GPT 6 Luna costs 6 credits per million input tokens and 30 credits per million output tokens. On a monthly plan, where credits cost $0.01 each, that is $0.06 per million input tokens and $0.30 per million output tokens. With top-up credits at $0.015 each, it is $0.09 and $0.45. Cached input is 0.6 credits per million.

How much does GPT 6 Luna cost per 1,000 tokens?

Divide the per-million rate by 1,000. Input costs 0.006 credits per 1,000 tokens and output costs 0.03 credits per 1,000 tokens. On a monthly plan that is $0.00006 and $0.0003 per thousand tokens. A typical request with 2,000 input and 500 output tokens costs about 0.027 credits, well under a tenth of a cent.

Is GPT 6 Luna cheaper than GPT 6 Sol and GPT 6 Astra?

Yes, by a wide margin. GPT 6 Sol costs 120 credits per million input tokens and 600 per million output, exactly 20 times Luna's rate. GPT 6 Astra costs 560 and 2,800 credits, over 90 times Luna. The trade-off is capability: Luna is the small, fast tier, so test it on your task before assuming it matches the larger models.

Does a ChatGPT subscription include GPT-6 API access?

No. A ChatGPT plan pays for the chat app, while API usage is billed separately per token. If you want to call GPT-6 Luna, Sol or Astra from your own code, you need an API key. On Unicorn API one key covers all three models plus Gemini and media models, billed from a single credit balance.

How can I estimate my GPT 6 Luna bill before running a job?

Multiply your expected input tokens by 6 and output tokens by 30, then divide by one million to get credits. Multiply credits by $0.01 for plan pricing or $0.015 for top-ups. For an exact figure on a specific request, call POST /v1/models/price before you run it, then confirm against the usage the response reports.