Key points
- Sign up with Google or email and password, then open the API key page; no card is needed for the trial.
- The key works with any OpenAI SDK once you set our base URL and the model ID uncensored.
- This is not a DeepSeek-issued key and will not work on DeepSeek's own API, and the reverse is also true.
- Keep the key in an environment variable and watch the X-Balance-USD response header.
No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).
Get API keyWhat this key is, and what it is not
A key from this site authenticates you against https://api.deepseekcoderapi.top/v1. It is not a key from DeepSeek. The service behind it is an independent provider running one open-weight model, tuned to answer without content refusals for lawful adult use. If you already hold a key from DeepSeek's own platform, keep using it there. It will not work here, and a key from this site will not work on theirs.
The reason people land on this page is usually practical: they have code that already talks to an OpenAI-style API, they want a model that does not refuse, and they want to swap one key and one URL. That is exactly what this setup supports. Everything below assumes a standard Authorization: Bearer header, which every OpenAI SDK sends for you.
Get your key in four steps
- Create an account. Sign up with Google, or with an email and a password.
- Open the key page. Go to the API key page after signing in. Your key is shown there.
- Claim the trial. New users can claim $0.50 of trial credit with one click on that same page. It is one per person, valid for 7 days, and needs no card.
- Copy the key once into a safe place. A password manager or a secrets file outside your repository is fine.
That is the whole process. Sign-up and the trial claim are the only steps involved. If the page does not show a key for you, write to support instead of guessing.
Test the key before you build on it
Start with the model list. It is the cheapest possible check because it generates no tokens:
curl https://api.deepseekcoderapi.top/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
A valid key returns a JSON list that includes the model ID uncensored. An invalid or mistyped key returns an authentication error. Then send one real request:
curl https://api.deepseekcoderapi.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a one-line shell command that counts lines in all .py files."}],
"max_tokens": 200
}'
Look at the response headers as well as the body. X-Balance-USD shows your remaining credit, X-Request-Id is what support will ask for if something looks wrong, and X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency show your limits.
Store the key the right way
The most common leak is a key pasted into source code and pushed to a public repository. Avoid it from the start.
Put the key in an environment variable:
export NOTRACK_API_KEY="YOUR_API_KEY"
Then read it in your code. In Python:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepseekcoderapi.top/v1",
api_key=os.environ["NOTRACK_API_KEY"],
)
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Say hello in five words."}],
)
print(resp.choices[0].message.content)
In Node.js the same idea looks like this:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepseekcoderapi.top/v1",
apiKey: process.env.NOTRACK_API_KEY,
});
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Say hello in five words." }],
});
console.log(resp.choices[0].message.content);
Add your .env file to .gitignore. Never put the key in browser-side JavaScript, because anyone can read it there; call the API from your server and let your front end talk to your server. If you think a key has been exposed, contact support and describe the situation.
Trial key limits and full key limits
While you are on trial credit, the limits are lower than for a funded account:
| Trial | Full key | |
|---|---|---|
| Concurrent requests | 2 | 8 |
| Requests per minute | 60 | 300 |
| Max request body | 8 MB | 8 MB |
If you go over, the API answers with HTTP 429. The error code is rate_limited when you exceed requests per minute and concurrency when you have too many requests in flight. Note that a streamed request keeps its concurrency slot until the stream finishes, so a client that opens many long streams can hit the concurrency limit while sending very few requests per minute. A 429 with a Retry-After: 5 header means temporary overload; wait five seconds and retry.
import time
from openai import OpenAI, RateLimitError
client = OpenAI(base_url="https://api.deepseekcoderapi.top/v1", api_key="YOUR_API_KEY")
def ask(client, text, tries=4):
for i in range(tries):
try:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": text}],
)
return r.choices[0].message.content
except RateLimitError:
time.sleep(5 * (i + 1))
raise RuntimeError("still rate limited")Topping up when the trial ends
The $0.50 trial is meant for testing, not production. When you are ready to keep going, add prepaid credit. Any whole amount from $20 to $500 works, with a bonus of 5% from $50, 10% from $100 and 15% from $200. You can pay by by crypto (USDT on TRC20, USDC on Base). Credit does not expire, there is no subscription, and failed or refused requests are not charged.
As an example, a $100 top-up gives $110 of credit. At $0.15 per 1M input tokens and $0.50 per 1M output tokens, one request with 3,000 input tokens and 800 output tokens costs 3,000 x 0.15 / 1,000,000 = $0.00045 plus 800 x 0.50 / 1,000,000 = $0.0004, so $0.00085. That credit covers roughly 129,000 such requests. The pricing page has the full details, and the docs cover request options such as streaming, tool calling and JSON mode.
Try streaming and JSON mode
Once a plain request works, check the two features most apps need. Streaming returns tokens as they are generated over server-sent events, with usage reported at the end of the stream:
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseekcoderapi.top/v1", api_key="YOUR_API_KEY")
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Explain recursion to a new developer in three short paragraphs."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
JSON mode asks for a valid JSON object, which is handy when your code parses the reply. Mention JSON in the prompt as well, so the model knows what shape you want:
curl https://api.deepseekcoderapi.top/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"response_format": {"type": "json_object"},
"messages": [{"role": "user", "content": "Return a JSON object with keys name and language for a small CLI tool idea."}]
}'
If both behave as expected, your key, URL and model ID are all correct, and the remaining work is in your own application code. Parameters such as temperature, top_p, stop, seed and the penalties are passed through, so a lower temperature such as 0.2 is a sensible default for code-shaped tasks where you want repeatable output.
Common key problems
- 401 or authentication error. Check for a stray space or newline in the key, and confirm the header is
Authorization: Bearer .... - Connection works but the model is not found. Use the model ID
uncensoredexactly. - Requests go to the wrong host. Many SDKs default to another provider. Set the base URL explicitly, including the
/v1suffix. - Trial expired. Trial credit lasts 7 days. After that you need a top-up.
- Balance drops faster than expected. Long conversations resend history as input tokens on every call. Trim old turns or summarise them.
