Quickstart for DeepSeek users
This guide shows how to use the standard OpenAI SDK to send requests to our uncensored API. You only need to change the base URL and API key to start using the model immediately.
Base URL and Authentication
To start, update your client configuration to point to our base URL. You will need an API key, which you can generate on the Get API key page using Google or email. Pass this key in the Authorization header as a Bearer token. Our API follows the standard OpenAI chat-completions pattern, so no custom wrappers are required. The model identifier is uncensored. This works with any library that supports the OpenAI protocol.
Basic Chat Completion Request
Send a standard completion request using your preferred HTTP client or SDK. The request body includes the model name, messages array, and optional parameters. Our server processes the input and returns the generated text. This is the core interaction for text-based tasks. Ensure you are using the correct base URL to avoid connection errors.
curl https://api.uncensoreddeepseek.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."}]
}'
Python SDK Integration
Using the official Python SDK is straightforward. Initialize the client with your key and the specific base URL. Then, call chat.completions.create with your prompt. This approach keeps your code compatible with existing OpenAI integrations. You can adjust parameters like temperature or top_p directly in this call.
from openai import OpenAI
client = OpenAI(base_url="https://api.uncensoreddeepseek.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)
Node SDK Integration
For JavaScript or TypeScript projects, install the OpenAI package and configure the client similarly. Set the baseURL and apiKey properties. Then invoke the chat completion endpoint. This method ensures your Node.js application interacts with our uncensored model using familiar patterns. No additional configuration is needed for standard text generation.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.uncensoreddeepseek.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);
Streaming Responses with SSE
Enable streaming by setting the stream flag to true. The server returns a Server-Sent Events (SSE) stream. Each chunk contains partial text, and the final chunk includes token usage statistics. This is ideal for real-time UI updates. Handle the stream events to accumulate the response text or display it 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)
Limits, Errors, and Context Window
Your requests are subject to a 100,000 token context window (input plus output). There is no separate output cap. If you do not set max_tokens, the response can run to the end of the window. You are limited to 300 requests per minute and 8 concurrent requests per key. A 401 error means your API key is invalid or missing. If you see a 429 error, you have exceeded the rate limit. Note that errors and refusals do not consume your prepaid credit.
Function Calling and Tools
Our API supports function calling for structured interactions. Define your tools in the request body and let the model decide which to call. This enables complex workflows without parsing raw text. Use the tool_choice parameter to control how the model selects tools. This feature is fully compatible with the OpenAI tool-use schema.
Strict JSON Mode
Force the model to output valid JSON by setting response_format to {"type": "json_object"}. This is useful for applications that require structured data. The model will attempt to conform to JSON syntax. Ensure your prompt clearly describes the expected structure. This mode helps reduce formatting errors in automated pipelines.
Parameters: Temperature, Top P, and Seed
Control generation variability with temperature and top_p. Lower values make outputs more deterministic. The seed parameter allows for reproducible results. These parameters work exactly as they do in the OpenAI API. Adjust them based on your need for creativity versus precision. All parameters are optional and default to standard values.
Technical reference
If your tool speaks the OpenAI API, these are the details that matter.
| Feature | Support |
|---|---|
| Compatibility | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Model | uncensored |
| Base URL | https://api.uncensoreddeepseek.cc/v1 |
| API key | Authorization: Bearer YOUR_KEY |
| Completion length | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Structured output | JSON object mode via response_format json_object |
| Sampling parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| SSE streaming | Supported (stream: true), usage included at the end |
| Function calling | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| Max context | 100,000 tokens, input and output combined |
| Max body | 8 MB request body |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Requests per minute | 300/min per key |
| Concurrency | 8 requests at the same time per key |
| Subscription | no monthly fee; paid credit does not expire |
| Price | $0.15 per 1M input tokens · $0.50 per 1M output tokens |
| How you pay | prepaid credit, charged by real token usage; errors and refusals are free |
| Free trial | $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 |
| Bonus credit | +5% from $50, +10% from $100, +15% from $200 |
| Payment | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Account | Google or e-mail and password |
| Content | adult content allowed; sexual content involving minors is refused |
| Key management | one key per account, regenerate any time (the old one stops working) |
Error reference
Every error is JSON with a type you can switch on. You are never charged for an error.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
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 | model busy — retry in a few seconds |
Questions and answers
Is this the official DeepSeek API?
No. We are an independent service running an open-weight uncensored model. We are not affiliated with DeepSeek, OpenAI, or any other vendor. Our API is compatible with their SDKs but serves our own model.
How do I get an API key?
Go to the Get API key page and sign in with Google or email. Your key is displayed immediately. No phone number or credit card is required for the trial credit.
What happens if I exceed my rate limit?
You will receive a 429 status code. The limit is 300 requests per minute and 8 concurrent requests per key. You can generate a new key to replace the current one if needed.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.