EN ▾

Uncensored LLM API for Developersnsfwroleplay.cc

Get API key
uncensored https://api.nsfwroleplay.cc/v1

NSFW Roleplay API Quickstart

Integrate an uncensored LLM API for adult content generation using standard OpenAI-compatible endpoints. This guide covers authentication, request formats, streaming, and rate limits for the nsfw roleplay API.

Base URL & Authentication

Use the base URL https://api.nsfwroleplay.cc/v1 for all requests. Pass your API key in the Authorization header as a bearer token: Authorization: Bearer YOUR_API_KEY. You obtain this key immediately after signing up via Google or email on the dashboard. The model identifier to use in requests is uncensored, an open-weight model tuned for adult content without external training usage. Do not assume compatibility with other vendors' SDKs unless they explicitly support OpenAI-compatible clients; check their documentation for current version numbers and limits. The API supports POST /v1/chat/completions and GET /v1/models.

Send a Completion

Send a standard chat completion request to generate text. The model processes input and returns a response without refusing lawful adult, fictional, or controversial topics. Ensure your prompt fits within the 100,000 token context window (prompt + completion combined). There is no separate output cap per request, and if max_tokens is omitted, the response can run to the end of the window. Requests exceeding limits or encountering errors do not consume credit. Refusals for sexual content involving minors are always applied.

Python SDK Integration

Use the official OpenAI Python SDK to interact with the API. Set the base_url to our endpoint and provide your API key. The client sends requests to the uncensored model. This approach works for any OpenAI-compatible client library that allows custom base URLs. Verify that your SDK version supports the parameters you need, such as temperature, top_p, and stop sequences. Streaming is supported via server-sent events, allowing token-by-token output.

Node.js SDK Usage

For JavaScript or TypeScript projects, use the openai npm package. Configure the client with baseURL set to https://api.nsfwroleplay.cc/v1 and your API key. The @anthropic-ai/sdk is not guaranteed to work unless it explicitly supports OpenAI-compatible endpoints. Always check the SDK's documentation for current compatibility. The API supports function calling (tools), JSON mode, and standard parameters like presence_penalty and frequency_penalty. Errors return standard HTTP status codes.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns a Server-Sent Events (SSE) stream. Each chunk contains partial text, with token usage information provided in the final chunk. This is ideal for real-time applications like ai girlfriend interfaces or character ai clients. The stream terminates after the completion is fully generated or an error occurs. No subscription is required to use streaming; credit is charged based on actual token usage.

Limits, Errors & Context Window

Rate limits are 300 requests per minute and 8 concurrent requests per key. The request body must be under 8 MB. HTTP 401 indicates an invalid or missing key. HTTP 402 means your prepaid credit is exhausted; top up via crypto (USDT TRC20 or USDC Base). HTTP 429 indicates you have exceeded the rate limit. The context window is 100,000 tokens total. Credit never expires, and errors/refusals are free. For refunds on double charges, use the Support page.

cURL

curl https://api.nsfwroleplay.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.nsfwroleplay.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.nsfwroleplay.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)

Technical specifications

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

ParameterDetails
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Modeluncensored
API keyAuthorization: Bearer YOUR_KEY
EndpointsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.nsfwroleplay.cc/v1
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
StreamingSupported (stream: true), usage included at the end
Context window100,000 tokens (prompt + completion together)
Structured outputJSON object mode via response_format json_object
Parallel requests8 requests at the same time per key
Rate limit300 requests per minute per key
Request sizeup to 8 MB per request
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Subscriptionpaid credit never expires, no subscription
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
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
Volume bonus+5% from $50, +10% from $100, +15% from $200
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Sign-inGoogle or e-mail and password
Key managementone active key per account; a new key replaces the old one
Contentuncensored for adults; the only hard rule: no sexual content involving minors

Error reference

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

StatusTypeReason
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
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_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Questions and answers

Does the API support image or audio generation?

No. The API is a text-only LLM service. It supports POST /v1/chat/completions and GET /v1/models. There is no support for embeddings, image, audio, or video generation, or fine-tuning.

How do I top up my credit?

Top up using cryptocurrency only: USDT (TRC20) or USDC (Base). You can top up any whole amount from $20 to $500. Bonus credit is added for larger amounts: +5% from $50, +10% from $100, and +15% from $200. Credit never expires.

Is the model GPT-4 or Llama?

No. The model is an open-weight model run on our own servers, tuned for adult content. It is not GPT, Claude, Gemini, Grok, DeepSeek, Qwen, Llama, or any other vendor's model. Check their respective documentation for details on those models.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.