- GrokBezcenzury
- How to Get a Grok API Key and a Cheaper Alternative
How to Get a Grok API Key and a Cheaper Alternative
To get grok api key access you register with the vendor that runs Grok, xAI, and create a key in its developer console. If you only need a text API with fewer refusals, you can also get a working key here without waiting for approval.

Summary
- Official Grok keys come from xAI's own developer console, with its own sign-up and billing.
- Treat every API key as a password: environment variable, never in git or front-end code.
- Here you can claim a $0.50 trial key with one click after sign-up, no card needed.
- The trial lasts 7 days and is limited to one per person.
Two ways to get a key
If you want to get grok api key access for xAI's Grok models, the path goes through the vendor. You create an account on its developer platform, open the keys section of the console, generate a key and fund the account as its billing rules require. The exact screens and prices change, so follow xAI's current documentation and pricing page rather than any third-party description.
This site is a different thing. We are not xAI and our key does not open xAI's models. We run a hosted OpenAI-compatible API for one open-weight model that answers without content refusals for lawful adult use. If that is what you need, the steps below get you a key without waiting for approval.
Get a key here, step by step
- Go to the API key page and sign up with Google, or with email and password.
- After sign-up, claim the trial with one click. You receive $0.50 of credit, valid for 7 days, no card required. It is one per person.
- Copy the key shown on the page.
- Use the base URL
https://api.grokbezcenzury.com/v1and the model nameuncensored.
The key is sent as a bearer token in the Authorization header. Nothing else is needed: no organisation ID, no project ID.
If you use a different client, such as Postman or a no-code tool, the three fields are the same: a base URL, a bearer token and a JSON body with model and messages. Check the docs for the endpoint list, including the /v1/responses method for clients that prefer it.
Make your first call
Test with curl before you open an editor:
curl https://api.grokbezcenzury.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Say hello in one sentence."}]
}'
A JSON reply with a choices array means the key works. Check the response headers as well: X-Balance-USD shows what is left on the account, and X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency show the limits that apply to your key.
The same call in Python with the OpenAI SDK:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.grokbezcenzury.com/v1",
api_key=os.environ["API_KEY"],
)
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(r.choices[0].message.content)Check the key and your balance
Once the first call works, two more checks save trouble later. List the models to confirm the key is accepted, then read the balance so you know how much of the trial is left:
curl https://api.grokbezcenzury.com/v1/models \
-H "Authorization: Bearer YOUR_KEY"
curl https://api.grokbezcenzury.com/v1/balance \
-H "Authorization: Bearer YOUR_KEY"
The models list returns the single model ID, uncensored. The balance call returns your remaining credit, and every chat response also carries it in the X-Balance-USD header. Build a habit of logging that header in your own application. A sudden drop usually means a loop sending more requests than you planned, and a flat line means the key is not the one you think it is.
Also decide early where each key lives. A key used by a script on your laptop, a key used by a staging server and a key used in production should be three different keys once your account has topped up. When one of them leaks, you revoke that single key and the other two keep working.
What the trial key can and cannot do
The $0.50 trial is meant for testing, so it has tighter limits than a funded key: 2 concurrent requests and 60 requests per minute, against 8 and 300 on a full key. That is plenty for trying prompts and checking quality.
How far does $0.50 go? At $0.15 per 1M input tokens and $0.50 per 1M output tokens, a request with 1,500 input and 500 output tokens costs 1,500 x 0.15 / 1,000,000 = $0.000225 for input plus 500 x 0.50 / 1,000,000 = $0.00025 for output, so $0.000475. Dividing $0.50 by that gives about 1,052 requests. If you test with longer prompts, count on fewer.
Keep the key safe
An API key is a password that spends your money. A few rules cover most leaks:
- Store it in an environment variable or a secrets manager. Keep it out of source control, including private repos.
- Never put it in browser JavaScript or a mobile app. Call the API from your server and let your front end talk to your server.
- Use a separate key per project or environment so you can revoke one without breaking the others.
If a key leaks, replace it at once. On the API key page you can regenerate the key whenever you like, and the old one stops working immediately. No support ticket is needed. Accounts that have topped up can hold up to 5 keys, give each a label and revoke any of them, which makes it easy to keep one per service.
Plan for rotation too. Replace keys on a schedule you can keep, for instance whenever a team member leaves or a laptop is lost, and update the secret in every place that uses it. A deploy that reads the key from the environment makes this a one-minute job.
When the key does not work
Most failed first calls come down to a handful of causes. Match the status code to the fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| HTTP 401 | Wrong or missing key, or a stray space or newline | Copy the key again and send it as Authorization: Bearer KEY |
| HTTP 404 | Wrong path or base URL | Use https://api.grokbezcenzury.com/v1 and let the SDK add /chat/completions |
HTTP 429, code rate_limited | More than the per-minute limit | Slow down; trial keys allow 60 requests per minute |
HTTP 429, code concurrency | Too many requests at once | Wait for streams to finish; trial keys allow 2 at a time |
| Model not found | Wrong model name | Use uncensored |
One more cause is an expired trial. The trial credit is valid for 7 days, so a key that worked last week may have nothing left to spend. Add credit on the pricing page with a top-up of $20 or more.
Here is the same call in Node, useful when you want to rule out your Python environment:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.grokbezcenzury.com/v1",
apiKey: process.env.API_KEY,
});
const r = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Reply with the word ok." }],
});
console.log(r.choices[0].message.content);Moving from trial to real use
When the trial is used up, add credit. Top-ups are any whole amount from $20 to $500, paid in crypto (USDT on TRC20 or USDC on Base). Bonuses apply on larger amounts: +5% from $50, +10% from $100 and +15% from $200. A $50 top-up gives $52.50 of credit. Billing is per token with no subscription, and credit never expires. See the pricing page for details.
Production use needs a few more habits than a first call: retries on HTTP 429, timeouts, and logging of the X-Request-Id header so you can trace a problem. Our production checklist walks through them, and the docs cover streaming, tool calling and JSON mode.
More guides
Frequently asked questions
Where do I get an official Grok API key?
From xAI's developer console. Sign up there, create a key and set up billing following their current instructions. Our key does not work with xAI's models.
Is the trial key really free?
Yes. New users can claim $0.50 of trial credit with one click on the API key page. It needs no card, lasts 7 days and is limited to one per person.
What if I lose or leak my key?
Regenerate it on the API key page. The old key stops working at once, and you do not need to contact support.
Can I use the key with the OpenAI SDK?
Yes. Set the base URL to the site's /v1 address, pass your key, and use the model name uncensored.
Access your API key in seconds
Register, retrieve your key, and update your endpoint. That is all there is to it.
View documentation