Prompts and scripts over one endpoint
Integrate our uncensored text API into your NSFW Wan media workflows with predictable prepaid billing and strict adherence to the OpenAI standard.
Base URL and Authentication
Our API is fully compatible with existing OpenAI client libraries. You only need to change the base URL and provide your API key. Start by visiting the Get API key page and signing in with Google or your email. The key is displayed immediately and is the only active key for your account; generating a new one revokes the old one.
The base URL is https://api.nsfwwan.top/v1. Ensure your client sends the key in the Authorization: Bearer <key> header. No other authentication methods are required. This setup works for any language or framework that supports the OpenAI standard, allowing you to swap our service into your existing NSFW Wan pipeline with minimal code changes.
Sending Prompts via POST
Generate text by sending a POST request to /v1/chat/completions. Specify the model as uncensored and include your messages in the messages array. This endpoint handles prompt writing, script generation, and metadata extraction for your media assets.
curl https://api.nsfwwan.top/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."}]
}'The response includes the generated text in choices[0].message.content. If the request fails, you will receive a JSON error object. Remember that errors and refusals (except for the hard limit on minor sexual content) do not consume your prepaid credit, so you can retry safely.
Python SDK Integration
Use the official openai Python library to interact with our API. Initialize the client with our base URL and your API key. This approach simplifies request construction and response parsing, making it ideal for backend services processing NSFW Wan data.
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwwan.top/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)Set the model to uncensored to ensure the response is not filtered by standard content policies. This method is efficient for batch processing scripts or real-time caption generation where you need predictable latency and clear JSON responses.
Node SDK Integration
For JavaScript and TypeScript environments, the Node SDK works seamlessly with our API. Configure the base URL and API key just like in Python. This is useful for web servers or edge functions that need to generate text prompts for NSFW Wan video or image generation steps.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nsfwwan.top/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 response structure matches the standard OpenAI format. You can parse the content field directly into your application state. Since we do not offer embeddings or image generation, use this SDK strictly for text-based tasks like prompt engineering or post-processing text outputs.
Handling Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE), delivering tokens as they are generated. This is essential for applications that display text in real-time, such as live chat interfaces or dynamic captioning for NSFW Wan content.
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)The final chunk of the stream contains usage statistics, including token counts for both input and output. This allows you to track costs accurately in real-time. Streaming does not change the billing rate; you still pay per token based on the total usage reported in the final chunk.
Rate Limits, Errors, and Context Window
Your account is limited to 300 requests per minute and 8 concurrent requests per key. The request body must not exceed 8 MB. If you exceed these limits, you will receive a 429 error. If your API key is invalid, you get a 401 error. If you have no credit, you receive a 402 error. Unlike many providers, errors do not consume your prepaid balance.
The context window is 100,000 tokens total, with no separate output cap (if max_tokens is unset, the response can run to the end of the window). This allows for long-form script generation or detailed metadata extraction. Note that we do not offer SLAs or certifications, and credit never expires, so you can pause usage between projects without penalty.
API specifications
One table with every limit, feature and price that applies to your key.
| Feature | Support |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Authentication | Bearer token in the Authorization header |
| Model | uncensored |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.nsfwwan.top/v1 |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| JSON mode | response_format: {"type": "json_object"} |
| Context window | 100,000 tokens (prompt + completion together) |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Requests per minute | 300 requests per minute per key |
| Request size | up to 8 MB per request |
| Concurrency | up to 8 in parallel per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| 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 |
| Subscription | paid credit never expires, no subscription |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Account | sign in with Google or with e-mail + password |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one key per account, regenerate any time (the old one stops working) |
Errors and what to do
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
Does the uncensored model refuse adult content?
The model is tuned to answer without content refusals for lawful adult, fictional, or controversial topics. However, a hard limit always applies: requests containing sexual content involving minors will be refused, regardless of the content filter settings.
How do I top up my prepaid credit?
You can top up using cryptocurrency only: USDT (TRC20) or USDC (Base). Payments range from $20 to $500. You receive a +5% bonus for deposits of $50 or more, a +10% bonus for deposits of $100 or more, and a +15% bonus for deposits of $200 or more. Cards and PayPal are not accepted.
Is this the official OpenAI API?
No, this is an independent service running our own open-weight model named 'uncensored'. It is compatible with the OpenAI API standard, so you can use official SDKs by changing the base URL, but we do not serve GPT-4, GPT-3.5, or any other vendor's models.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.