Quickstart for NSFW Grok users
Drop your OpenAI-compatible client into this uncensored API in three lines. Configure the base URL and API key, then send text.
https://api.nsfwgrok.cc/v1uncensored
Authentication
The API uses standard Bearer token authentication. You receive a single API key immediately after signing up via Google or email. Keep this key secure; it provides full access to your prepaid credit. Unlike some services, we do not require a phone number or credit card for the initial trial.
- Header:
Authorization: Bearer YOUR_API_KEY - Base URL:
https://api.nsfwgrok.cc/v1
Ensure your client library points to this base URL. The endpoint is fully OpenAI-compatible, meaning most existing integrations work with minimal configuration changes. If you are switching from another provider, simply update the base_url and api_key parameters in your SDK configuration.
Basic Chat Completion
Send a simple text prompt to receive a direct response. This is the core functionality: text in, text out. The model identified as uncensored is tuned to answer without content refusals for lawful adult use, making it suitable for creative writing, roleplay, or controversial topics.
Make a POST request to /v1/chat/completions. The system processes your input and returns the generated text. Errors such as invalid keys or insufficient credit do not consume your prepaid credit, so you can retry safely. Use this endpoint for quick, non-streaming completions where you need the full response before proceeding.
Streaming Responses
For lower latency and real-time token display, use Server-Sent Events (SSE). Streaming is essential for applications that need to show progress to users as the model generates text. Each chunk contains a portion of the response, and the final chunk includes the total token usage for the request.
This approach reduces the time to first token significantly compared to waiting for the entire response. It is ideal for chat interfaces or live demonstrations. Note that streaming does not change the pricing model; you are still charged per token based on the final usage reported in the last chunk.
Function Calling
The API supports tool definitions and function calling, allowing the model to output structured data for your application to execute. Define your tools in the tools parameter, and the model will respond with a tool call if appropriate. You can also specify tool_choice to force or prevent tool usage.
This feature enables complex workflows where the LLM acts as a router or data extractor. For example, you can ask the model to extract specific fields from a text input or trigger external APIs based on user intent. Ensure your client library supports the OpenAI-compatible tool format for seamless integration.
JSON Mode
Force the model to output valid JSON by setting response_format to {"type": "json_object"}. This is critical for applications that parse the LLM output programmatically. It reduces parsing errors and ensures consistent structure in your downstream logic.
Use JSON mode when you need reliable data extraction, such as extracting entities, translating data into a specific schema, or generating configuration files. The model will adhere to the JSON structure more strictly in this mode, though you should still validate the output in your code. This is a standard feature in modern LLM APIs and works reliably with our uncensored model.
Parameters & Limits
The context window supports up to 100,000 tokens total (prompt + completion). There is no separate output cap per request, and if you do not set max_tokens, the response can run to the end of the window. You can control generation behavior using temperature, top_p, stop, seed, presence_penalty, and frequency_penalty.
Rate limits are set to 300 requests per minute and 8 concurrent requests per key. The request body must not exceed 8 MB. If you exceed these limits, you will receive a 429 Too Many Requests error. For authentication errors, a 401 status indicates an invalid key, and a 402 status indicates insufficient credit. Keep these constraints in mind when designing your application's retry logic.
cURL
curl https://api.nsfwgrok.cc/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.nsfwgrok.cc/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.nsfwgrok.cc/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)What the API supports
One table with every limit, feature and price that applies to your key.
| Spec | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| API key | Authorization: Bearer YOUR_KEY |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Base URL | https://api.nsfwgrok.cc/v1 |
| Context window | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Streaming | Supported (stream: true), usage included at the end |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| JSON mode | JSON object mode via response_format json_object |
| Requests per minute | 300 requests per minute per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | 8 requests at the same time per key |
| Request size | up to 8 MB per request |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Trial credit | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Credit expiry | no monthly fee; paid credit does not expire |
| Sign-in | Google or e-mail and password |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
Error codes
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
What happens if I make a mistake and send too many tokens?
Errors do not consume your prepaid credit. If you hit a rate limit or send an invalid request, you can retry without penalty. This allows you to debug your integration confidently.
Can I use this API with the official OpenAI Python SDK?
Yes. The API is fully OpenAI-compatible. You only need to update the base_url to https://api.nsfwgrok.cc/v1 and provide your API key. All standard parameters like temperature and model work as expected.
Is the model the same as Grok or GPT?
No. The model ID is uncensored. It is an open-weight model run on our own servers, tuned for uncensored output. It is not GPT, Claude, Gemini, or any other vendor's model.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.