GLM 4 NSFW Alternative: A Hosted Uncensored Text API
A glm 4 nsfw alternative has to do one thing well: finish adult fiction scenes without stopping to refuse. This article helps you decide whether a hosted uncensored text API fits, and shows how to measure it on your own prompts before you commit.
Last updated

Table of contents
Summary
- Decide with data: run the same 20 to 50 prompts through each candidate and count refusals and quality.
- A filtered model suits general products. An unfiltered one suits adult fiction apps whose users are verified adults.
- This API is a different model, not a GLM release, with a 100,000-token window and text output only.
- Pricing is $0.15 per 1M input and $0.50 per 1M output tokens, and refused or failed requests are free.
Pick by use case, not by model name
| Your situation | Better fit |
|---|---|
| General assistant, customer support, mixed audience | A filtered model from a major vendor |
| Adult fiction, roleplay or companion app with verified adult users | A hosted model tuned not to refuse, such as this API |
| Need images, audio, embeddings or fine-tuning | Another service. This API is text only |
| Need a specific vendor's model by name | That vendor's own API |
| Full control of weights and hardware | Self-hosting an open-weight model |
Notice that the table never says one option is better in general. A filtered model protects a consumer brand. It frustrates a mature fiction product. Choose the one that matches who your users are and what they ask for.
What this API is and is not
It is a hosted OpenAI-compatible API running one open-weight model, ID uncensored, operated by an independent provider. The model is tuned to answer without content refusals for lawful adult use. It is not GLM 4 or any other vendor's model, and it is not a router across vendors, so do not expect GLM 4 behavior, style or knowledge.
One hard limit applies: no sexual content involving minors. All characters in your app must be adults, and you are responsible for age verification and for lawful use in the places you operate.
Supported features include streaming over SSE, tool calling, JSON mode, and sampling settings (temperature, top_p, stop, seed, penalties). Prompts are not used for training.
Measure refusals yourself
Claims about refusal rates are cheap. A test is better. Write 20 to 50 prompts that look like your real traffic: scene continuations, character dialogue, tone changes. Keep them within the law and within your own content rules. Then run them against each candidate and count responses that decline, deflect or moralize.
import json
from openai import OpenAI
client = OpenAI(base_url="https://api.glmnsfw.com/v1", api_key="YOUR_KEY")
REFUSAL_MARKERS = ["i can't", "i cannot", "i'm unable", "i am unable", "as an ai"]
prompts = json.load(open("prompts.json")) # a list of strings
refused = 0
for p in prompts:
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": p}],
temperature=0.8,
max_tokens=400,
)
text = resp.choices[0].message.content.lower()
if any(m in text for m in REFUSAL_MARKERS):
refused += 1
print("REFUSAL:", p[:60])
print("%d of %d flagged" % (refused, len(prompts)))String matching is crude, so read every flagged answer and a sample of the rest by hand. The point is a comparable number across candidates, not a perfect classifier. Run the same file against each provider by changing only the base URL, key and model.
Judge quality, not only refusals
A model that never refuses can still write badly. Score outputs on things you can check:
- Continuity. Does a character keep their name, traits and the plot facts across 20 turns?
- Tone control. Does it follow instructions such as "slower pacing" or "shorter replies"?
- Length discipline. Does it stop where you asked, or ramble?
- Repetition. Does it recycle phrases? Penalty settings can help.
With a 100,000-token window you can feed an entire long story and test continuity at scale. Keep the same seed and temperature across runs so differences come from the model, not from chance.
Hosted API or run it yourself
Open-weight models can also be run on your own hardware, which is the third answer to "what replaces a filtered model." Each route has a clear profile.
| Route | Good for | Watch out for |
|---|---|---|
| Filtered vendor API | Mixed audiences, brand safety | Refusals in mature fiction |
| Hosted uncensored API | Adult apps that need quick start and pay-per-token cost | Single model, text only, you handle age gating |
| Self-hosted open weights | Full control and custom weights | GPUs, ops work, scaling and idle cost |
Self-hosting costs hardware time whether or not users show up. A hosted API with prepaid credit costs nothing while idle. For a new product with unknown traffic, the hosted route lets you learn demand before you commit to servers. If traffic proves steady and high, revisit the question with real numbers.
Cost for a fiction app
Rates are $0.15 per 1M input tokens and $0.50 per 1M output tokens. A chat turn that resends 6,000 tokens of history and returns 400 tokens costs 0.006 x 0.15 + 0.0004 x 0.50 = $0.0009 + $0.0002 = $0.0011. For 10,000 such turns a month, that is about $11.
Prices from other providers change, so check their current pricing and plug the numbers into the same formula. Because refused and failed requests are not charged here, a test run that triggers refusals does not cost you for those turns.
Credit is prepaid and never expires. Top-ups are any whole amount from $20 to $500, paid in USDT on TRC20 or USDC on Base, with +5% from $50, +10% from $100 and +15% from $200. Details are on the pricing page.
Re-running the test over time
A one-time test goes stale. Keep the prompt file in your repository and run the harness whenever you change the system prompt, the model, the temperature, or the provider. Store the result next to the commit, so you can see whether a change helped.
- Fix
seedandtemperaturefor comparisons between prompt versions. - Raise
temperatureback to your production value for a final check, since real traffic uses the live setting. - Add a new prompt to the file each time a user reports a bad output. The set grows into a regression suite.
- Keep two lists: prompts that must be answered, and prompts that your own rules require to be declined. A good setup passes both.
That second list matters. An app for adults still has limits, and the hard one is no sexual content involving minors. Treat any slip on that list as a blocker.
Questions to ask any provider before you commit
Whatever you shortlist, get written answers to these. Our answers for this API are in brackets.
- Are refused or failed requests billed? [No.]
- Are prompts used for training? [No.]
- What are the rate and concurrency limits per key? [Full key: 300 per minute and 8 at once. Trial: 60 and 2.]
- Can you rotate keys yourself, and can you hold several? [Yes, regenerate on the key page; up to 5 keys after a top-up.]
- Does credit expire? [No.]
- What are the content rules? [Lawful adult use only; no sexual content involving minors.]
- What can the API not do? [Images, audio, video, embeddings and fine-tuning.]
A provider that cannot answer these in a sentence each is hard to plan around, however good the demo looks.
Switch with two lines of code
If your app already uses an OpenAI-style client, you change the base URL and key, and set the model to uncensored. Nothing else in the call changes.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.glmnsfw.com/v1",
apiKey: process.env.API_KEY,
});
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Continue the scene in a calm, literary tone." }],
});
console.log(resp.choices[0].message.content);Limits to plan for: a full key allows 8 concurrent requests and 300 per minute, and a trial key 2 and 60. Over a limit you get HTTP 429. Read the docs for the full request format, and the myths vs. facts article for background on how these chatbots work.
To test with no commitment, sign up and claim the $0.50 trial credit on the API key page. It is valid for 7 days, needs no card, and is limited to one per person.
More guides
FAQ
Is this a newer version of GLM 4?
No. It is a different open-weight model, run by an independent provider, and has no connection to the GLM family.
Will it keep characters and plot straight over a long story?
The 100,000-token window gives room for a lot of history. Test continuity on your own stories before you commit.
Is there content it will not write?
Yes. Sexual content involving minors is never allowed, and the service is for lawful use only.
Which payment methods are accepted?
Top-ups are crypto only, USDT on TRC20 or USDC on Base, in whole amounts from $20 to $500.
Get your API key
Sign up, retrieve your key, and update your base URL. Setup is that simple.