grokunrestricted.topDoes Grok Have an API? What Developers Should Know
Does Grok Have an API? What Developers Should Know
Short answer: yes, the company behind Grok publishes a developer API. This page explains what that means, what to verify, and what to use if you need a different kind of text endpoint.
Updated

Key points
- The maker of Grok offers its own developer API; read its current docs for models, prices and usage policy.
- This site is not that API. It runs one open-weight model under the ID uncensored.
- Access is OpenAI-compatible: change the base URL and key in an existing client.
- Pricing here is $0.15 per 1M input tokens and $0.50 per 1M output tokens, prepaid.
The direct answer
So, does Grok have an API? Yes. The company that builds Grok sells programmatic access to its models for developers, separate from the chat product you use in an app or on a social network. You create an account in its developer console, generate a key, and send requests over HTTPS. The details of that service, including the model names, context sizes, prices and rate limits, change over time, so the only reliable source is the vendor's own documentation. I will not quote numbers for it here because they would go stale and I cannot verify them for you.
What you can rely on is the general shape. Hosted LLM APIs from the large vendors look alike: a bearer key, a chat endpoint that takes a list of messages, optional streaming, tool calling and a JSON output mode. Many of them copied the request format that OpenAI popularised, which is why a client written for one often works with another after a small change.
This site is a different thing, and it helps to be clear about that from the start. It is not the official Grok API and it is not a reseller of it. It is a hosted API for a single open-weight model run by an independent provider, tuned to answer without content refusals for lawful adult use. If you want Grok itself, go to the vendor. If you want an OpenAI-style endpoint with a model that does not refuse by default, read on.
What to check before you build on any Grok API
Before you write code against the vendor's service, spend ten minutes on these points. They decide whether the API fits your project.
- Model list and names. Call the vendor's models endpoint or read its docs. Model IDs get renamed and retired, so do not hard-code one from an old tutorial.
- Pricing. Look at the input and output token rates and whether cached or batch pricing applies. Check their current pricing page rather than a blog post.
- Usage policy. Every large vendor publishes rules on what you may generate. Read them against your use case, especially for fiction, roleplay or adult-oriented products.
- Rate limits and tiers. New accounts often start with low limits that grow with spend or account age.
- Data handling. Find out whether prompts are retained and whether they are used for training.
- Regional availability. Some services are limited by country or by payment method.
None of these is a reason to avoid the vendor. They are the normal due diligence for any hosted model, and the same list applies to this site. The next sections show what the answers look like here.
Why developers look for an alternative endpoint
People who search this question are usually in one of three situations. Some just want to know whether Grok can be called from code. Some already have the vendor's API and keep hitting refusals on creative or mature fiction, and want a model that follows the prompt. Others build a companion app, a roleplay frontend or a writing tool for adults and need an endpoint whose behaviour is predictable for that audience.
For the second and third groups, a model that is tuned to answer without content refusals is the practical requirement. The model behind this site is built for that. It still has a hard limit: no sexual content involving minors, ever. Everything else sits under the rule of lawful adult use, and you remain responsible for what your application does with the output.
There is also a plain engineering reason to want a second endpoint. If your product depends on a single provider, a policy change or an outage on their side becomes your outage. A client that can swap its base URL in a settings file is easy to keep portable. Keeping both options open costs little. If you want to see how refusals behave in practice, the troubleshooting guide covers common cases.
What this API offers
Here are the facts, nothing more. The base URL is https://api.grokunrestricted.top/v1. The model ID is uncensored. Authentication is the standard header Authorization: Bearer <key>. Two methods exist: POST /v1/chat/completions and GET /v1/models.
| Item | Value |
|---|---|
| Context window | 100,000 tokens, prompt plus completion |
| Streaming | SSE with stream: true, usage at the end |
| Tool calling | Yes, tools and tool_choice |
| JSON mode | Yes, response_format with json_object |
| Input price | $0.15 per 1M tokens |
| Output price | $0.50 per 1M tokens |
| Full key limits | 8 concurrent, 300 requests per minute |
It is text only. There is no image, audio or video generation, no embeddings and no fine-tuning. Prompts are not used for training. Failed or refused requests are not charged, and credit never expires.
The full parameter list lives in the API docs, and the rates are on the pricing page.
Try it with the OpenAI SDK
Because the API follows the OpenAI request format, you do not need a special library. Install the official Python package and point it at this base URL.
from openai import OpenAI
client = OpenAI(
base_url="https://api.grokunrestricted.top/v1",
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Explain what an SSE stream is in two sentences."},
],
)
print(resp.choices[0].message.content)The same call with curl:
curl https://api.grokunrestricted.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"uncensored","messages":[{"role":"user","content":"Say hello."}]}'If you migrate from another OpenAI-style provider, the only edits are the base URL, the key and the model name. Response headers include X-Request-Id and X-Balance-USD, which is handy for logging how much credit remains after each call.
Getting a key and paying
Sign up with Google, or with an email and password. On the API key page you can claim $0.50 of trial credit with one click. It is one per person, lasts 7 days and needs no payment. The trial key runs at 2 concurrent requests and 60 requests per minute, which is enough to test a client end to end.
For real use you top up with any whole amount from $20 to $500. Larger top-ups carry a bonus: +5% from $50, +10% from $100 and +15% from $200. This site accepts crypto: USDT on TRC20 or USDC on Base. There is no subscription. You spend prepaid credit as tokens are used. Start at the API key page.
A quick sense of cost: a request with 2,000 input tokens and 500 output tokens costs 2,000 × $0.15 / 1M plus 500 × $0.50 / 1M, which is $0.0003 + $0.00025 = $0.00055. A $20 balance covers roughly 36,000 such requests.
Which one should you pick
Use the vendor's own API when you specifically need Grok models, its newest features or a first-party support contract. Check their current pricing and policy and decide from there.
Use this API when you want an OpenAI-compatible endpoint backed by one open-weight model that does not refuse lawful adult requests, with simple prepaid billing and a 100,000-token window. It is also a reasonable second endpoint behind a client that already supports a custom base URL. Many teams run both: one provider for general assistant features, another for creative or mature-fiction paths. A simple router in your own code, keyed on the feature or the user setting, is enough for that. Keep the model name and base URL in configuration so the switch needs no redeploy.
One more practical test: run the same ten prompts from your real workload through each candidate and compare the answers side by side. Count refusals, check formatting, and note the token usage each call reports. That small experiment tells you more than any feature list.
Be honest about the limits. This is one model, not a router, and it is not Grok. If your evaluation says another model is better at your task, trust the evaluation.
More guides
Questions and answers
Does Grok have an API I can call from code?
Yes. The company that makes Grok offers a developer API with keys from its console. Read its current docs for model names, prices and limits.
Is this site the official Grok API?
No. It is an independent hosted API for one open-weight model with the ID uncensored. It is not affiliated with the makers of Grok or any other vendor.
Can I use the OpenAI Python SDK with it?
Yes. Set base_url to https://api.grokunrestricted.top/v1, use your key, and set the model to uncensored. Streaming, tool calling and JSON mode work through the same SDK.
Is there a free tier?
New users can claim $0.50 of trial credit valid for 7 days, one per person, with no payment needed. After that you pay as you go from prepaid credit.
How do I pay on this site?
With crypto: USDT on TRC20 or USDC on Base. Top-ups start at $20.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
https://api.grokunrestricted.top/v1Get API key