DeepSeek Coder API Key: How to Get One and Test It
To get a deepseek coder api key from this site you sign up, open the key page and copy the key; new users can also claim $0.50 of trial credit with one click. One clarification first: this is an independent hosted text API, not the official DeepSeek service.
Last updated

Key takeaways
- Sign up with Google or email and password, then open the API key page and copy your key.
- New users can claim $0.50 of trial credit with one click: 7 days, no card.
- Your first request needs the base URL, the key as a Bearer token and the model ID uncensored.
- Regenerate a key any time on the key page; the old one stops working at once.
What you are getting a key for
If you searched for a deepseek coder api key, you probably want an endpoint you can point an editor, a script or a CI job at to generate and review code. This site offers a hosted, OpenAI-compatible API that runs one open-weight model under the ID uncensored. It is run by an independent provider and tuned to answer without content refusals for lawful adult use.
Be clear about what it is not. It is not the official API of DeepSeek or any other vendor, it is not a router across vendors, and we do not sell it as a dedicated coding model. It is a text model you can ask to write, explain and review code, so test it on your own tasks before relying on it. It is also text only: no images, audio, embeddings or fine-tuning.
Get your key in five steps
- Open the API key page.
- Sign up with Google, or with an email address and password.
- Claim the trial credit with one click. It is $0.50, valid for 7 days, one per person, and needs no card.
- Copy the key shown on the page and store it in a password manager or a secret store.
- Set it as an environment variable in the shell where you will run your code.
export API_KEY="paste-your-key-here"
# the list should include "uncensored"
curl https://api.deepseekcoderapikey.com/v1/models \
-H "Authorization: Bearer $API_KEY"
The models call is a cheap way to check that the key works. It should list uncensored. If it fails, the usual cause is a typo in the key or a missing Bearer prefix.
Make a first coding request
Here is a request that asks for a small function. It uses the chat completions endpoint with the model ID uncensored:
curl https://api.deepseekcoderapikey.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"temperature": 0.2,
"messages": [
{"role": "system", "content": "You are a careful senior developer. Reply with code first, then a one-line note."},
{"role": "user", "content": "Write a Python function that removes duplicates from a list while keeping order."}
]
}'
The same call from Python with the standard OpenAI SDK:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepseekcoderapikey.com/v1",
api_key=os.environ["API_KEY"],
)
resp = client.chat.completions.create(
model="uncensored",
temperature=0.2,
messages=[
{"role": "system", "content": "You are a careful senior developer. Reply with code first, then a one-line note."},
{"role": "user", "content": "Write a Python function that removes duplicates from a list while keeping order."},
],
)
print(resp.choices[0].message.content)
print(resp.usage)
A low temperature such as 0.2 gives more repeatable code. Raise it if you want varied approaches. The reply sits in choices[0].message.content and the token counts in usage.
What the trial covers
The $0.50 trial credit goes further for code than you might expect. At $0.15 per 1M input tokens and $0.50 per 1M output tokens, it equals about 3.3M input tokens or 1M output tokens. A typical review of a 300-line file with 500 tokens of feedback uses around 3,000 input and 500 output tokens: 3,000 x 0.15 / 1M = $0.00045 plus 500 x 0.50 / 1M = $0.00025, so $0.0007. The trial pays for roughly 700 such reviews.
The trial key has lower limits than a full key: 2 concurrent requests and 60 per minute, against 8 and 300. That is plenty for testing an editor plugin or a small script, but a parallel batch job will hit concurrency errors. Those arrive as HTTP 429 with the error code concurrency, and the fix is to run fewer requests at once.
Use the key in your editor or tools
Many editor extensions, command-line assistants and agent frameworks let you set a custom OpenAI-compatible endpoint. You normally need three values:
| Setting | Value |
|---|---|
| Base URL | https://api.deepseekcoderapikey.com/v1 |
| API key | The key from the key page |
| Model | uncensored |
If a tool insists on a known model name from a drop-down, look for a "custom model" or "OpenAI-compatible" option. Where a tool appends /chat/completions itself, give it the base URL ending in /v1 and nothing more. The long-context limit is 100,000 tokens, prompt plus completion, so avoid tools that stuff a whole repository into every request. For a walk-through of wiring up a coding workflow, see the integration guide.
Keep the key safe
- Never commit it. Keep it in an environment variable or a secret manager, and add local env files to
.gitignore. - One key per use. After you top up, an account can hold up to 5 keys with labels. Give your editor, your CI job and your server separate keys so you can revoke one without breaking the rest.
- Regenerate on a leak. On the key page you can reissue the key at any time. The old key stops working immediately, and you do not need to contact support.
- Watch the balance. Every response includes an
X-Balance-USDheader, andGET /v1/balancereturns the same figure on demand.
Prompts are not used for training, but the code you send still leaves your machine, so keep secrets and private credentials out of your prompts.
After the trial: topping up
When the trial runs out, you top up with any whole amount from $20 to $500, paid in crypto (USDT on TRC20 or USDC on Base). Bonuses apply: +5% from $50, +10% from $100 and +15% from $200. Credit never expires, so there is no pressure to spend it by a date. Failed or refused requests are not charged. The full rate list is on the pricing page, and the endpoint reference is in the docs.
If your first request fails
Most first-day problems come from a short list of causes. Work through it before you suspect anything else.
- Authentication error. Check that the header is exactly
Authorization: Bearer <key>, that no quotes or line breaks came along when you pasted the key, and that the environment variable is set in the same shell where you run the code. - Not found. The base URL must end in
/v1. Doubling the path, as in/v1/v1/chat/completions, is common when a tool already appends it. - Model error. The model ID is
uncensored, in lowercase, with no vendor prefix. - 429 with
concurrency. A trial key allows 2 requests at once. A streaming call holds its slot until the stream ends, so two open streams block a third request. - 429 with
rate_limited. The trial key allows 60 requests per minute. Slow your loop down. - Request too large. The body limit is 8 MB, and the context window is 100,000 tokens in total.
Every response carries an X-Request-Id header. If you contact support through the site, include that ID so the request can be found.
More guides
Common questions
Is this the official DeepSeek Coder API?
No. It is an independent hosted API that runs one open-weight text model under the ID uncensored. It is not operated by DeepSeek or any other vendor.
Do I need to enter payment details to get a key?
No. You sign up with Google or email and password and can claim $0.50 of trial credit with one click, valid for 7 days, with no payment details.
Which model ID should I use?
Use uncensored in the model field. You can confirm it by calling GET /v1/models with your key.
What if my key leaks?
Regenerate it on the API key page. The old key stops working immediately, and you can then use the new one.
Key generation takes seconds
Register, copy your key, and update your base URL. That is all.