EN ▾

Quickstart for DeepSeek NSFW users

Get your first uncensored response in under five minutes by pointing your existing OpenAI-compatible client to our base URL and authenticating with a generated API key.

Base URL and Authentication

Start by creating an account via the Get API key page. You can sign in with Google or use an email and password; no phone number is required. Once authenticated, your API key is displayed immediately. Copy this key and configure your client to use the base URL https://api.deepseeknsfw.com/v1. This endpoint is OpenAI-compatible, meaning you can reuse existing SDK configurations by simply swapping the base URL and the API key value. No additional setup is needed for the core text generation capabilities.

Making Your First Request

The core interaction happens via the POST /v1/chat/completions endpoint. To verify your setup, send a simple prompt requesting an uncensored response. The model ID is uncensored. Below is a basic cURL example demonstrating the required headers and payload structure. Ensure you replace YOUR_API_KEY with the key generated during signup.

curl https://api.deepseeknsfw.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."}]
  }'

Successful responses return a JSON object containing the generated text in the choices array. If the key is invalid, you receive a 401 error. If you lack sufficient credit, you receive a 402 error. Note that errors and refusals are free, so you are not charged for failed attempts.

Python SDK Integration

For Python developers, the official openai library works directly with our API. Initialize the client by providing your API key and the specific base URL. The model identifier uncensored triggers the uncensored large language model hosted on our infrastructure. This approach allows you to maintain standard code patterns while gaining access to the uncensored variant for adult or controversial topics.

from openai import OpenAI

client = OpenAI(base_url="https://api.deepseeknsfw.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)

This setup supports standard parameters like temperature and top_p to control creativity. The context window allows for 100,000 tokens total (prompt plus completion). There is no separate output cap per request, and if you do not specify max_tokens, the response can run to the end of the window.

Node.js SDK Setup

Node.js developers can achieve the same result using the openai npm package. Configure the client with the same base URL and API key as the Python example. The interaction model remains consistent across SDKs, ensuring that your code is portable if you switch between environments. The uncensored model responds to standard chat completion requests without requiring custom wrappers.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.deepseeknsfw.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);

Remember that only one active key is allowed per account. If you generate a new key, the previous one is invalidated immediately. This simplifies key management but requires you to update your environment variables if you rotate keys.

Streaming Responses (SSE)

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) for each generated token. Token usage information is provided in the final chunk of the stream. This allows you to display output in real-time without waiting for the full response. Streaming is efficient for long-form generation, but note that the connection does not support resuming from the last token if it drops; you must restart the request.

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)

Each chunk contains partial content. Aggregate these chunks in your client code to reconstruct the full response. This method is ideal for chat interfaces where immediate feedback improves the user experience.

Rate Limits, Errors, and Quotas

Each API key is limited to 300 requests per minute and allows up to 8 concurrent requests. The maximum request body size is 8 MB. If you exceed these limits, you receive a 429 error. Common errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limits. Errors and refusals are free, so you are not charged for these responses. The credit never expires, and you can top up using crypto (USDT on TRC20 or USDC on Base) in amounts from $20 to $500. No card is needed for the $0.50 trial credit, which is valid for 7 days. Claim this credit with one click on your API key page.

Questions and answers

What is the maximum context window?

The total context window is 100,000 tokens, combining both the prompt and the completion. If you do not specify the max_tokens parameter, the response can run to the end of the window.

How do I handle errors and refunds?

Errors such as 401 (invalid key) or 429 (rate limit) are free. If you make a mistake like a double charge, you can request a fix through the Support page. Credit is not refunded in the traditional sense because it never expires.

Is the uncensored model the same as DeepSeek?

No. The model ID is uncensored and runs on our own servers. It is an open-weight model tuned to answer without content refusals for lawful adult use. It is not a vendor's model like DeepSeek, GPT, or Llama.

Your key is one form away

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

Get API key

Under the hood: specs

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

ParameterDetails
ProtocolOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
API keyBearer token in the Authorization header
Base URLhttps://api.deepseeknsfw.com/v1
Modeluncensored
Structured outputJSON object mode via response_format json_object
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingSupported (stream: true), usage included at the end
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Context window100,000 tokens (prompt + completion together)
Rate limit300 requests per minute per key
Max body8 MB request body
Concurrencyup to 8 in parallel per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Volume bonus+5% from $50, +10% from $100, +15% from $200
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Subscriptionpaid credit never expires, no subscription
Contentuncensored for adults; the only hard rule: no sexual content involving minors
AccountGoogle or e-mail and password
Keysone active key per account; a new key replaces the old one

Errors and what to do

The type field is stable, the message is for humans. Errors cost nothing.

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly