The short answer on grok api key pricing
Any text API bills on two meters: tokens you send (input) and tokens the model writes back (output). Output is nearly always the more expensive meter, and that holds here. If you want to know what xAI charges for Grok, the only reliable source is their own pricing page, so check their current pricing before you commit to a budget. We will not guess at their numbers, because they change and a stale figure in an article is worse than none.
What we can state precisely is our own price. This service is a hosted, OpenAI-compatible text API running one open-weight model, addressed as uncensored. It is not the xAI API and it does not serve Grok models. It costs $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription and no monthly minimum. You top up credit, you spend it, and what is left stays on the account.
That makes the comparison simple to run yourself. Take the token counts you expect, plug them into both price lists, and compare the totals. The rest of this article gives you the formula and several worked examples so you can do it in a minute.
The formula and a few reference prices
The cost of one request is:
cost = (input_tokens x 0.15 / 1,000,000) + (output_tokens x 0.50 / 1,000,000)
Here is the same thing for a handful of request shapes. Every figure below is computed from the two prices above.
| Request shape | Input cost | Output cost | Total |
|---|---|---|---|
| 1,000,000 in and 1,000,000 out | $0.15 | $0.50 | $0.65 |
| 2,000 in and 500 out (chat turn) | $0.0003 | $0.00025 | $0.00055 |
| 50,000 in and 2,000 out (long document) | $0.0075 | $0.001 | $0.0085 |
| 500 in and 3,000 out (short story) | $0.000075 | $0.0015 | $0.001575 |
Two things stand out. First, a single request is almost never worth worrying about; the cost shows up at volume. Second, the story row shows how output-heavy work tilts the bill toward the $0.50 meter, even with a tiny prompt. If your product writes long replies, estimate output carefully.
Worked example: a chat product with 100,000 requests a month
Suppose you run a companion or fiction app. Each request carries a system prompt plus recent history, about 1,500 input tokens, and the model replies with about 400 tokens. Over a month you serve 100,000 requests.
- Input: 100,000 x 1,500 = 150,000,000 tokens, which is 150M x $0.15 = $22.50.
- Output: 100,000 x 400 = 40,000,000 tokens, which is 40M x $0.50 = $20.00.
- Total: $42.50 for the month.
Now stress it. If your history grows and the average prompt doubles to 3,000 tokens, input becomes 300M tokens, or $45.00, and the total rises to $65.00. If instead replies get longer, at 800 tokens, output becomes 80M tokens, or $40.00, and the total with the original prompt size is $62.50. Seeing both directions helps you decide whether to trim history or cap reply length first.
You can set max_tokens to cap a reply, but it is optional here. Without it, a completion can use whatever is left of the 100,000-token window, so for cost control on chatty models it is a sensible habit to set it explicitly.
What the trial and the first top-up buy you
New accounts can claim $0.50 of trial credit with one click on the API key page after sign-up. It is one per person, valid for 7 days, and needs no payment details. Sign-up works with Google or with email and password. At the 2,000-in, 500-out chat shape above, $0.50 covers about 900 turns ($0.50 / $0.00055 is roughly 909), which is plenty to judge whether the output style fits your use case.
Trial keys are limited to 2 concurrent requests and 60 requests per minute. Full keys get 8 concurrent requests and 300 per minute.
When you move to paid usage, top-ups are any whole amount from $20 to $500, paid in crypto: USDT on TRC20 or USDC on Base. Larger top-ups carry a bonus:
| Top-up | Bonus | Credit you receive |
|---|---|---|
| $20 | none | $20.00 |
| $50 | +5% | $52.50 |
| $100 | +10% | $110.00 |
| $200 | +15% | $230.00 |
At the 100,000-requests-a-month example ($42.50), a single $50 top-up with its bonus ($52.50) covers that month with room left over, and since credit never expires, the leftover simply carries forward. The pricing page lists the same tiers.
Prepaid versus a billing relationship
Prepaid credit changes how you manage risk. With an invoice or auto-billing model, a bug that loops requests can run up a bill you discover later. With prepaid credit, the worst case is bounded by the balance. Every response includes an X-Balance-USD header, so your own code can watch the balance and alert you before it runs dry.
from openai import OpenAI
client = OpenAI(
base_url="https://api.grokapikey.com/v1",
api_key="YOUR_KEY",
)
raw = client.chat.completions.with_raw_response.create(
model="uncensored",
messages=[{"role": "user", "content": "Write a two-line poem about rain."}],
max_tokens=60,
)
print(raw.headers.get("X-Balance-USD"))
completion = raw.parse()
print(completion.usage)
print(completion.choices[0].message.content)
Failed or refused requests are not charged, so retries after an error do not drain credit for work you never received. The usage object in each response gives the exact token counts, which you can multiply by the two prices to reconcile against the balance.
Where bills grow without warning
Most surprises come from a few repeatable causes, and each one is easy to check against the formula.
- Growing chat history. If you resend the whole conversation on every turn, input tokens climb with each message. A conversation that reaches 20,000 tokens of history costs 20,000 x $0.15 / 1M = $0.003 in input for every further turn, even if the new message is one line.
- Long system prompts. A 1,500-token persona prompt sent 100,000 times is 150M input tokens, or $22.50, before a single user word is counted. Trim it, or keep only what the model needs.
- Unbounded replies. Without a
max_tokenscap, a model that rambles spends output tokens at $0.50 per 1M. A reply that runs to 4,000 tokens costs $0.002, which is more than the whole 2,000-in, 500-out chat turn above costs three times over. - Retries in loops. Failed requests are not charged, but a retry loop that succeeds repeatedly on a bad prompt will bill you each time it succeeds.
The usage block returned with each response lets you log real token counts per feature. After a week of logs you will know your true averages, and from them your true monthly cost.
Choosing between this and Grok
Price is only one input to the decision. Be honest about what each option is for.
- Pick xAI's Grok API if you specifically need Grok models, or capabilities that this service does not offer. Read their documentation and current pricing, since we cannot speak to either.
- Pick this API if you want a plain OpenAI-compatible text endpoint with a single open-weight model tuned to answer without content refusals for lawful adult use, a fixed token price, and crypto prepayment.
Keep the limits in mind. This is text only: no image, audio or video generation, no embeddings and no fine-tuning. There is one model, with a 100,000-token context window shared by prompt and completion. One hard rule applies: no sexual content involving minors. Prompts are not used for training.
Because the interface is OpenAI-compatible, trying it costs very little engineering. You change the base URL and key in an existing client and run your own prompts. The documentation covers streaming, tool calling and JSON mode, and the overview of this Grok alternative explains how the service is positioned.
Getting started in three steps
- Sign up with Google or email and password, then open the API key page and claim the $0.50 trial.
- Point your client at
https://api.grokapikey.com/v1with the modeluncensored. - Run the same prompts you use today, read the usage numbers, and multiply them by the two prices.
curl https://api.grokapikey.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Say hello in five words."}],"max_tokens":30}'
Run a few hundred real requests from your workload during the trial. Real traffic gives you better averages for input and output length than any estimate, and those two averages are all the cost formula needs.
More guides
- Grok AI API Documentation: OpenAI-Compatible Setup
- Grok API Key for n8n: Uncensored LLM Workflow Setup
- Uncensored API Key: Grok API Alternative
Frequently Asked Questions
Is the uncensored model truly without content filters?
Yes, the model is tuned to answer without content refusals for lawful adult use. The only hard limit is that sexual content involving minors is always blocked. This makes it suitable for creative and adult content generation without unexpected restrictions.
Can I use the official OpenAI SDKs with this API?
Absolutely. Our API is fully OpenAI-compatible. You can use the same SDKs and client libraries, simply by updating the base URL and API key in your configuration. This ensures a smooth transition for developers already familiar with OpenAI’s ecosystem.
How does the prepaid credit system work?
You purchase credit starting from $20, which never expires. You pay only for the tokens you use, with no monthly fees or subscription lock-in. Bonuses are applied for larger purchases, enhancing the value of your investment.
Is my data used for training?
No, prompts are not used for training. Your data remains private, and an account requires only an email and password. This ensures that your content and usage patterns are not leveraged for model improvement without your consent.
