First request in five minutes
Connect your existing DeepSeek-style coding client to our uncensored API in minutes. Switch base URLs, set your key, and start generating code without subscription traps.
Authentication Setup
To begin, you need an API key. Sign up on the Get API key page using Google or an email address. Your key appears immediately. No phone number or credit card is required for the account; you can top up credits later by crypto (USDT on TRC20, USDC on Base).
Set your environment variable or client configuration to use the key you received. This key authenticates all requests to our endpoint. If you receive a 401 error, verify that the key is correct and not expired. Our system ties one active key per account; generating a new key replaces the old one instantly.
Basic Chat Completion
Our API follows the OpenAI chat-completions format. Point your client to our base URL and send a POST request with your messages. The model ID to use is "uncensored". This open-weight model is tuned to answer without content refusals for lawful adult use.
Below is a cURL example showing the basic structure. Replace YOUR_API_KEY with your actual key.
curl https://api.deepseekcoder.top/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."}]
}'Remember that errors and refusals are free. You only pay for tokens successfully processed. The base URL is https://api.deepseekcoder.top/v1.
Python SDK Integration
Using the official OpenAI Python SDK is straightforward. Initialize the client with our base URL and your API key. This allows you to keep your existing code structure while switching the backend model.
The code below demonstrates a simple completion call. The client handles serialization automatically. Ensure your requests stay within the 8 MB body limit. Each request consumes input and output tokens based on the model's processing.
from openai import OpenAI
client = OpenAI(base_url="https://api.deepseekcoder.top/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)This approach works with any OpenAI-compatible client library. You can swap the base URL to test different providers or stick with our uncensored endpoint for coding tasks.
Node.js SDK Usage
For JavaScript developers, the Node.js OpenAI SDK works identically. Configure the apiKey and baseURL properties in your client instance. This ensures all subsequent calls route to our servers.
The example below shows how to make a request. The response contains the generated text and token usage statistics. You can integrate this directly into your build pipelines or local development scripts.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.deepseekcoder.top/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);No additional libraries are required beyond the standard OpenAI package. The endpoint supports standard HTTP methods and headers expected by OpenAI-compatible clients.
Streaming Responses
For real-time coding assistance, enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Each chunk contains partial text, and the final chunk includes the total token usage.
Streaming reduces perceived latency for developers waiting for code generation. The last chunk provides the billable token count. This allows your application to update the UI incrementally.
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)Handle the stream events appropriately in your client. The model generates text token by token, which is ideal for interactive coding environments or live documentation tools.
Limits, Errors, and Context
Our API enforces specific limits to ensure stability. You can make 300 requests per minute per key, with a concurrency limit of 8 simultaneous requests. The request body must not exceed 8 MB.
Common errors include 401 (invalid key), 402 (insufficient credit), and 429 (rate limit). Your prepaid credit covers token usage; errors do not consume credit. The context window is 100,000 tokens total (prompt + completion). If max_tokens is unset, the response can run to the end of the window. Credit never expires, and no monthly fees apply.
API specifications
If your tool speaks the OpenAI API, these are the details that matter.
| Item | Value |
|---|---|
| Compatibility | OpenAI Chat Completions schema; official openai SDKs work unchanged |
| Base URL | https://api.deepseekcoder.top/v1 |
| API key | Bearer token in the Authorization header |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Max context | 100,000 tokens, input and output combined |
| JSON mode | response_format: {"type": "json_object"} |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| SSE streaming | Supported (stream: true), usage included at the end |
| Max body | 8 MB request body |
| Requests per minute | 300/min per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Concurrency | up to 8 in parallel per key |
| Price | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| 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 |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Subscription | paid credit never expires, no subscription |
| Key management | one active key per account; a new key replaces the old one |
| Content policy | adult content allowed; sexual content involving minors is refused |
| Account | Google or e-mail and password |
HTTP errors
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 | out of credit; add credit and retry |
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
Does this API support image or audio generation?
No. We serve one uncensored large language model for text in and text out. There are no embeddings, image, audio, or video generation endpoints, and no fine-tuning capabilities.
What happens if I double-charge my account?
Credit is not refunded as it never expires. However, mistakes such as a double charge are fixed through the Support page. Contact us directly to resolve billing discrepancies.
Is the model trained on my data?
No. An account needs only an email, and prompts are not used for training. Your data remains private and is not used to improve the model outside your specific requests.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.