Grok API Pricing: What We Charge per Token
If you searched for grok api pricing, here is the number for this service: $0.15 per 1M input tokens and $0.50 per 1M output tokens, paid from prepaid credit. This site is an independent OpenAI-compatible API, not the official xAI API, so the figures below apply to our endpoint only.

Key points
- Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens, with no subscription.
- A typical chat turn of 2,000 tokens in and 500 out costs $0.00055.
- Top-ups run from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200.
- Failed or refused requests are not charged, and credit never expires.
The rates at a glance
Billing is pay as you go. You add credit, send requests, and every response deducts its token usage from the balance. There is no monthly fee, no seat fee and no minimum commitment beyond the first top-up.
| Item | Price |
|---|---|
| Input tokens (your prompt, history, system message) | $0.15 per 1M |
| Output tokens (the model's reply) | $0.50 per 1M |
| Failed or refused requests | Not charged |
| Expiry of prepaid credit | Never |
One model is served, with the ID uncensored, so there is no tier table to decode. Every request is priced with the same two numbers, whether it is a one-line question or a prompt that fills most of the 100,000-token context window.
You can see the same figures on the pricing page. This article walks through what they mean in practice.
What a token is, and how to estimate yours
A token is a chunk of text, usually a short word or part of a longer one. For ordinary English prose a common rough rule is about four characters per token, or three quarters of a word. Code, non-English text and unusual formatting tend to use more tokens per character, so treat the rule as a starting point and not a promise.
You do not have to guess for long. Every non-streamed response includes a usage block with prompt and completion token counts, and streamed responses report usage at the end of the stream. Log those two numbers per request for a day and you will have your real averages. Multiply by the rates and you have a forecast based on your own traffic.
The formula is short:
- input cost = input tokens / 1,000,000 x 0.15
- output cost = output tokens / 1,000,000 x 0.50
- request cost = input cost + output cost
Output tokens cost a little over three times as much as input tokens, so a short answer to a long prompt is cheap, and a long answer to a short prompt costs more than you might expect.
Worked examples with exact math
Here are five common workloads, each computed from the two rates above.
One chat turn
A support-style message with 2,000 tokens of context and instructions in, and a 500-token reply out. Input: 2,000 / 1,000,000 x $0.15 = $0.0003. Output: 500 / 1,000,000 x $0.50 = $0.00025. Total: $0.00055. Ten thousand turns like that come to $5.50.
A document question with a big prompt
You paste 50,000 tokens of source material and ask for a 1,000-token summary. Input: 50,000 / 1,000,000 x $0.15 = $0.0075. Output: 1,000 / 1,000,000 x $0.50 = $0.0005. Total: $0.008, so 1,000 such summaries cost $8.
A full-window request
The context window is 100,000 tokens, prompt plus completion together. Fill 98,000 with input and take 2,000 of output. Input: 98,000 / 1,000,000 x $0.15 = $0.0147. Output: 2,000 / 1,000,000 x $0.50 = $0.001. Total: $0.0157. Even the largest request you can make costs under two cents.
A batch job
Classify 5,000 documents, each 3,000 tokens in and 300 tokens out. Input: 5,000 x 3,000 = 15,000,000 tokens, which is 15 x $0.15 = $2.25. Output: 5,000 x 300 = 1,500,000 tokens, which is 1.5 x $0.50 = $0.75. Total: $3.00.
A long roleplay or companion session
Chat apps resend the whole history on every turn, so input grows as the conversation does. Assume an 800-token system prompt, and each turn adds 150 tokens from the user and 250 from the model. Over 30 turns, the input at turn k is 800 + 400 x (k - 1) tokens. Summed over all turns that is 30 x 800 + 400 x (0 + 1 + ... + 29) = 24,000 + 174,000 = 198,000 input tokens. Output is 30 x 250 = 7,500 tokens. Input: 198,000 / 1,000,000 x $0.15 = $0.0297. Output: 7,500 / 1,000,000 x $0.50 = $0.00375. Total: $0.03345, about three and a third cents for the whole session.
Why input adds up faster than you expect
The session example shows the pattern. The model wrote only 7,500 tokens, yet the input side was 198,000 tokens because history is sent again each turn. Input volume was about 26 times the output volume, which more than offsets the lower input rate: $0.0297 for input against $0.00375 for output. In long sessions the input line is the bigger one.
If you run chat at scale, three habits keep that in check:
- Cap history. Keep the system prompt plus the last N turns, and summarise or drop older ones.
- Keep the system prompt tight. A 3,000-token persona repeated on every call costs $0.00045 each time, which is $4.50 per 10,000 calls before anyone has said a word.
- Set
max_tokenswhen you know a reply should be short. It is optional, and without it the completion can use whatever is left of the window.
Retries cost money only when they succeed, because failed or refused requests are not charged. Still, a retry loop that resends a huge prompt on every attempt is worth bounding, so see the rate-limit notes in the docs.
Top-ups, bonuses and payment
You fund the account with any whole dollar amount from $20 to $500. Larger top-ups earn a bonus added to your balance: +5% from $50, +10% from $100 and +15% from $200.
| You pay | Bonus | Credit you receive |
|---|---|---|
| $20 | none | $20.00 |
| $50 | +5% | $52.50 |
| $100 | +10% | $110.00 |
| $200 | +15% | $230.00 |
| $500 | +15% | $575.00 |
The bonus lowers your effective rate. On a $200 top-up you receive $230 of credit, so each $1 of credit costs you about $0.87, and the effective prices are roughly $0.13 per 1M input tokens and $0.43 per 1M output tokens.
Payment on this site is crypto only: USDT on TRC20 or USDC on Base. Credit never expires, so there is no pressure to use a top-up before a deadline, and a $20 balance can sit untouched for months. For scale: $20 buys 133.3M input tokens or 40M output tokens, or about 36,000 chat turns of the 2,000-in, 500-out size above.
Step-by-step instructions for creating the key and adding funds are on the API key page.
Trying it before you pay
New users 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 is with Google, or with email and password.
At the chat-turn size from earlier ($0.00055 each), $0.50 covers about 900 requests, which is plenty to test a prompt, a streaming client and a tool-calling loop. The trial key has lower limits than a funded key: 2 concurrent requests and 60 requests per minute, against 8 concurrent and 300 per minute for a full key.
If the key does not work on the first try, the key troubleshooting page covers the usual causes: a wrong base URL, a missing Bearer prefix, or a model name left over from another provider.
Tracking spend as you go
Each response carries an X-Balance-USD header with your remaining balance, plus X-Request-Id for support questions and rate-limit headers. That makes a spend meter easy to build without a separate dashboard call. A quick way to see the headers:
curl -i https://api.grokapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Say hi in five words."}],
"max_tokens": 20
}'Look for X-Balance-USD in the response headers, run the same call again, and the difference between the two readings is the cost of that request. Log it next to your own request IDs and you can attribute spend to features or users.
For a new project, a simple routine gives a reliable estimate.
- Measure average input and output tokens on 50 to 100 real requests.
- Apply the two rates and multiply by expected daily volume.
- Add a margin for history growth if your app is conversational.
- Pick a top-up size, remembering that the bonus starts at $50.
For comparisons with other providers, check their current pricing pages and run the same token counts through their rates. Prices elsewhere change, so we do not quote them here.
More guides
Questions and answers
Is this the official xAI Grok API?
No. This is an independent, OpenAI-compatible API serving one open-weight model with the ID uncensored. It is not run by xAI or any other model vendor.
Is there a subscription or monthly minimum?
No. You pay from prepaid credit by the token, the smallest top-up is $20, and credit never expires.
Do I pay for failed or refused requests?
No. Failed or refused requests are not charged, and only successful completions deduct tokens from your balance.
How can I check my balance?
Every API response includes an X-Balance-USD header with your remaining balance, so you can read it from your own code after each call.
How do I pay?
Top-ups on this site are crypto only, using USDT on TRC20 or USDC on Base, in any whole amount from $20 to $500.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.