Open account
  1. GrokBezcenzury
  2. Developer Quickstart Guide

Developer Quickstart Guide

Connect to the uncensored LLM via the OpenAI-compatible API. This guide covers the base URL, authentication, and core request structures.

Prerequisites: Key and Base URL

The base_url is https://api.grokbezcenzury.com/v1. You need a valid API key for authorization. The key appears immediately after you sign up with Google or email.

Sending Your First Request

Send a POST request to /v1/chat/completions. Use the model ID uncensored for the response.

curl https://api.grokbezcenzury.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Generate 200 lines of Python code"}]
  }'

Python SDK Integration

Initialize the client with your base URL and key. Set the model to uncensored. The SDK handles serialization automatically.

from openai import OpenAI

client = OpenAI(base_url="https://api.grokbezcenzury.com/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 SDK Setup

Configure the client to point to our base URL. Pass the model ID uncensored in your completion call.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.grokbezcenzury.com/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 Responses with SSE

Set stream: true to receive Server-Sent Events. The final chunk includes the token usage statistics.

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)

Limits, Errors, and Context

The context window is 100,000 tokens. You face a 401 error with an invalid key. A 402 error means no credit remains. A 429 error indicates you hit the 300 requests per minute limit.

Frequently asked questions

What is the base URL for the grok bez cenzury API?

The base URL is HTTPS://api.grokbezcenzury.com/v1. It works with standard OpenAI-compatible clients.

How do I handle streaming responses?

Set the stream parameter to true. You receive Server-Sent Events with the final chunk containing usage data.

What happens if I exceed the rate limit?

You receive a 429 error. The limit is 300 requests per minute per key.

Access your API key in seconds

Register, retrieve your key, and update your endpoint. That is all there is to it.