First request in five minutes
Get started with the uncensored DeepSeek Coder API in minutes. This guide covers authentication, basic requests, streaming, and billing for the drop-in OpenAI-compatible endpoint.
Authentication & Base URL
Our API is OpenAI-compatible. Use the base URL https://api.deepseekcoderapi.cc/v1 and include your API key in the Authorization header. Sign up via Google or email on the Get API key page to receive your key immediately—no phone number required.
The key is tied to one account; generating a new key replaces the old one. Keep your key secure, as it grants access to your prepaid credit. You can use any standard OpenAI SDK by simply updating the base URL and API key in your configuration.
Basic Chat Completion Request
Send a POST request to /v1/chat/completions with your model ID set to uncensored. The model responds to text inputs with text outputs, optimized for code generation without content filters for lawful adult use.
curl https://api.deepseekcoderapi.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."}]
}'The response includes the generated text and token usage. This is the simplest way to integrate the DeepSeek Coder API into your existing workflows.
Python SDK Integration
Use the official OpenAI Python SDK to interact with the API. Configure the client with the custom base URL and your API key. This approach maintains compatibility with standard client code while leveraging our uncensored model.
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseekcoderapi.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)Ensure you specify the model as uncensored to receive outputs from our tuned model. This setup allows you to switch between providers easily if needed, though we are an independent service and not affiliated with other vendors.
Node SDK Integration
For JavaScript/TypeScript projects, use the OpenAI Node SDK. Set the base URL to https://api.deepseekcoderapi.cc/v1 and provide your API key. This enables seamless integration into Node-based applications.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.deepseekcoderapi.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);The SDK handles the HTTP requests, allowing you to focus on logic. Remember that the model ID must be uncensored to access our specific uncensored DeepSeek Coder instance.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Token usage information is included in the last chunk of the stream, allowing you to track costs in real-time.
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)This feature is ideal for long code generations, providing immediate feedback to users. Ensure your client handles SSE properly to avoid missing the final usage data.
Limits, Errors, and Billing
Expect a 401 error if the key is invalid, 402 if credit is exhausted, and 429 if you exceed 300 requests per minute or 8 concurrent requests. The context window is 100,000 tokens (prompt + completion), with no separate output cap.
Billing is per-token: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free. Credit is prepaid via crypto (USDT, USDC) and never expires. A hard content limit blocks sexual content involving minors.
Technical reference
Before you integrate, here is exactly what you get with a key.
| Spec | Value |
|---|---|
| Protocol | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model ID | uncensored |
| Base URL | https://api.deepseekcoderapi.cc/v1 |
| API key | Authorization: Bearer YOUR_KEY |
| Max context | 100,000 tokens (prompt + completion together) |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| JSON mode | response_format: {"type": "json_object"} |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Streaming | Yes — server-sent events; the last chunk carries token usage |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Request size | 8 MB request body |
| Response headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300 requests per minute per key |
| Parallel requests | up to 8 in parallel per key |
| Payment | crypto: USDT on TRON or USDC on Base, $20–$500, any whole sum |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| Subscription | paid credit never expires, no subscription |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Trial credit | $0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Keys | one key per account, regenerate any time (the old one stops working) |
| Sign-in | Google or e-mail and password |
Error reference
The type field is stable, the message is for humans. Errors cost nothing.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
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 | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | request body larger than 8 MB |
429 | rate_limited · concurrency | over 300/min or 8 parallel — back off and retry |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
What is the context window size?
The context window is 100,000 tokens, comprising both the prompt and the completion together. There is no separate output cap per request, and if max_tokens is not set, the response can run to the end of the window.
How do I top up my credit?
Top up by crypto (USDT on TRC20, USDC on Base). Minimum $20, maximum $500 per transaction. Credit never expires, and bonuses are applied at $50 (+5%), $100 (+10%), and $200 (+15%).
Is this an official DeepSeek API?
No, this is an independent service. We host an uncensored model optimized for coding workflows. We are not affiliated with DeepSeek or any other vendor. Check vendor documentation for their specific models and limits.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.