Llama API Pricing: What Hosted Llama Costs per Token
Llama api pricing is not one number. Llama is an open-weight model family, so many providers host it and each sets its own rates, while you can also rent a GPU and serve it yourself. This guide explains how the bills are built and how to estimate yours.
Updated


Key points
- Hosted LLM APIs bill input and output tokens separately, and output is usually the pricier side.
- Renting a GPU turns a per-token cost into an hourly one that runs whether or not you send traffic.
- The model on this site is not Llama; it costs $0.15 per 1M input and $0.50 per 1M output tokens.
- Estimate by multiplying calls per month by tokens per call, then by the rate.
Why there is no single Llama price
Meta publishes the Llama weights under a license, and anyone who meets the license terms can serve them. That is why you find the same family on many hosting services, each with its own price list. Rates vary with the model size, the hosting company, the speed tier and sometimes the context length you use. A small variant costs far less to serve than the largest one, and providers price accordingly.
We will not quote any provider's current rates here, because they change often and a stale number would mislead you. Always open the provider's own pricing page and check the current figures. What stays stable is the structure of the bill, and that is what you need to learn to compare offers fairly.
This site is a different thing. It serves one open-weight model, run by an independent provider, and that model is not Llama. We use these pages to help people who arrived looking for Llama pricing and need a reference point for their own estimates.
The three pricing models you will meet
Per-token billing
You pay for tokens processed. Providers quote the price per 1M tokens and list input and output separately. A token is a few characters, roughly three quarters of an English word on average. This is the most common form for hosted APIs, and it suits uneven traffic because idle time is free.
Hourly GPU rental
You rent a machine and run the model yourself. The cost does not depend on tokens at all. A GPU at H dollars per hour that stays on all month costs 720 x H, since a 30-day month has 720 hours. Your effective price per token is that bill divided by the tokens you actually generated, so low utilization makes it expensive and high utilization makes it cheap.
Subscriptions and plans
Some services sell a monthly plan with a usage allowance. Compare the allowance against your real token count, and check what happens when you exceed it.
Input versus output tokens
Most hosted APIs charge more for output than for input. Reading a prompt can be done in parallel, while writing a reply happens one token at a time, so generation takes more compute. Here the ratio is clear: input is $0.15 per 1M tokens and output is $0.50 per 1M, so output costs about 3.3 times as much per token.
This changes how you optimize. If your app sends long prompts and gets short answers, such as classification or extraction, input dominates the bill. If it writes long replies, such as stories or reports, output dominates. Cutting a verbose system prompt saves money on every call. Setting a sensible max_tokens limits runaway output. Our endpoint treats max_tokens as optional and lets a completion use the rest of the 100,000-token window, so set it yourself if you want to cap spend.
A calculator you can do on paper
Use this formula for any per-token provider:
monthly cost = (calls x input tokens / 1,000,000 x input rate) + (calls x output tokens / 1,000,000 x output rate)
Here are three workloads priced at $0.15 per 1M input and $0.50 per 1M output tokens:
| Workload | Calls per month | Tokens in / out | Input cost | Output cost | Total |
|---|---|---|---|---|---|
| Support chatbot | 10,000 | 1,500 / 300 | 15M x $0.15 = $2.25 | 3M x $0.50 = $1.50 | $3.75 |
| Document summarizer | 2,000 | 20,000 / 1,000 | 40M x $0.15 = $6.00 | 2M x $0.50 = $1.00 | $7.00 |
| Agent with tool calls | 50,000 | 8,000 / 800 | 400M x $0.15 = $60.00 | 40M x $0.50 = $20.00 | $80.00 |
Run the same three rows with another provider's rates and you get a like-for-like comparison. Remember that chats resend history, so the input tokens per call grow as a conversation gets longer.
Hidden costs to check on any provider
- Context limits. A small window forces you to chop documents, which means more calls. This endpoint offers 100,000 tokens per request, prompt plus completion.
- Rate limits. If you hit a cap, you need retries or a higher plan. Here a full key allows 8 concurrent requests and 300 per minute.
- Failed requests. Ask whether errors and refusals are billed. Here they are not.
- Expiring credit. Some prepaid balances expire. Here credit never expires.
- Minimum top-ups. The smallest purchase here is $20, so the first outlay is not tiny even if usage is.
- Idle GPU hours. The biggest hidden cost of self-hosting.
Where this site's model fits
If you came for Llama because you want a capable open-weight model without refusals on lawful adult content, the model here may serve you, but treat it as a separate model and test it. It is tuned to answer without content refusals, it is OpenAI-compatible, and its ID is uncensored. It is not the official Llama API and not a router across vendors. There is no image, audio or embedding support, since the API is text only. The price list is on the pricing page.
Try it with a quick call before you do any serious math:
curl https://api.llamauncensored.cc/v1/chat/completions -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d '{"model":"uncensored","messages":[{"role":"user","content":"Write one sentence about token pricing."}]}'
The response headers include X-Balance-USD, so you can watch your balance drop after each call and calibrate your estimates against real usage.
Paying and getting started
Top-ups are any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. For example, a $100 top-up credits $110. You can pay with crypto (USDT on TRC20, USDC on Base). New users can try the service first with $0.50 of trial credit, claimed with one click on the API key page, valid for 7 days with no card. Setup details are in the documentation. If your code already targets Llama, the Llama API integration guide shows what changes when you switch the base URL, and the uncensored Llama API for developers article gives more background.
More guides
Questions and answers
How much does the Llama API cost?
It depends on the provider, the model size and the speed tier. Check each provider's current pricing page; this guide gives you the formula to compare them.
Is the model on this site Llama?
No. It is a different open-weight model run by an independent provider, and this service is not an official API of Meta or any model vendor.
Is it cheaper to host Llama myself?
Only at steady, high utilization. A rented GPU bills every hour, so low or bursty traffic usually costs less on a per-token plan.
Are failed requests billed here?
No. Failed or refused requests are not charged, and credit never expires.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.