Skip to content
EN ▾

Uncensored API, transparent billing.

$0.50trial credit

300requests per minute

Get API key

Does Grok Have Filters? What to Know Before You Build

Does Grok have filters? Yes, in the sense that every hosted assistant has some rules, but the details belong to xAI and change often, so test them on your own prompts.

Updated

Three stacked glass filter panels with a light beam passing through, illustrating layers of content filtering

Key points

  • Every hosted AI service sets limits, and Grok is run under xAI's policies, which you should read in their current form.
  • A refusal, a soft redirect and a blocked request are three different failures and need different fixes.
  • This API serves one open-weight model tuned to skip content refusals for lawful adult use, with no moderation layer in front.
  • One hard rule stays: no sexual content involving minors.

Short answer first

Does Grok have filters? Any assistant offered by a company has policies, and Grok is no exception: xAI publishes usage rules and applies them through model training and product settings. How strict those are on a given day, in a given mode, in a given country, is something I cannot confirm and will not guess. Read the current xAI documentation, then run your own prompts.

If your goal is a text endpoint that does not apply content refusals to lawful adult requests, this site offers one. It serves a single open-weight model under the ID uncensored, hosted by an independent provider, reachable through an OpenAI-compatible API at https://api.unfilteredgrok.cc/v1. It is not Grok and not an xAI product.

Three kinds of filter, three different symptoms

People say "filter" for anything that stops an answer. Debugging gets easier when you tell the cases apart.

The hard refusal

The model replies with a short apology and declines. The HTTP call succeeded and you got text back. This is trained behavior. Rewording sometimes helps, which tells you the model is reacting to surface features of the prompt.

The soft redirect

You get an answer, but it avoids the point: the villain turns remorseful in line two, the dangerous plan is replaced with a safety lecture, the scene fades to black before it starts. This is harder to measure because nothing looks like an error. In fiction work it is the most common complaint.

The blocked request

The API returns an error, or the app shows a generic notice, before any model text appears. That is a separate moderation step. Changing your prompt wording changes whether the classifier fires, but the model itself was never consulted.

Each needs a different response. For a hard refusal, try a clearer system prompt. For a soft redirect, tighten the instructions about tone and ending. For a block, you either change your content or change your provider.

Why the same model feels different in app and API

It is common to read "the app refuses this but the API does not" or the opposite. The reasons are mundane. The consumer app sends a large hidden system prompt on every turn. The API sends only what you write. The app may add a moderation pass; a bare API may not, or may use a different one. Regional rules also apply to apps more often than to developer endpoints.

If you are comparing services for a project, compare the API to the API. For the endpoint on this site, you control the whole message list. A short system prompt such as "You are a fiction co-writer. Stay in character and do not add warnings" is passed to the model as written, and nothing is prepended on our side.

from openai import OpenAI

client = OpenAI(base_url="https://api.unfilteredgrok.cc/v1", api_key="YOUR_KEY")

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a fiction co-writer. Stay in character."},
        {"role": "user", "content": "Write the opening of a heist story told by a cynical safecracker."},
    ],
    temperature=0.9,
    max_tokens=600,
)
print(resp.choices[0].message.content)

max_tokens is optional here. If you leave it out, the completion can use whatever remains of the 100,000-token window after your prompt.

How to tell what you are hitting

Add a little logging and the category becomes visible. Log the status code, the finish reason, the length of the reply and the first 80 characters. After a day of real traffic, patterns show up.

import time
from openai import OpenAI, APIStatusError

client = OpenAI(base_url="https://api.unfilteredgrok.cc/v1", api_key="YOUR_KEY")

def probe(prompt):
    try:
        r = client.chat.completions.create(
            model="uncensored",
            messages=[{"role": "user", "content": prompt}],
        )
    except APIStatusError as e:
        return {"kind": "http_error", "status": e.status_code}
    choice = r.choices[0]
    text = choice.message.content or ""
    return {
        "kind": "answer",
        "finish": choice.finish_reason,
        "chars": len(text),
        "head": text[:80],
    }

print(probe("Write a short, cruel monologue for a fictional tyrant."))

Short replies with an apology are hard refusals. Long replies that miss the instruction are soft redirects. HTTP errors are blocks or limits. On this endpoint the errors you should expect are rate limits: HTTP 429 with the code rate_limited when you exceed requests per minute, concurrency when too many requests run at once, and a 429 with Retry-After: 5 during temporary overload. A streamed request holds its concurrency slot until the stream ends, so slow readers count against the cap.

