EN ▾

Unfiltered Grok: Switch your client in three lines

Connect your existing code to our uncensored LLM API in minutes. This guide covers the essential endpoints, authentication, and client configurations needed to start sending requests immediately.

Authentication and Base URL

To use our uncensored model, you need an API key from your account dashboard. Our endpoint is fully OpenAI-compatible, so you can use the same SDKs and client libraries you already know. Simply update your client configuration to point to our base URL and provide your key.

  • Base URL: https://api.unfilteredgrok.top/v1
  • Model ID: uncensored
  • Auth Header: Authorization: Bearer YOUR_API_KEY

This setup ensures that your existing logic for handling chat completions works without modification. You are connecting to an independent service, not the official vendor's infrastructure.

First Request

Send a standard chat completion request to test connectivity. The endpoint accepts text input and returns text output. Use the curl command below to verify your API key and model access. This confirms that your credentials are valid and the service is responding.

This raw HTTP request demonstrates the basic structure required for all subsequent interactions. If you receive a JSON response, your integration is working correctly.

Python SDK Integration

For Python developers, the official openai package works directly with our API. Configure the client with our base URL and your API key. This allows you to leverage familiar methods like chat.completions.create() while benefiting from our uncensored model's behavior.

Ensure you are using a recent version of the SDK to support all parameters. This approach minimizes code changes and reduces the risk of integration errors when switching from other providers.

Node.js SDK Setup

JavaScript and TypeScript developers can use the openai Node package. Initialize the client with the same base URL and key structure as the Python example. This ensures consistent behavior across your application's backend services.

The SDK handles serialization and request formatting automatically. You can continue using your existing prompt templates and logic without rewriting the core communication layer. This makes it easy to deploy the uncensored model into production environments quickly.

Streaming Responses

Enable streaming by setting the stream parameter to true. The API returns data incrementally via Server-Sent Events (SSE). This is ideal for real-time user experiences where latency matters.

Each chunk contains a portion of the response. The final chunk includes token usage statistics. Handle these chunks in your client to update the UI progressively. This method reduces perceived wait times and provides a smoother interaction for end-users.

Limits, Errors, and Context

Your API key is limited to 300 requests per minute and 8 concurrent requests. If you exceed this, you will receive a 429 rate limit error. Ensure your key has sufficient prepaid credit; a 402 error indicates a balance issue. An invalid key results in a 401 error.

The context window supports 100,000 tokens total, with no separate output cap. Use the max_tokens parameter to control output length. Errors and refusals do not consume credit, but valid token usage does. Keep request bodies under 8 MB to ensure reliable processing.

cURL

curl https://api.unfilteredgrok.top/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
  }'

Python

from openai import OpenAI

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

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.unfilteredgrok.top/v1", apiKey: process.env.API_KEY });

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);

Streaming

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Technical reference

If your tool speaks the OpenAI API, these are the details that matter.

ItemValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Model IDuncensored
API keyAuthorization: Bearer YOUR_KEY
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.unfilteredgrok.top/v1
Completion lengthprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Context window100,000 tokens, input and output combined
JSON modeJSON object mode via response_format json_object
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingYes — server-sent events; the last chunk carries token usage
Request size8 MB request body
Rate limit300/min per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requests8 requests at the same time per key
Subscriptionno monthly fee; paid credit does not expire
How you payprepaid credit, charged by real token usage; errors and refusals are free
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Bonus credit+5% from $50, +10% from $100, +15% from $200
AccountGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one
Content policyadult content allowed; sexual content involving minors is refused

HTTP errors

Errors come back as JSON with a stable type; failed and refused requests are not billed.

StatusTypeReason
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Is this the official Grok API?

No, we are an independent service. We host an open-weight model tuned for uncensored responses, served via an OpenAI-compatible endpoint. It is not GPT, Claude, or the official Grok API.

How do I pay for usage?

We accept crypto only: USDT (TRC20) or USDC (Base). You can top up with whole amounts from $20 to $500. Prepaid credit never expires, and errors do not consume funds.

What is the maximum output length?

There is no separate output cap per response. If you do not set max_tokens, the response can run to the end of the window. The total context window, including the prompt, is 100,000 tokens.

Your key is one form away

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

Get API key