EN ▾
Get API key

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.

Get API key

Specs at a glance

Use this table to decide whether the API fits your project before you buy credit.

FeatureSupport
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.nsfwchatgpt.cc/v1
Modeluncensored
API keyBearer token in the Authorization header
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
SSE streamingSupported (stream: true), usage included at the end
Context window100,000 tokens, input and output combined
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputJSON object mode via response_format json_object
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Request size8 MB request body
Rate limit300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Priceinput $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 expiryno monthly fee; paid credit does not expire
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Sign-inGoogle or e-mail and password
Key managementone key per account, regenerate any time (the old one stops working)
Contentuncensored 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.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly