NSFW Grok: First request in five minutes
Get your first response from the uncensored model in under five minutes by pointing your existing OpenAI client to our base URL and swapping in your API key.
On this page
Base URL and Authentication
Our API is OpenAI-compatible, meaning you likely already have the client code ready. The only changes required are the base URL and the API key. Use https://api.nsfwgrok.top/v1 as your endpoint. Authentication is handled via a Bearer token in the Authorization header. You generate this key instantly on the Get API key page after signing in with Google or email. No phone number is required, and the key is displayed immediately. Store this key securely; it is the only credential needed to access your prepaid credit.
Unlike services that bundle chat interfaces, we provide raw API economics. You pay only for tokens consumed. Errors and refusals do not charge your balance. This approach keeps costs predictable for developers building automated pipelines or batch processing workflows that require uncensored output.
Sending Your First Request
Start by sending a standard chat completion request. The model ID is uncensored. This open-weight model is tuned to answer without content refusals for lawful adult use, but it strictly blocks sexual content involving minors. Requests for that specific content will be refused. All other lawful adult, fictional, or controversial topics are permitted. The following example demonstrates a basic text-in, text-out call using the cURL command-line tool.
curl https://api.nsfwgrok.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."}]
}'If the request succeeds, you receive a JSON response containing the generated text. If the key is invalid, you get a 401 error. If your balance is insufficient, you get a 402 error. These clear status codes help you debug authentication and billing issues quickly without guessing.
Python SDK Integration
For Python developers, the official openai package works directly with our API. Initialize the client with your API key and the correct base URL. Set the model to uncensored. You can adjust parameters like temperature and top_p to control creativity. The API supports standard chat completion formats. This makes it easy to swap our service into existing codebases that already target OpenAI or other compatible providers. Ensure your requests stay within the 100k context window, which covers both prompt and completion tokens.
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwgrok.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)This setup allows you to leverage your existing Python ecosystem for data processing or AI agent workflows. The API returns text responses that you can parse and use in your application logic. No additional SDKs are required beyond the standard OpenAI client library.
Node.js SDK Usage
Node.js developers can use the same openai package. Configure the base URL to point to our API endpoint. The model ID remains uncensored. You can send text prompts and receive completions just like in Python. The Node SDK handles streaming and JSON modes efficiently. This compatibility ensures that teams using JavaScript or TypeScript can adopt our API without rewriting their core logic. The prepaid credit system works the same way, charging only for actual token usage.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nsfwgrok.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);Use this integration to build web services, bots, or automated content generators. The API supports function calling and JSON mode for structured outputs. This flexibility allows you to integrate uncensored generation into your existing Node.js applications seamlessly. Check your dashboard for real-time usage statistics.
Streaming Responses (SSE)
For real-time user experiences, enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) as the model generates text. Each chunk contains partial content. The final chunk includes the token usage statistics, allowing you to track costs accurately. Streaming reduces perceived latency for end-users, as they see text appearing in real time. This is ideal for chat interfaces or interactive applications where immediate feedback is valuable.
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)Handle the stream events in your client code to display tokens as they arrive. The API ensures that the complete response is delivered even if the connection drops, provided you implement proper reconnection logic. Streaming works with all parameters, including function calling and JSON mode, allowing for dynamic structured data generation in real time.
Context Window, Limits, and Errors
The model supports a 100,000-token context window, covering both input and output. There is no separate output cap, and if max_tokens is unset, the response can run to the end of the window. Rate limits are set to 300 requests per minute and 8 concurrent requests per key. Request bodies are limited to 8 MB. If you exceed these limits, you receive a 429 error. Authentication errors return 401, and billing errors return 402. These limits ensure fair usage across all clients. One active key per account simplifies management; generating a new key replaces the old one immediately.
Questions and answers
What happens if I send a request that exceeds the context window?
The API will reject the request if the total tokens (prompt + completion) exceed 100,000. You will receive an error response, and your balance will not be charged for the request. This ensures you only pay for valid completions.
Can I use the same API key for multiple projects?
Yes, you can use your single API key across multiple projects or services. However, the rate limits (300 requests per minute) apply to the key itself, not per project. If you need higher concurrency, consider generating a new key, which replaces the old one.
How does billing work if my request fails?
Billing is based on actual token usage. If a request fails due to authentication (401) or insufficient funds (402), no tokens are consumed, and you are not charged. Errors during generation may incur partial charges depending on tokens already processed, but the API ensures transparent usage tracking in the final streaming chunk.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Under the hood: specs
If your tool speaks the OpenAI API, these are the details that matter.
| Spec | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Authentication | Authorization: Bearer YOUR_KEY |
| Model ID | uncensored |
| Base URL | https://api.nsfwgrok.top/v1 |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Max output | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Max context | 100,000 tokens (prompt + completion together) |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Structured output | response_format: {"type": "json_object"} |
| Rate limit | 300 requests per minute per key |
| Concurrency | 8 requests at the same time per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Request size | 8 MB request body |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| Credit expiry | paid credit never expires, no subscription |
| Trial credit | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Sign-in | Google or e-mail and password |
| Key management | one key per account, regenerate any time (the old one stops working) |
Error codes
The type field is stable, the message is for humans. Errors cost nothing.
| Code | Type | Meaning |
|---|---|---|
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 | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |