EN ▾
Try with trial credit

Llama 4 API Pricing: How to Compare Hosts

There is no single Llama 4 price. Each host sets its own per-token rates, so the useful skill is comparing them on your own workload.

Last updated

Coins flowing through three glass pipes into separate meters, illustrating price comparison across hosts

Summary

  • Llama 4 API pricing varies by host; check each provider's current pricing page before you commit.
  • Compare input and output rates separately, because most apps pay far more on one side.
  • Cost a real request first: tokens in, tokens out, requests per month.
  • Our API charges $0.15 per 1M input and $0.50 per 1M output tokens, prepaid, with no subscription.

Why Llama 4 API pricing is not one number

Llama is released with open weights, so many companies host it. That is why llama 4 api pricing is a spread of offers rather than a list price from Meta. Each host picks its own rates, its own limits and its own billing rules, and those can change without notice.

So any table of "the price of Llama 4" you find is a snapshot of somebody's checking on one day. We do not publish other providers' prices here for that reason. When a number matters to your budget, open the host's current pricing page and read it yourself.

What does stay stable is the structure. Almost every hosted LLM API bills in tokens, splits input from output, and adds a few side rules. Once you know which questions to ask, you can compare any two offers in ten minutes.

The five numbers to collect from every host

  1. Input price per 1M tokens. This covers your prompt, the system message and the chat history you resend.
  2. Output price per 1M tokens. Output is usually priced higher than input, so long answers cost more than long prompts.
  3. Which variant the price covers. Llama 4 comes in more than one variant, and hosts price each separately. Make sure you are comparing the same one.
  4. Context limit actually served. A model may support a long window while a host caps it lower. A cheaper rate with a smaller window can cost more once you start trimming history.
  5. Side rules. Minimum top-ups, expiring credit, discounts for cached or batched input, rate limits per minute, and whether refused or failed calls are billed.

Write these five down in a small table, one column per host. Gaps in the table tell you something too: a host that does not state its limits clearly is asking you to find out the hard way.

Cost one request before you compare anything

Per-million prices are hard to feel. A request is easier. Take a support-style call with 1,500 input tokens and 300 output tokens, and apply our rates of $0.15 per 1M input and $0.50 per 1M output:

input_tokens = 1_500
output_tokens = 300

cost = input_tokens / 1_000_000 * 0.15 + output_tokens / 1_000_000 * 0.50
print(round(cost, 6))   # 0.000375

That is $0.000225 for input plus $0.00015 for output, or $0.000375 in total. Ten thousand such requests in a month cost $3.75. Plug any other host's input and output rates into the same two lines and you have a like-for-like figure.

To see where your own numbers come from, read the usage block in a real response. Every chat completion returns prompt and completion token counts, and streamed responses report usage at the end.

Three workloads at one set of rates

The same rates give very different bills depending on the shape of the traffic. Here are three common shapes, all priced at $0.15 input and $0.50 output per 1M tokens:

WorkloadPer request (in / out)Requests per monthInput costOutput costTotal
Support bot1,500 / 30010,000$2.25$1.50$3.75
Document summaries20,000 / 5002,000$6.00$0.50$6.50
Long-form generation300 / 1,5005,000$0.225$3.75about $3.98

Notice what moves the total. The summarizer is dominated by input, so a host with a low input rate and a high output rate suits it. The generation workload is the reverse. A host that looks cheap on the headline input number can lose to a rival once your output share is counted.

Hidden costs that do not show on the pricing page

Resent history

Chat APIs are stateless. Every turn sends the whole conversation again, so input tokens grow with each message. A 30-turn chat bills far more input than 30 times the first prompt. Trimming or summarizing old turns is the cheapest optimization you can make on any host.

Billed refusals and failures

Some services charge for a response even when the model declines or the call errors. On our API, failed or refused requests are not charged. Ask every other host what their rule is, since a filter-heavy model can waste a surprising share of a budget.

Expiring credit and minimums

Prepaid balances that expire turn a low rate into a higher one if you do not spend them in time. Our credit never expires, and top-ups are any whole amount from $20 to $500, with a bonus of 5% from $50, 10% from $100 and 15% from $200. A $100 top-up lands as $110 of credit.

Rate limits

A cheap plan with a low request ceiling forces you into queues or a more expensive tier. Our full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60.

Where our API fits, and where it does not

We should be plain about what this is. We do not resell Meta's official Llama API, and we are not a router across vendors. The service runs one open-weight model, operated by an independent provider and tuned to answer without content refusals for lawful adult use. The model ID is uncensored. It is text only, with a 100,000-token context window.

That means if your requirement is "Llama 4, specifically, under a named license and a named version", you should go to a host that serves exactly that and compare it using the checklist above. If your requirement is a low-cost, OpenAI-compatible text endpoint that does not refuse lawful adult requests, our flat rate is worth a test. The details are on the pricing page, and the comparison with Claude API pricing covers the same question from the other direction.

A quick test costs almost nothing. Point any OpenAI client at our base URL:

curl https://api.llamaapipricing.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Summarize this in two lines: ..."}]
  }'

The response carries an X-Balance-USD header, so you can watch the exact cost of each call. New accounts can claim $0.50 of trial credit with one click on the API key page. At the support-bot rate above, that covers roughly 1,300 requests, because $0.50 divided by $0.000375 is about 1,333.

Turning a monthly estimate into a top-up

Once you have a monthly figure, work backwards to how much credit you need. Prepaid billing makes this easy because there is no invoice surprise: you spend down a balance and top it up when it runs low.

Say the support bot above costs $3.75 a month at launch and you expect traffic to triple. That is $11.25. A $20 top-up covers about 53 days at that rate, since $20 divided by $11.25 per month is roughly 1.78 months. A $100 top-up arrives as $110 with the 10% bonus, which stretches the same spend to about 9.8 months.

The point is not to push you toward a large deposit. It is that prepaid pricing lets you size the commitment to the evidence. Start with the minimum, watch the X-Balance-USD header for a week, and top up once the real numbers are in.

If a host offers a plan with a monthly fee, do the same exercise there and count the fee as part of the price. A flat fee that looks small can dominate the bill at low volume, and a free tier with tight limits can cost you in engineering time.

A short checklist for comparing hosts

  • Pick one representative request and measure its input and output tokens.
  • Collect input rate, output rate, served context and side rules from each host's own page, dated.
  • Compute monthly cost at your expected volume and at three times that volume.
  • Run the same prompts on each candidate and compare answer quality as well as price.
  • Check how errors, refusals and retries are billed.
  • Re-check rates every quarter; hosted prices move.

The API docs list every endpoint and header if you want to wire the cost tracking into your own dashboard.

Common questions

Does Meta set the price of the Llama 4 API?

Llama is open-weight, so many hosts serve it and each sets its own rates. Check the current pricing page of the provider you plan to use.

Is your model Llama 4?

No. We run one open-weight model through an independent provider, with model ID uncensored. We are not Meta's official API and not a router across vendors.

What does your API cost per million tokens?

$0.15 per 1M input tokens and $0.50 per 1M output tokens, paid from prepaid credit with no subscription. Failed or refused requests are not charged.

How can I top up?

Any whole amount from $20 to $500, paid in crypto (USDT on TRC20 or USDC on Base). Bonuses are +5% from $50, +10% from $100 and +15% from $200.

Get your key in minutes

Sign up, grab your key, and update your base URL. That’s all there is.