EN ▾
Get API key

The uncensored OpenAI-compatible API for developers

OpenAI NSFW Alternative: Independent Guide and API

A drop-in OpenAI-compatible API for developers who need reliable, uncensored text generation without content filters or consumer chat interfaces.

  • Strict OpenAI SDK compatibility
  • 100k context window support
  • Crypto payments only

Try it in one request

curl https://api.openainsfw.com/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."}]
  }'
$0.15per 1M input tokens
$0.50Output tokens / 1M
100,000token context
$0.50trial credit
300requests per minute

What you get

Drop-in Compatibility

Use the official OpenAI SDKs by simply changing the base URL to https://api.openainsfw.com/v1 and updating your API key.

100k Context Window

Process long documents with a 100,000 token context window, allowing for deep analysis of large texts in a single request.

Streaming & Tools

Enable streaming via SSE for real-time token delivery and use function calling for structured data extraction and tool integration.

Transparent Pricing

Pay only for real token usage with prepaid credit that never expires. Errors and refusals incur no charge.

Crypto Top-ups

Top up your account with USDT (TRC20) or USDC (Base) for amounts between $20 and $500, with bonus credits available.

Developer First

No monthly subscriptions or consumer chat apps. Get immediate access to a pure REST API designed for code integration.

How it works

Get Your Key

Sign up with Google or email to receive your API key immediately with no phone number required.

Configure Your Client

Update your OpenAI SDK client to point to our base URL and inject your new API key.

Send Requests

Start sending POST requests to /v1/chat/completions with the model id "uncensored" and receive text outputs.

What people build with it

Content Generation

Generate uncensored creative writing, roleplay, or adult-themed content without the model refusing based on standard content filters.

Data Extraction

Use JSON mode and function calling to reliably extract structured data from text without interference from safety layers.

Research & Analysis

Analyze controversial topics or security research data where standard models might refuse to answer or provide nuanced responses.

Developer Testing

Test your application logic with a reliable uncensored endpoint that supports streaming and standard parameters like temperature and top_p.

Why Choose an Uncensored API?

Standard LLMs often refuse lawful adult content, controversial opinions, or creative risks due to built-in safety filters. An uncensored llm removes these barriers, allowing the model to answer based on its training data rather than a separate refusal layer. This is critical for developers building applications where creative freedom or specific content types are required without manual workarounds.

Our API serves a single open-weight model tuned for this behavior. It is not GPT, Claude, or any other vendor's model. It is a distinct model hosted on our servers, accessible via the standard OpenAI-compatible endpoint. This ensures consistent behavior without the variability of multiple model routing systems.

OpenAI SDK Compatibility

Integration requires minimal code changes. By setting the base URL to https://api.openainsfw.com/v1, you can use the official OpenAI Python, Node.js, or other SDKs. The model id is "uncensored", which you pass in your chat completion requests.

from openai import OpenAI

client = OpenAI(base_url="https://api.openainsfw.com/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 compatibility extends to parameters like temperature, top_p, and stop sequences. You can also use JSON mode for structured outputs and function calling for tool use. The API supports streaming responses via Server-Sent Events (SSE), delivering tokens in real-time.

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)

Errors do not consume credit, and token usage is charged only for successful requests. This makes testing and iteration cost-effective.

Key Features: Streaming & Tools

Streaming is essential for user experience in chat applications. Our API supports SSE streaming, allowing you to display tokens as they are generated. The final chunk includes token usage statistics for billing and monitoring.

Function calling enables your application to interact with external tools or services. You define tools in the request, and the model returns structured JSON arguments. This is useful for data extraction, scheduling, or API calls from within the chat context.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.openainsfw.com/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);

The 100k context window allows you to pass large documents or long conversation histories. This is ideal for summarization, analysis, or maintaining context in complex multi-turn conversations.

Pricing: Pay Per Token

We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens. Credit is prepaid and never expires. Errors and refusals are free, so you only pay for what works.

curl https://api.openainsfw.com/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."}]
  }'

Top-ups are crypto-only: USDT (TRC20) or USDC (Base). Minimum top-up is $20, maximum $500. You receive a 5% bonus for $50+ and 10% for $100+. No credit cards or PayPal.

New accounts get $0.50 trial credit for 7 days. No card needed. Limit 300 requests/minute per key.

Questions and answers

Is this the official OpenAI API?

No, this is an independent service. We use the OpenAI API format, so your existing client code works, but we host our own uncensored model. We are not affiliated with OpenAI.

What model do you run?

We run a single open-weight model tuned for uncensored responses. It is not GPT-4, GPT-3.5, Claude, or any other vendor's model. The model id is "uncensored".

Do you store my prompts?

Prompts are not used for training your data. We only store the minimum data needed for billing and account management. Your email is required for the account.

Can I use this for commercial projects?

Yes, you can use the API for any lawful purpose. The main restriction is that sexual content involving minors is always refused. You can use the text for commercial applications.

How do I get a refund?

Credit does not expire and is generally not refunded. If you are double-charged, contact Support through the website. We will fix the error by adjusting your balance.

Your key is one form away

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

Get API key