Response headers help as well: X-Request-Id for support questions, X-Balance-USD for your remaining credit, and the two X-RateLimit-Limit-* headers for your caps.

Fixing soft redirects with instructions

Soft redirects are the hardest to spot and often the easiest to fix, because they come from a model's default habits rather than a hard rule. A few instruction patterns reduce them on any chat model, and they work well here.

  • State the genre and the audience. "Adult crime fiction for a reader who wants realism" gives the model a frame to stay inside.
  • Forbid the habit directly. "Do not add warnings, disclaimers or moral summaries" removes the tacked-on lecture at the end of a scene.
  • Give the ending. If a scene must end badly for a character, say so. Models drift toward redemption when the outcome is open.
  • Keep the persona in the system message. Instructions placed in the first user turn fade as the conversation grows; the system message stays in view.
  • Use a few lines of example style. Two sentences of the voice you want beat a paragraph describing it.

Test one change at a time. If you change the system prompt, the temperature and the wording of the request together, you will not know which one mattered. Also remember that the window is 100,000 tokens for prompt plus completion, so very long chat histories eventually need trimming or summarising on your side.

What this endpoint changes and what it does not

The model behind uncensored is an open-weight model tuned to answer without content refusals for lawful adult use. Practical effects: fiction with villains who stay villains, frank discussion of dark themes, roleplay and companion apps for adults, satire that does not apologise for itself. There is no separate classifier between your request and the model, so you will not see a surprise block from a moderation step.

What does not change:

  • The minors rule. No sexual content involving minors, under any framing.
  • Lawful use. The model is meant for lawful adult use, and you are responsible for what you build on it.
  • Model quality limits. An open-weight model can be wrong, can invent facts and can lose track of long instructions. Fewer refusals does not mean more accuracy.
  • Text only. No images, audio or video, no embeddings, no fine-tuning.

If you use tools, the API supports tool calling with tools and tool_choice, streamed tool_calls, and results sent back as role: "tool". JSON mode works through response_format with {"type":"json_object"}. The docs show each of these with working requests.

Testing filters cheaply

You do not need to spend much to find out. Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens, and failed or refused requests are not charged.

A worked example: 100 test prompts, around 300 input tokens each and 500 output tokens each.

  • Input: 100 x 300 = 30,000 tokens, so 0.03 x $0.15 = $0.0045.
  • Output: 100 x 500 = 50,000 tokens, so 0.05 x $0.50 = $0.025.
  • Total: $0.0295, about three cents.

The one-click trial credit of $0.50 is enough to run that test many times over. It is claimed on the API key page after sign-up, one per person, valid for 7 days, no payment details needed. Sign-up uses Google or email and password. Start from the key page, and see the pricing page for paid top-ups: any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. Payment on this site is crypto only, USDT on TRC20 or USDC on Base. Credit never expires and prompts are not used for training.

There is also a short page on getting a Grok API key for readers who arrived looking for the xAI route; it explains how this service differs.

A checklist before you commit to any provider

  1. Write 20 prompts from your real workload, including the uncomfortable ones.
  2. Run them through the API of each candidate, not the chat app.
  3. Record hard refusals, soft redirects and blocks separately.
  4. Check the concurrency and rate limits against your expected traffic. A full key here allows 8 concurrent requests and 300 per minute; a trial key allows 2 and 60.
  5. Read the privacy terms for how prompts are handled.
  6. Look at the price per million tokens for both input and output, and multiply by your own volumes.

That list takes an afternoon and settles the question better than any forum thread. Rerun it whenever a provider announces a model update, since limits move with versions.

Questions and answers

Is Grok censored?

Grok runs under xAI's policies, so it applies some limits. How tight they are in a given mode is documented by xAI and best verified with your own prompts.

Can I turn the filters off on this API?

There is nothing to turn off. The model is tuned to answer without content refusals for lawful adult use, and no moderation layer sits in front of it.

Does it refuse anything?

It will not produce sexual content involving minors. The model can also still decline or fail on a request for other reasons, and refused requests are not charged.

Do I need to pay to try it?

No. New users can claim $0.50 of trial credit with one click on the API key page, without payment details, valid for 7 days.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Start with trial credit

Email and password, key on screen right away.