Quickstart for DeepSeek Coder users
Get your first response in under five minutes by pointing your OpenAI SDK to our base URL and authenticating with a generated API key.
Base URL and Authentication
Start by creating an account using Continue with Google or an email and password. You receive a single API key immediately, which replaces any previous key upon regeneration. Your requests authenticate against the base URL https://api.deepseekcoder.cc/v1 by including this key in the Authorization header. This endpoint serves the uncensored model, which accepts text input and returns text output without content refusals for lawful adult use.
First Request
Send a standard chat completion request to verify connectivity. The API expects a model ID of uncensored and accepts standard parameters like temperature and top_p. You can set a seed for deterministic outputs or define stop sequences. The request body must not exceed 8 MB.
curl https://api.deepseekcoder.cc/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."}]
}'
Verify the response structure matches the OpenAI format. If you encounter an error, check your key validity or credit balance.
Python SDK Integration
Use the official openai Python package to interact with the API. Initialize the client with your API key and the specific base URL. This approach ensures compatibility with existing codebases that target OpenAI, allowing you to swap the base URL without changing the rest of your logic.
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseekcoder.cc/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)
The client handles JSON serialization and HTTP requests automatically. You can pass additional parameters like presence_penalty or frequency_penalty directly in the chat.completions.create call.
Node SDK Integration
For JavaScript environments, install the openai package and configure the client similarly. Set the apiKey and baseURL properties. This method works seamlessly with both Node.js and browser-based applications that support the Fetch API.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.deepseekcoder.cc/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);
Handle asynchronous responses using await or promises. The SDK streams data if configured, but for standard requests, you receive the full response object once the model finishes generating the completion.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns data via Server-Sent Events (SSE). Each chunk contains partial completions. Token usage statistics are included only in the final chunk of the stream.
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)
Process each chunk to update your UI in real-time. This is ideal for long-form code generation where users benefit from seeing output as it is produced. Remember that the context window includes both the prompt and the completion tokens.
Limits, Errors, and Context
Each API key is limited to 300 requests per minute and 8 concurrent requests. There is no separate output cap, and if max_tokens is unset, the response can run to the end of the window. The total context window is 100,000 tokens. If you send an invalid key, the server returns a 401 error. If your prepaid credit is exhausted, you receive a 402 error requiring a crypto top-up. Rate limits return a 429 error. Errors and refusals do not consume credit.
Technical reference
One table with every limit, feature and price that applies to your key.
| Parameter | Details |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Base URL | https://api.deepseekcoder.cc/v1 |
| API key | Bearer token in the Authorization header |
| Model | uncensored |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| JSON mode | JSON object mode via response_format json_object |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Context window | 100,000 tokens, input and output combined |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | up to 8 in parallel per key |
| Max body | up to 8 MB per request |
| Rate limit | 300 requests per minute per key |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Credit expiry | paid credit never expires, no subscription |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| How you pay | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Trial credit | $0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Top-up | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Account | sign in with Google or with e-mail + password |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one active key per account; a new key replaces the old one |
Error reference
Errors come back as JSON with a stable type; failed and refused requests are not billed.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | balance is empty — top up, requests resume at once |
403 | content_blocked | refused by the content policy |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model busy — retry in a few seconds |
Questions and answers
How do I top up my credit?
You can top up by crypto (USDT on TRC20, USDC on Base). Minimum deposits are $20, and you receive a 5% bonus for deposits of $50 or more, and 10% for $100 or more. Credits never expire.
Is this the official DeepSeek API?
No. We are an independent service hosting the uncensored model. We are not affiliated with DeepSeek, OpenAI, or any other vendor. We provide an OpenAI-compatible endpoint for the uncensored model.
What is the trial offer?
New accounts receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page. No credit card is needed to start. You can use this to test streaming, function calling, or JSON mode before purchasing crypto credit.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.