NSFW API Key: Sign Up, Fund It, Make a Call
Getting an NSFW API key takes three steps: create an account, claim the free trial credit, and top up when you are ready to build. This guide covers each step and the first request you should send.
Updated
Key points
- Sign up with Google or with email and password, then open the API key page.
- Claim $0.50 of trial credit with one click, no payment needed, valid for 7 days.
- Top up from $20 with USDT on TRC20 or USDC on Base. Larger top-ups add a bonus.
- Set the base URL, send the key as a Bearer token and use the model uncensored.

The path from zero to a working key
If you want an NSFW API key for lawful adult projects such as fiction tools, roleplay apps or companion bots, the route is short. You sign up, you land on the key page, you copy the key, and you send a test request. The trial credit lets you do all of that before you pay anything.
- Create an account with Google, or with an email address and password.
- Open the API key page and get your key.
- Click once to claim the $0.50 trial credit. It is one per person, valid for 7 days, and needs no payment.
- Send a test request to the chat completions endpoint.
- When the trial is used up, top up with crypto and keep building.
The start page for this is the API key page. The sections below explain the parts that trip people up: where the key goes, how to check it, what the balance header tells you, and how top-ups and bonuses work.
Step 1: Sign up and get the key
Sign-up offers two options. Google sign-in is the fastest because there is no password to manage. Email and password works the same way afterwards. Either account type gets the same key page, the same trial and the same pricing.
When your key appears, copy it straight away and store it somewhere sensible. Put it in an environment variable or a secrets manager, never in a file you commit to a repository, and never in front-end code that users can read. A key in a browser bundle is a key anyone can copy, and every request made with it spends your credit.
If you suspect a key has leaked, stop using it and contact support so it can be dealt with. Treat a key like a password that spends your money.
Step 2: Claim the trial credit
After sign-up, the key page shows a button for the trial. One click adds $0.50 of credit to the account. It is valid for 7 days and you do not need a payment method. It is limited to one per person, so claim it when you are ready to test, not days earlier.
Trial keys have lower limits than full keys: 2 concurrent requests and 60 requests per minute. That is plenty for checking prompts and wiring an app. It is not meant for load testing.
How far does $0.50 go? Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens. A request with 2,000 input tokens and 500 output tokens costs 2,000 x $0.15 / 1M = $0.0003 for input plus 500 x $0.50 / 1M = $0.00025 for output, which is $0.00055. Dividing $0.50 by $0.00055 gives about 900 requests of that size, which is more than enough to find out whether the model suits your use case.
Step 3: Check the key with a first request
Test the key before building anything around it. Two calls are enough. The first lists the models your key can use:
curl https://api.nsfwapi.cc/v1/models \
-H "Authorization: Bearer $NSFWAPI_KEY"
A JSON list means the key is valid. Then send a chat completion:
curl https://api.nsfwapi.cc/v1/chat/completions \
-H "Authorization: Bearer $NSFWAPI_KEY" \
-H "Content-Type: application/json" \
-i \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Reply with the single word ready."}],
"max_tokens": 20
}'
The -i flag prints the response headers, which is where you find X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency. X-Balance-USD shows what is left on the account, so you can build a low-balance alert without any extra call. Quote the request id when you contact support, because it identifies the exact request.
The same key works in Python:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.nsfwapi.cc/v1",
api_key=os.environ["NSFWAPI_KEY"],
)
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Reply with the single word ready."}],
max_tokens=20,
)
print(r.choices[0].message.content)Fixing common key errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Authentication error | Key missing, mistyped or sent without the Bearer prefix | Send Authorization: Bearer YOUR_KEY and check for stray spaces or quotes |
| Route not found | Wrong base URL path | Use https://api.nsfwapi.cc/v1 and let the client add /chat/completions |
| Model error | Wrong model name | Set the model to uncensored |
HTTP 429, code rate_limited | Over the requests-per-minute limit | Slow down and retry |
HTTP 429, code concurrency | Too many requests in flight | Queue calls; trial allows 2 at once, full keys allow 8 |
| HTTP 429 with Retry-After: 5 | Temporary overload | Wait five seconds and retry |
One detail that surprises people: a streamed request keeps its concurrency slot until the stream ends. If a client drops the connection badly and leaves a stream hanging, you can hit the concurrency limit with fewer real users than you expect. Close streams in a finally block.
Also remember that failed or refused requests are not charged, so a retry loop around a 429 does not drain your balance.
Step 4: Top up and what you get
This site takes crypto only: USDT on TRC20 or USDC on Base. Top-ups are any whole amount from $20 to $500, and there are bonuses on larger ones: 5% from $50, 10% from $100 and 15% from $200. In dollars, that works out as follows.
| Top-up | Bonus | Credit added |
|---|---|---|
| $20 | none | $20.00 |
| $50 | 5% = $2.50 | $52.50 |
| $100 | 10% = $10 | $110.00 |
| $200 | 15% = $30 | $230.00 |
Credit is prepaid, there is no subscription, and it never expires, so a larger top-up to collect the bonus carries no risk of losing the unused part. Match the network to the token when you send: TRC20 for USDT, Base for USDC. Sending a token on the wrong network is the one mistake that crypto payments do not forgive, so check the network field twice. The pricing page has the current figures.
Keeping the key safe in a real project
Most key problems after launch are handling problems, not service problems. A few habits remove nearly all of them.
- Keep calls on the server. If you are building a web or mobile app, send requests from your own backend and let the client talk to your backend. The key never leaves your server, and you can add your own per-user limits there.
- Load the key from the environment. A
.envfile excluded from version control works for local work. On a host, use its secret store. - Do not paste it into chats or tickets. When you ask for help, share the request id from the
X-Request-Idheader instead. - Watch the balance. Read
X-Balance-USDafter each response and warn yourself when it drops under a threshold you pick. A prepaid account stops at zero, so an alert beats a surprise.
It also helps to log token usage per feature of your app. The response includes counts for prompt and completion tokens, and multiplying them by $0.15 and $0.50 per 1M tells you what each feature costs. A chat feature that resends a long history on every turn tends to be the largest line, and trimming old messages is the usual first fix.
After the key works
With a valid key, you can plug it into any tool that supports an OpenAI-compatible endpoint, or write against it directly. Context is 100,000 tokens for prompt plus completion, streaming and tool calling are supported, and JSON mode is available through response_format. The quickstart in the docs covers each of those, and the article on using uncensored models via API compares this approach with the router-style alternative.
Keep the scope in mind. This is a text-only service with one open-weight model run by an independent provider. It has no images, audio, embeddings or fine-tuning, and it is not the official API of any model vendor. It is tuned to answer without content refusals for lawful adult use, and sexual content involving minors is never allowed. Prompts are not used for training.
More guides
Questions and answers
Is there a free NSFW API key?
New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It needs no payment, lasts 7 days and is limited to one per person.
How do I pay for credit?
This site accepts crypto only: USDT on TRC20 or USDC on Base. Top-ups start at $20 and go up to $500.
Which model name do I use with the key?
Use uncensored as the model value, with the base URL https://api.nsfwapi.cc/v1 and your key as a Bearer token.
Does the credit expire?
No. Prepaid credit never expires, and failed or refused requests are not charged.
Why did I get a 429 error?
You went over the requests-per-minute limit, had too many requests in flight, or the service was briefly overloaded. Wait and retry.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.