EN ▾

Uncensored API for DeepSeek Coder code generation

https://api.deepseekcoderapi.cc/v1uncensored

Get API key

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.

SpecValue
ProtocolOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Base URLhttps://api.deepseekcoderapi.cc/v1
API keyAuthorization: Bearer YOUR_KEY
Max context100,000 tokens (prompt + completion together)
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
JSON moderesponse_format: {"type": "json_object"}
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
StreamingYes — server-sent events; the last chunk carries token usage
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Request size8 MB request body
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300 requests per minute per key
Parallel requestsup to 8 in parallel per key
Paymentcrypto: 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
Subscriptionpaid credit never expires, no subscription
Billingprepaid 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 policyadult content allowed; sexual content involving minors is refused
Keysone key per account, regenerate any time (the old one stops working)
Sign-inGoogle or e-mail and password

Error reference

The type field is stable, the message is for humans. Errors cost nothing.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary 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.