Standard Integration
Connect instantly using existing OpenAI SDKs. Change only the base URL and API key to access our uncensored model for text generation.
Direct Text API
Use the text API to develop scene outlines and conversational drafts. Keep the source brief available to your editor, and check each generated beat against it before expanding a story.
curl https://api.nsfwaiapi.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."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwaiapi.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)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.nsfwaiapi.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);Connect instantly using existing OpenAI SDKs. Change only the base URL and API key to access our uncensored model for text generation.
The endpoint exposes one public text model ID. Test a small set of scene-planning prompts and inspect their replies before integrating it.
Support long conversations with a 100,000-token context window, allowing for deep roleplay continuity and complex narrative structures.
The API supports Server-Sent Events (SSE) for streaming responses and includes function calling capabilities for building interactive agents.
Pay only for what you use. Credits are purchased upfront, never expire, and come with bonus tiers for larger top-ups.
Sign up with just an email. Your prompts are not used for training, and you maintain full control over your API key.
Obtain the current key, complete any required verification and check the available balance before testing a request.
Update your client configuration to point to our base URL and insert your new API key.
Make a POST request to /v1/chat/completions with the model ID 'uncensored' and start generating content.
Provide a character sheet and the recent dialogue. Check the generated reply against names, events and the intended voice before adding it to the conversation.
For a fictional adult-character chat application, define the scene and content boundaries. Review each reply and handle refusal or incomplete output in your client.
Generate uncensored fiction, scripts, or creative writing where standard models might censor specific themes or language.
Test LLM behavior on controversial or mature topics without the noise of standard alignment layers interfering with your data.
Use the text model to draft scene outlines or revise supplied dialogue. Provide clearly adult fictional characters and explicit boundaries, then review the output. The endpoint supplies one model ID; it does not guarantee that every prompt will receive the desired answer.
Charges follow successful input and output token usage. Paid credit does not expire; trial credit has a separate validity period. Streaming lets the client receive text as events arrive, but it does not guarantee a particular response time.
Integration is straightforward because we use the standard OpenAI Chat Completions format. If you have existing code that uses the OpenAI Python, Node.js, or other SDKs, you likely need to change only two things: the base URL and your API key.
Our base URL is https://api.nsfwaiapi.com/v1. When you send a request, specify the model ID as 'uncensored'. This simplicity means you can integrate our API into your existing pipelines without rewriting your entire application logic. We support both standard responses and streaming responses, giving you flexibility in how you handle data in your frontend or backend.
We believe in transparent, predictable costs without hidden fees. Our pricing is simple: $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There are no monthly subscription fees, no minimum commitments, and no expiration dates on your prepaid credits. If you buy $50 worth of credits, you get a 5% bonus; buy $100, and you get 10% bonus.
Eligible new accounts can request a $0.50 trial for 7 days; verification and processing may be required. Check the displayed balance before sending requests. Paid top-ups range from $20 to $500, with methods listed in checkout. Estimate usage from measured token counts.
The service generates text; it does not create images, audio or video, provide embeddings or fine-tuning, or select between vendor models. Check your requirements for deployment, data handling and any contractual SLA before choosing an integration.
No. We run our own open-weight model tuned for uncensored responses. It is not a resold version of GPT, Claude, or any other major vendor's model. You get direct access to our specific model via the standard API format.
Paid credit does not expire. Eligible accounts can request $0.50 of trial credit for 7 days, subject to verification and processing. Check the trial’s displayed status and balance in your account.
Yes. You can use the output from our API for commercial purposes, such as in subscription apps, games, or content platforms. There are no restrictions on how you use the text generated by the uncensored model.
The 100,000-token context limit includes input and output together. Reserve room for the response and validate the result against the source; context size does not guarantee that all details will be retained.
No. We do not use your prompts or completions to train our model. Your data is used solely to generate the response for your request.
Create an account, copy the key, change the base URL. That is the whole setup.
Get API keyNsfwAiApiUncensored LLM API for NSFW text generation
Provide a non-explicit outline for a story featuring fictional adults: two characters meet after a long absence, disagree, then choose whether to continue the conversation. Request a JSON array of five scene beats, each with goal, speaker and unresolved_question fields. Check the count and speaker names against the outline. A writer can accept or revise each beat. This example generates text for an editorial checklist; it does not render a scene or measure story quality.
Practical articles on setup, pricing and integration.
SillyTavern OpenAI Compatible API: Step-by-Step SetupConnect SillyTavern to an OpenAI compatible API in a few minutes: base URL, key, model ID, context size and sampler settings, with fixes for…
NSFW LLM System Prompt: Structure and ExamplesHow to write an NSFW LLM system prompt for adult fiction and companion chat: persona, boundaries, style, plus working API examples with a tested…
NSFW LLM API in Python: Streaming, JSON and ToolsCall an uncensored, OpenAI-compatible LLM API from Python: install, first request, streaming, JSON mode, tool calling and handling 429 errors,…
Best Local LLM for Roleplaying, or a Hosted API?Local or hosted for roleplay? Compare your own GPU with an uncensored OpenAI-compatible API, plus a working system prompt and client settings.
What LLM API Is Free? Options, Limits and a Real TrialWhich LLM APIs are free? Compare free tiers, self-hosting and trial credit, with exact math on what a $0.50 trial buys and when prepaid credit…
NSFW Image API: Cost and Trade-off AnalysisCompare text and image API workflows: token costs, separate rendering services, measured response times and application-side checks.