EN ▾
Get API key

Uncensored API. Real tokens. No refusals.

Start with trial credit

Email and password, key on screen right away.

Get API key

How to Use DeepSeek API Style Calls With Our Endpoint

If you searched how to use deepseek api, the short version is: point any OpenAI client at a new base URL, add a Bearer key and set the model to uncensored. This guide walks through each step with code you can paste.

Updated

Isometric terminal linked by a glowing cable to a server cube, representing connecting a client to an API

Key points

  • Three changes are enough: base URL, API key, model ID.
  • Use POST /v1/chat/completions with the model ID uncensored.
  • A $0.50 trial credit needs no payment; top-ups start at $20 in crypto.
  • This is an independent hosted model, not the official DeepSeek API.

The short version

The service speaks the same protocol as the OpenAI Chat Completions API, so you do not need a special library. Here is the whole procedure:

  1. Create an account with Google or with email and password.
  2. Claim the trial credit on the API key page and copy your key.
  3. Set the base URL to https://api.deepseeknsfw.top/v1.
  4. Send a request to /chat/completions with the model uncensored.
  5. Read the reply from choices[0].message.content.

One point before you start. This site is not run by DeepSeek and does not resell the official DeepSeek API. It hosts one open-weight model, operated by an independent provider and tuned to answer without content refusals for lawful adult use. The protocol is familiar; the model behind it is a different one, and the only model ID is uncensored.

Step 1: get a key

Open the API key page after you sign up. New users can claim $0.50 of trial credit with one click. It is limited to one per person, lasts 7 days and needs no payment method. At the trial rate of $0.15 per 1M input tokens and $0.50 per 1M output tokens, that covers well over a thousand short test exchanges (a 500-token prompt with a 300-token reply costs about $0.000225).

When the trial is used up, add prepaid credit. Any whole amount from $20 to $500 works, and larger top-ups carry a bonus: +5% from $50, +10% from $100, +15% from $200. This site takes crypto only (USDT on TRC20 or USDC on Base). Credit never expires and there is no subscription, so you pay only for tokens you use. The pricing page has the details.

Treat the key like a password. Keep it in an environment variable, not in a Git repository or in front-end code.

Step 2: send a first request with curl

Curl is the fastest way to confirm that the key works.

export API_KEY="paste-your-key-here"

curl https://api.deepseeknsfw.top/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what a base URL is in two sentences."}
    ],
    "temperature": 0.7
  }'

A good response is JSON with a choices array and a usage block. If you want to confirm the model list first, run GET https://api.deepseeknsfw.top/v1/models with the same header.

Step 3: use the official OpenAI SDKs

You do not install anything new. Keep the openai package and override two values.

Python

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deepseeknsfw.top/v1",
    api_key=os.environ["API_KEY"],
)

resp = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a concise assistant."},
        {"role": "user", "content": "Give me three names for a fantasy tavern."},
    ],
    temperature=0.8,
)
print(resp.choices[0].message.content)
print(resp.usage)

Node

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deepseeknsfw.top/v1",
  apiKey: process.env.API_KEY,
});

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Say hello in five languages." }],
});
console.log(resp.choices[0].message.content);

Most existing code needs only the constructor change. If your project hard-codes a model name from another provider, replace it with uncensored.

Step 4: stream the answer

For chat interfaces you want tokens as they arrive. Set stream to true and read the server-sent events. Usage is reported at the end of the stream.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a short scene on a night train."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

A streamed request holds one of your concurrency slots until the stream ends. If a client abandons a stream without closing it, that slot stays busy longer than you expect, so close the connection when the user leaves.

Wrap the call with a retry

Production code should expect an occasional 429. A small helper keeps the rest of your program clean. It waits when the server asks, backs off when it does not, and gives up after a few tries.

import random, time
from openai import OpenAI, RateLimitError

client = OpenAI(base_url="https://api.deepseeknsfw.top/v1", api_key="YOUR_KEY")

def chat(messages, tries=4, **kw):
    for attempt in range(tries):
        try:
            return client.chat.completions.create(
                model="uncensored", messages=messages, **kw
            )
        except RateLimitError:
            time.sleep(5 + random.random() * attempt)
    raise RuntimeError("still rate limited after retries")

The five-second base delay matches the Retry-After: 5 header the API sends on temporary overload. If you run many workers, cap them at 8 total on a full key, or at 2 on a trial key, so the concurrency limit is not what slows you down. A semaphore or a fixed-size thread pool does the job.

Common problems and fixes

  • 401 error. The key is missing, truncated or pasted with a quote mark. Print its length and compare it to the key page, and make sure the header reads Bearer followed by one space.
  • 404 error. Almost always a wrong base URL. It must end in /v1, and the SDK adds /chat/completions itself.
  • Model not found. You left in a model name from another provider. Use uncensored.
  • Reply cut off. You set max_tokens too low. The field is optional, and the completion may use whatever is left of the 100,000-token window.
  • Slow first token on long prompts. A very long history takes longer to process. Trim old messages or summarize them.
  • Balance surprises. Read X-Balance-USD from the response headers to track spending as you test.

Keep a log of X-Request-Id values. If something looks wrong, that ID is the quickest way to describe the exact request to the support page team.

Parameters, limits and errors

The usual sampling controls pass through: temperature, top_p, stop, seed and the frequency and presence penalties. Tool calling and JSON mode (response_format with json_object) are supported too. The context window is 100,000 tokens, counting prompt and completion together, and max_tokens is optional.

Key typeConcurrent requestsRequests per minute
Full key8300
Trial key260

Go over a limit and you get HTTP 429. The error code rate_limited means too many requests per minute; concurrency means too many at once. On temporary overload the API also returns 429 with a Retry-After: 5 header. Wait that long and retry, ideally with a small random delay. Failed or refused requests are not charged.

Each response carries X-Request-Id and X-Balance-USD, so you can log request IDs for support and watch your balance without a separate call. The request body can be up to 8 MB. Prompts are not used for training.

What differs from the official DeepSeek API

People who ask how to use the DeepSeek API usually have code written for DeepSeek's own service. Moving it here is mostly a configuration change, but check these points:

  • The model ID is uncensored. Names such as the ones used by other vendors will not resolve.
  • The service is text only. There is no image, audio or video generation, no embeddings and no fine-tuning.
  • The model is tuned to answer without content refusals for lawful adult use. Sexual content involving minors is never allowed.
  • Billing is separate. Your balance lives here, not with any other provider.

For a quick look at what your client needs, the docs page lists the three-line switch. If you came looking for a key specifically, the DeepSeek API key page explains how access works on this site.

Questions and answers

Is this the official DeepSeek API?

No. It is an independent hosted service running one open-weight model from a separate provider. It uses the OpenAI-compatible protocol, so client code looks similar.

Which model name do I put in the request?

Use uncensored. It is the only model ID, and GET /v1/models lists it.

Can I try it without paying?

Yes. Claim the $0.50 trial credit with one click on the API key page after sign-up. It lasts 7 days and needs no payment method.

Why do I get a 429 error?

You hit a limit. The code rate_limited means too many requests per minute, concurrency means too many at once, and a Retry-After: 5 header marks temporary overload. Wait and retry.

Does it support streaming?

Yes. Set stream to true and read server-sent events. Usage appears at the end of the stream.

Your key is one form away

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

Get API key