Quickstart for NSFW Chatgpt users
Integrate our uncensored LLM API with standard OpenAI SDKs in minutes. Drop in your key and start generating text with no content filters.
Base URL & Authentication
Our nsfw chatgpt API follows the OpenAI chat-completions standard. You authenticate using a Bearer token in the Authorization header. The base URL is https://api.nsfwchatgpt.cc/v1. Sign up for a free account to receive your API key immediately; no credit card is required for the initial trial. This key grants access to our single uncensored model optimized for lawful adult use, meaning it won't refuse controversial or mature topics by default, though it strictly blocks sexual content involving minors.
curl https://api.nsfwchatgpt.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."}]
}'
Chat Completions Endpoint
Send messages to the POST /v1/chat/completions endpoint. The model ID is always uncensored. It is an open-weight model running on our own servers, distinct from GPT, Claude, or Llama. It accepts standard message roles like user and assistant. You can send up to 8 requests simultaneously per key. If you need to switch keys, generating a new one replaces the previous active key for that account.
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwchatgpt.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)
Streaming Responses
Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Each chunk contains partial text. Token usage data is only included in the final chunk of the stream. This is ideal for building chat interfaces that render text as it is generated. Ensure your client handles SSE properly to capture the full response and final token counts.
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)
Function Calling & Tools
The API supports function calling. Define your tools in the tools parameter and set tool_choice to auto or a specific function name. The model will return tool calls in its response when appropriate. This allows you to integrate our uncensored model into agents that need to interact with external APIs or execute code. Ensure your tool definitions follow the standard OpenAI schema for compatibility.
JSON Mode
Force the model to output valid JSON by setting response_format to {"type": "json_object"}. This is useful for structured data generation or when building applications that parse specific schemas. The model is tuned to adhere to JSON syntax even when generating complex nested objects. If the output is invalid, the request may fail or return malformed text, so always validate the response in your code.
Parameters: Temperature & Top P
Control creativity with temperature and diversity with top_p. Higher temperature values make responses more random and creative, while lower values make them more deterministic. top_p filters tokens based on cumulative probability. You can also set stop sequences, seed for reproducibility, and penalties for presence and frequency. These parameters allow fine-tuning of the uncensored model's output style.
Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nsfwchatgpt.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);Questions and answers
What are the token limits?
The context window is 100,000 tokens for both prompt and completion combined. There is no separate output cap, and if you do not set max_tokens, the response can run to the end of the window. Requests exceeding the window will be rejected.
What happens if I get a 401 or 429 error?
A 401 error means your API key is invalid or missing. A 429 error indicates you have hit the rate limit of 300 requests per minute. Errors and refusals do not consume your prepaid token credit.
How do I pay for tokens?
We accept USDT (TRC20) and USDC (Base). Minimum top-up is $20, and you receive a bonus for larger amounts. Credit never expires, and you can start with a free $0.50 trial.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Specs at a glance
Use this table to decide whether the API fits your project before you buy credit.
| Feature | Support |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.nsfwchatgpt.cc/v1 |
| Model | uncensored |
| API key | Bearer token in the Authorization header |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| SSE streaming | Supported (stream: true), usage included at the end |
| Context window | 100,000 tokens, input and output combined |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Structured output | JSON object mode via response_format json_object |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Request size | 8 MB request body |
| Rate limit | 300/min per key |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | up to 8 in parallel per key |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Volume bonus | +5% on $50+, +10% on $100+, +15% on $200+ |
| 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 |
| Credit expiry | no monthly fee; paid credit does not expire |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Sign-in | Google or e-mail and password |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Content | 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.
| 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 | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
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 | temporary overload, retry shortly |