EN ▾
Open account

LLM API Gateway Pricing and Markup, Explained

Gateway pricing looks simple until you add the markup, the top-up fee and the minimum balance. This article shows each layer and how to turn them into one number you can compare.

Last updated

Coins flowing through a glass pipe into a meter, with a small slice split off as markup.

Summary

  • Gateways earn money through a token markup, a top-up fee, a subscription, or a mix of the three.
  • Compare the effective price per million tokens, not the headline rate.
  • Minimum top-ups tie up cash, so check them against your real monthly usage.
  • This site charges a flat $0.15 per 1M input and $0.50 per 1M output tokens, with no subscription.

Where the markup comes from

Searching for llm api gateway pricing and markup usually means one thing: you want to know what you pay above the model's own price. A gateway has costs of its own (servers, support, payment handling) and recovers them in one of a few ways. Most gateways combine two.

ModelHow it shows upWhat to watch
Per-token markupA percentage on each token priceGrows with usage
Top-up feeA percentage taken when you add creditVisible only at payment time
SubscriptionA monthly charge, with or without included usagePaid even in quiet months
Minimum top-upA floor on how much credit you can addLocks up money you may not use
Flat own rateOne price per token for a hosted modelNo markup to calculate

We do not quote other gateways' rates here because they change often. Check each provider's current pricing and plug the numbers into the formulas below.

The formula for effective price

Take everything you pay in a month and divide by the tokens you used. In symbols:

effective price per 1M tokens = (token charges + fees + subscription) / (tokens used / 1,000,000)

Token charges for a chat workload are computed from input and output separately, because output tokens are priced higher than input tokens on almost every API:

token charges = (input tokens / 1M) x input price + (output tokens / 1M) x output price

Then add the layers: multiply by (1 + markup) if there is a markup, add the top-up fee on the amount you funded, and add the subscription. That final sum is what the service really costs.

Worked example with this site's rates

Take a small app that uses 20 million input tokens and 5 million output tokens in a month. At $0.15 per 1M input and $0.50 per 1M output:

  • Input: 20 x $0.15 = $3.00
  • Output: 5 x $0.50 = $2.50
  • Total: $5.50 for 25 million tokens

The effective price is $5.50 / 25 = $0.22 per 1M tokens, blended. That blend depends on your input to output ratio. A summarizer with long inputs and short outputs lands closer to $0.15. A story writer with short prompts and long replies lands closer to $0.50.

Failed or refused requests are not charged, so retries after an error do not add to this total.

What a markup does to that bill

To see the effect of a markup, apply a hypothetical percentage to the same $5.50 of token charges. These percentages are examples, not any provider's real rates.

MarkupMonthly costExtra over $5.50
0%$5.50$0.00
5%$5.775$0.275
10%$6.05$0.55
25%$6.875$1.375

At this volume the markup is small money. It matters at scale: the same 10% on 10 billion tokens a month is a large invoice line. Note too that a subscription of even a few dollars would exceed the entire token bill for a small app, so the shape of the fee matters more than its percentage at low volume.

Minimum top-ups and idle balance

A minimum top-up is a hidden cost when your usage is low. If a service requires $20 and you spend $5.50 a month, a single top-up lasts about 3.6 months ($20 / $5.50). The money is not lost, but it sits there. Credit that expires would be worse, so check that point too.

Here, you can top up any whole amount from $20 to $500, credit never expires, and there is no subscription. Larger top-ups add a bonus:

Top-upBonusCredit you receive
$20none$20.00
$50+5%$52.50
$100+10%$110.00
$200+15%$230.00
$500+15%$575.00

With the $100 top-up, you get $110 of credit, which makes the effective cost of the $5.50 example $5.00 of cash ($5.50 / 1.10). Payment is in crypto only, with USDT on TRC20 or USDC on Base.

A checklist for comparing any gateway

  1. Write down the input and output price per 1M tokens, and whether they include any markup.
  2. Find every fee at the point of payment: top-up percentage, withdrawal or network costs.
  3. Note the minimum top-up and whether credit expires.
  4. Check if failed requests are billed.
  5. Run your real traffic mix through the formula above.
  6. Check what the model is. A cheaper rate for a different model is not the same deal.

The last point deserves emphasis. Price per token only compares like with like. This service runs one open-weight model, so its rate should be judged against what that model does for your workload. The full rate table is on the pricing page, and you can check your balance from code with the X-Balance-USD response header, described in the docs.

Subscriptions versus pay as you go

A subscription changes the math because it is a fixed cost. Say a plan charges a flat monthly fee and includes some tokens. In a busy month, the effective price falls. In a quiet month, you pay the same fee for less use, so the effective price rises. Use the formula from above in both cases and compare the result with a pay-as-you-go service.

Here is a quick test. Suppose your usage is the $5.50 month from the example. A subscription of $10 would double your effective price to $10 / 25 = $0.40 per 1M tokens, before you count any included allowance. Prepaid credit with no subscription has no such floor: a month with zero usage costs zero, and the balance carries over because credit never expires.

Do the same arithmetic for a team. Five developers testing with 2 million tokens each use 10 million tokens. At a blended $0.22 per 1M that is $2.20 for the whole team. The cost of testing is rarely the concern; surprise fees and idle subscriptions are.

Estimating cost before you build

Send a few real requests and read the usage block in the reply. Multiply by your expected daily volume.

from openai import OpenAI

client = OpenAI(base_url="https://api.gatewayapillm.com/v1", api_key="YOUR_KEY")
r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a 150-word product description for a desk lamp."}],
)
u = r.usage
cost = u.prompt_tokens / 1e6 * 0.15 + u.completion_tokens / 1e6 * 0.50
print(u.prompt_tokens, u.completion_tokens, round(cost, 6))

New users can claim $0.50 of trial credit on the API key page, valid for 7 days with no payment method, which is enough for hundreds of test calls of this size.

Common questions

What is a typical gateway markup?

It varies by provider and changes over time, so check each one's current pricing. Compute the effective price per million tokens instead of relying on a headline percentage.

Are there subscriptions here?

No. You pay from prepaid credit at $0.15 per 1M input tokens and $0.50 per 1M output tokens, and credit never expires.

Do failed requests cost money?

Failed or refused requests are not charged.

How do I check my remaining balance?

Call GET /v1/balance or the OpenAI-style credit grants endpoint, or read the X-Balance-USD header on any response.

Get your API key instantly

Register, retrieve your key, and update the base URL. That is all.

Start with free credits

Simple email/password login. Key displayed immediately.