EN ▾

Uncensored text AI for developers

Get API key

Quickstart for Flux NSFW pipelines

Generate text for scripts, captions, and post-processing with a single uncensored API endpoint. Use any OpenAI-compatible SDK to send requests to our hosted model.

Base URL & Authentication

Point your client to https://api.fluxnsfw.cc/v1. Authentication uses a standard Bearer token in the Authorization header. You generate a single active key per account via the dashboard or Google sign-in. Replace the placeholder YOUR_API_KEY with your actual key. The endpoint supports standard OpenAI-compatible headers, making it easy to switch between libraries.

First Request

Send a POST request to /v1/chat/completions. Use the model ID uncensored. This model answers without content refusals for lawful adult use. Include your system prompt to define the persona or task. The request body must contain the messages array. See the example below for the required structure.

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

This call returns the generated text. If you need structured data, see the JSON mode section. The model processes text input and produces text output. It does not generate images, audio, or video.

Python SDK

Use the official openai Python package. Set the base URL to our endpoint. Initialize the client with your API key. Call chat.completions.create with the model set to uncensored. Pass your messages in the messages argument. This approach works with any library that follows the OpenAI API specification.

from openai import OpenAI

client = OpenAI(base_url="https://api.fluxnsfw.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)

Check the response object for the generated content. You can access the text via response.choices[0].message.content. This method is reliable for batch processing scripts and automated caption generation.

Node SDK

Install the openai Node.js package. Configure the base URL to https://api.fluxnsfw.cc/v1. Create a new client instance with your API key. Invoke the chat completion endpoint with the uncensored model. This integrates easily into Node.js applications for real-time text generation.

import OpenAI from "openai";

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

Handle the response asynchronously. The content is available in the response choices. This setup is suitable for web servers, CLI tools, and automated workflows requiring uncensored text output.

Streaming Responses (SSE)

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains a partial response. The final chunk includes token usage statistics. This allows real-time display of generated text in applications. Use this for interactive chat interfaces or live captioning.

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)

Process each chunk as it arrives. Accumulate the content to form the complete response. The usage data in the last chunk helps track costs. This method reduces perceived latency for end-users.

Limits, Errors & Context

Your account has a limit of 300 requests per minute and 8 concurrent requests per key. The request body size must not exceed 8 MB. The context window is 100,000 tokens total, and output can run to the end of the window. If you exceed the rate limit, the API returns a 429 status code. If your key is invalid, you receive a 401 error. A 402 status indicates no prepaid credit; top up via crypto to continue. Errors and refusals do not consume credit. Prepaid credit never expires. You can only have one active key per account; generating a new key replaces the old one. The model blocks sexual content involving minors. All other lawful adult content is permitted.

Questions and answers

What is the context window size?

The context window is 100,000 tokens, covering both the prompt and the completion. There is no separate output cap per request. If you do not specify max_tokens, the response can run to the end of the window.

How do I handle streaming data?

Set stream: true in your request to receive Server-Sent Events. Each chunk contains a partial response. The final chunk includes token usage statistics, which you can use to track costs. This is ideal for real-time applications.

Why do I get a 402 error?

A 402 status code indicates that your account has no prepaid credit. You can top up using USDT (TRC20) or USDC (Base) via the dashboard. Credit does not expire, so you can top up at any time.

Your key is one form away

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

Capabilities and limits

Everything the endpoint can and cannot do, in one place — check it before you top up.

FeatureSupport
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.fluxnsfw.cc/v1
Modeluncensored
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationAuthorization: Bearer YOUR_KEY
JSON moderesponse_format: {"type": "json_object"}
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingSupported (stream: true), usage included at the end
Max context100,000 tokens (prompt + completion together)
Request size8 MB request body
Rate limit300 requests per minute per key
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Billingprepaid credit, charged by real token usage; errors and refusals are free
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Subscriptionno monthly fee; paid credit does not expire
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Sign-insign in with Google or with e-mail + password
Contentadult content allowed; sexual content involving minors is refused
Keysone active key per account; a new key replaces the old one

HTTP errors

Errors come back as JSON with a stable type; failed and refused requests are not billed.

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Start with trial credit

Email and password, key on screen right away.