EN ▾
Get API key

Quickstart: Integrate Uncensored Text into NSFW Video Apps

Integrate an uncensored LLM into your NSFW video generation pipeline with our OpenAI-compatible text API. Use this quickstart to send prompts, generate scripts, and manage metadata via standard SDKs.

Base URL and Authentication

Our nsfw video text API is fully compatible with the OpenAI chat-completions protocol. You do not need a custom client library; simply configure your existing OpenAI SDKs to point to our base URL. Replace the default endpoint with https://api.nsfwvideo.cc/v1 and supply your API key in the Authorization header.

Authentication is handled via a single API key generated when you sign up via Google or email. This key grants access to the uncensored model, an open-weight LLM tuned to answer without content refusals for lawful adult use. Ensure your requests include the header Authorization: Bearer YOUR_API_KEY. The model ID you must send in your request body is strictly uncensored.

Send a Chat Completion

Start by sending a simple text completion to verify connectivity. The following cURL command demonstrates a basic request to generate a short script segment for an NSFW video scene. Replace YOUR_API_KEY with your actual key.

The response returns structured JSON containing the generated text. This text can be directly piped into your video generation pipeline as a prompt or metadata field.

Remember that the model does not refuse controversial or adult topics, making it ideal for niche video content. However, sexual content involving minors is always blocked.

Python SDK Integration

For Python developers, the official openai library works out of the box with minimal configuration. Initialize the client with your base URL and API key, then call chat.completions.create(). This approach is efficient for batch processing metadata or generating multiple script variations in parallel.

Set the model parameter to uncensored to ensure you are using our specific uncensored instance. You can control creativity using temperature and top_p parameters. This method is reliable for integrating text generation into larger automation workflows without managing HTTP connections manually.

Node SDK Integration

Node.js developers can achieve the same integration by setting the baseURL in the OpenAI SDK configuration. This allows you to embed uncensored text generation directly into your Express or Fastify servers.

Use this setup to handle real-time prompt engineering or to post-process user inputs before they reach your video generation engine. The Node SDK handles streaming and JSON parsing efficiently, reducing the boilerplate code required to parse API responses.

Ensure you handle errors gracefully, particularly when dealing with rate limits or insufficient credit. The API returns standard HTTP status codes to indicate the state of your request.

Streaming Responses

For applications requiring low latency, such as real-time chat interfaces or dynamic script generation, enable streaming by setting stream: true. The API returns a Server-Sent Events (SSE) stream, delivering tokens as they are generated.

This reduces the perceived latency for your end-users. Note that token usage information (input and output counts) is typically included in the final chunk of the stream. This allows you to track costs accurately in real-time. Streaming is ideal for long-form script generation where you want to display progress immediately.

Limits, Errors, and Context Window

Our API enforces strict limits to ensure stability. You are allowed 300 requests per minute and 8 concurrent requests per key. The maximum request body size is 8 MB. If you exceed the rate limit, you will receive a 429 error. If your key is invalid, you get a 401 error, and if you lack credit, a 402 error.

The context window is 100,000 tokens total (prompt + completion). There is no separate output cap, and if you do not specify max_tokens, the response can run to the end of the window. Each account is limited to one active key; generating a new key invalidates the previous one. Errors and refusals are free, so you only pay for successful token generation.

cURL

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

Python

from openai import OpenAI

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

Node.js

import OpenAI from "openai";

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

Streaming

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)

What the API supports

A quick checklist for developers: format, limits, features, billing.

ParameterDetails
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
API keyBearer token in the Authorization header
Model IDuncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.nsfwvideo.cc/v1
SSE streamingYes — server-sent events; the last chunk carries token usage
Context window100,000 tokens (prompt + completion together)
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Structured outputJSON object mode via response_format json_object
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requestsup to 8 in parallel per key
Requests per minute300/min per key
Max body8 MB request body
Volume bonus+5% from $50, +10% from $100, +15% from $200
Trial credit$0.50 of credit valid 7 days, no card needed · 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
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Keysone active key per account; a new key replaces the old one
AccountGoogle or e-mail and password
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.

HTTPTypeWhat to do
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

What happens if my credit runs out?

You will receive a 402 error on subsequent requests. Credit is charged based on real token usage, and prepaid credit never expires. You can top up with USDT (TRC20) or USDC (Base) at any time.

Is the uncensored model one of the major vendors like GPT or Claude?

No. It is an open-weight model run on our own servers, specifically tuned for uncensored responses. It is not GPT, Claude, Gemini, or any other vendor's model.

Does the API generate video or audio?

No. This is a text-only chat-completions API. It generates text for prompts, scripts, and metadata. You must use a separate video or audio generation service for those media types.

Your key is one form away

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

Get API key