EN ▾
Get API key

ChatGPT Alternative Without NSFW Filter: API Setup

If your app already talks to the OpenAI SDK, a ChatGPT alternative without NSFW filter is a three-line change: a new base URL, a new key and a new model ID. This page shows the exact edits, what carries over and what does not.

Updated

Two data pipelines, one blocked by a gate and one flowing freely, joined by a swappable connector

Key points

  • Swap the base URL to https://api.nsfwchatgpt.cc/v1, use your key, and set the model to uncensored.
  • Chat completions, streaming, tool calling and JSON mode keep the same request shape.
  • It is text only: no images, audio, embeddings or fine-tuning.
  • The model is tuned for lawful adult use, and the hard limit is no sexual content involving minors.

The short answer

You do not need a new SDK to use a ChatGPT alternative without NSFW filter. The service at https://api.nsfwchatgpt.cc/v1 speaks the same protocol as the OpenAI chat completions API. You keep your client library, change the base URL and the key, and use the model ID uncensored. The rest of your request, including messages, temperature, streaming and tools, stays as it is.

What changes is behaviour. The model behind this API is an open-weight model tuned to answer without content refusals for lawful adult use. That suits fiction, roleplay, companion apps and other adult products where a mainstream assistant would stop and apologise. It does not suit every product, and the last section covers when to pick something else.

To follow along you need a key. Sign up with Google or with email and password, then claim the $0.50 trial credit on the API key page. It needs no card and lasts 7 days.

Why hosted assistants filter, and what that means for builders

Large assistant vendors set content rules for their own products and APIs. Those rules are a business and legal choice, and for a general audience they make sense. The consequence for a developer is that a request that is perfectly lawful, such as a scene in an adult novel or a mature companion character, can come back as a refusal. You cannot change that behaviour from your side, because it lives in the model and in the vendor's policy.

A different model with different tuning is the only real fix. Prompt tricks are fragile: they break when a vendor updates a model. Moving the same code to a model that was tuned for adults from the start removes the guessing. We do not state anyone else's policy details here; check the current rules of any provider you compare against.

Honest framing matters. This is not a way around the law or around a ban on harmful material. Lawful adult use only, and one line is fixed: no sexual content involving minors. You are still responsible for your product, your users and your jurisdiction.

Migrate a Python app in three edits

Here is a typical call to a hosted assistant, followed by the same call pointed at this API. Only three values differ.

from openai import OpenAI

# Before
# client = OpenAI(api_key="sk-old-key")
# model = "your-old-model"

# After
client = OpenAI(
    base_url="https://api.nsfwchatgpt.cc/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a writing partner for adult fiction."},
        {"role": "user", "content": "Continue the scene where the detective confronts her old partner."},
    ],
    temperature=0.8,
    max_tokens=500,
)
print(response.choices[0].message.content)

If your code reads the key and URL from environment variables, you may not need to touch the source at all. Many OpenAI clients honour OPENAI_API_KEY and OPENAI_BASE_URL.

export OPENAI_BASE_URL="https://api.nsfwchatgpt.cc/v1"
export OPENAI_API_KEY="YOUR_API_KEY"

Then set the model name in your configuration to uncensored. Run one request and confirm the response arrives. The quickstart has the same steps with a few more examples.

The same switch in Node and curl

Node works the same way. The official package takes a baseURL option.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.nsfwchatgpt.cc/v1",
  apiKey: process.env.API_KEY,
});

const stream = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Write the opening paragraph of a noir short story." }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

For a quick check from a terminal, curl is enough. This also lists the models endpoint, which is a good first test of your key.

curl https://api.nsfwchatgpt.cc/v1/models \
  -H "Authorization: Bearer $API_KEY"

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": "Say hello in one sentence."}]}'

Only two endpoints exist: POST /v1/chat/completions and GET /v1/models. If your code calls anything else, such as image or embedding routes, those calls need another provider.

What carries over and what does not

FeatureStatus here
Chat completionsSupported, standard request shape
Streaming (SSE)Supported, usage reported at the end
Tool callingSupported, including streamed tool_calls
JSON modeSupported via response_format json_object
temperature, top_p, stop, seed, penaltiesPassed through
Image, audio, video generationNot available
Embeddings and fine-tuningNot available

Most chatbot and writing apps use only the first five rows, so migration is usually a configuration change. Apps that also generate images need a second service for that part. A common pattern for creative tools is to let this model write the prompt text and hand it to a separate image tool.

Expect some behaviour differences too. A different model has its own style, its own sense of length and its own way of following a system prompt. Re-test your prompts. A prompt written to coax a stricter model into cooperating may be unnecessary here, and shorter system prompts often work better.

Cost, limits and what to watch in production

Price is $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit with no subscription. A request with 2,000 input tokens and 500 output tokens costs 2,000 x $0.15 / 1M = $0.0003 for input plus 500 x $0.50 / 1M = $0.00025 for output, so $0.00055 in total. A thousand such requests cost $0.55. Failed or refused requests are not charged, and credit never expires. See the pricing page for the details.

Top-ups on this site are crypto only: USDT on TRC20 or USDC on Base, in any whole amount from $20 to $500. You get +5% from $50, +10% from $100 and +15% from $200.

In production, handle the limits. A full key permits 8 concurrent requests and 300 requests per minute, and the trial key permits 2 and 60. Exceeding them returns HTTP 429 with the code rate_limited or concurrency. Temporary overload also returns 429 with Retry-After: 5. Because a streamed request holds its slot until the stream ends, count open streams when you size your worker pool. Log the X-Request-Id response header so you can trace a single request if you need support.

import time
from openai import OpenAI, RateLimitError

client = OpenAI(base_url="https://api.nsfwchatgpt.cc/v1", api_key="YOUR_API_KEY")

def ask(messages, tries=4):
    for attempt in range(tries):
        try:
            return client.chat.completions.create(model="uncensored", messages=messages)
        except RateLimitError:
            time.sleep(5)
    raise RuntimeError("still rate limited after retries")

When to keep your current provider

Keep a mainstream assistant for features this API does not have, or where its guardrails are a feature. A school learning app, a bank help desk or a workplace tool wants a model that refuses more, not less. Products that rely on image input, voice or embeddings need services this API does not offer. And if a contract names a specific vendor, this service is not that vendor: it is an independent provider running an open-weight model, not the official API of any large company.

Many teams end up with both. Route the conversations that need adult-fiction behaviour to uncensored and leave everything else where it is. Because both speak the same protocol, the routing is one if statement that picks the base URL and model. If you want background on what these models do and do not do, the myths and facts article covers common misunderstandings.

Questions and answers

Do I have to rewrite my code to switch?

Usually not. Change the base URL, the API key and the model ID to uncensored. Chat completions, streaming, tools and JSON mode keep the OpenAI request shape.

Is this the official API of a big AI vendor?

No. It runs one open-weight model operated by an independent provider and is not a router across vendors.

Can I generate images with it?

No. The API is text only. It can write image prompts, but another tool must render the pictures.

Is there anything it will not write?

Yes. Sexual content involving minors is never allowed. The model is tuned for lawful adult use only.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key