Integrating DeepSeek Jailbreak: SDK Setup & Checklist
Developers often seek reliable ways to connect their applications to uncensored language models without complex billing setups. This guide walks you through the essential steps to integrate our API using standard SDKs, ensuring you can send text and receive responses efficiently. We focus on the technical configuration required to get your first request working correctly.

Understanding the Base URL and Endpoint Structure
When integrating with our service, the first critical step is configuring the base URL correctly. Our API operates on a standard OpenAI-compatible structure, which means you can use familiar SDKs without needing to write custom HTTP clients from scratch. The base URL for our service is https://api.deepseekjailbreak.com/v1. This URL serves as the foundation for all your API calls, ensuring that your requests are routed to the correct server infrastructure.
Once you have the base URL, you need to append the specific endpoint for chat completions. The endpoint for sending messages is POST /v1/chat/completions. This endpoint handles the core functionality of our API, accepting text input and returning text output. It is important to use the correct HTTP method, which is POST, to ensure that your data is sent properly to the server.
Additionally, there are other endpoints available for different functionalities. You can use POST /v1/responses for alternative response formats and GET /v1/models to retrieve information about available models. However, for most use cases involving text generation, the chat completions endpoint is the primary one you will interact with. Keeping these URLs straight is essential for a smooth integration process.
It is also worth noting that our API does not support embeddings, image generation, audio, video, OCR, fine-tuning, or model routing. If your application requires any of these features, our API may not be the right choice. We focus solely on providing a high-quality, uncensored text generation experience. By understanding the limitations and capabilities of our API, you can better design your application to fit our service.
Authentication and API Key Management
Authentication is handled via API keys, which you receive immediately after signing up. You can sign up using Google or by creating an account with an email and password. Once you have an account, your API key is shown to you right away, allowing you to start making requests without delay. This key is unique to your account and should be kept secure to prevent unauthorized access to your credit.
To authenticate your requests, you need to include the API key in the Authorization header of your HTTP requests. The format is typically Bearer followed by your API key. For example, if your key is 'sk-12345', the header would be Authorization: Bearer sk-12345. This header tells the server who you are and allows you to access the API services. Without this header, your requests will be rejected with a 401 error.
It is important to manage your API keys carefully, as they are the primary means of accessing your account and using your prepaid credit. If you lose your key, you may need to generate a new one, depending on the platform's key management features. Always store your keys in environment variables or secure configuration files to avoid exposing them in your code repository.
If you encounter a 401 error, it usually means your key is invalid or missing. A 402 error indicates that you have no credit left, and a 429 error means you have hit the rate limit. Understanding these error codes will help you troubleshoot issues quickly and ensure that your application continues to function smoothly.
Configuring the Model ID and Parameters
One of the key aspects of integrating with our API is setting the correct model ID. Our API serves one uncensored open-weight text model, and the model ID you need to send is 'uncensored'. This ensures that the request is processed by the correct model, which is designed to provide uncensored responses to a wide variety of topics. Using the wrong model ID may result in unexpected behavior or errors.
In addition to the model ID, you can configure various parameters to customize the behavior of the model. These parameters include temperature, top_p, stop sequences, seed, and penalties. The temperature parameter controls the randomness of the output, with higher values producing more diverse responses. The top_p parameter controls the diversity of the output by filtering out less likely tokens.
Stop sequences allow you to specify strings that will terminate the model's output. This is useful for controlling the length of the response or stopping the model at specific points. The seed parameter allows you to set a random seed for reproducibility, which can be helpful for debugging and testing. Penalties can be used to discourage the model from repeating certain words or phrases.
By carefully configuring these parameters, you can fine-tune the output of the model to better suit your application's needs. Experimenting with different settings can help you find the optimal balance between creativity and accuracy. Remember that these parameters are sent in the request body, so you need to structure your JSON payload correctly to include them.
Handling Streaming and JSON Mode
Our API supports streaming over Server-Sent Events (SSE), which allows you to receive responses in real-time as they are generated. This is particularly useful for applications that require immediate feedback, such as chat interfaces. When streaming, the usage information is included in the last chunk of the response, allowing you to track token consumption as the response is being generated.
In addition to streaming, our API supports JSON mode, which ensures that the model's output is valid JSON. This is useful for applications that need to parse the response programmatically. When using JSON mode, the model will output a JSON object that can be easily parsed by your application. This reduces the need for additional parsing logic and ensures that the response is structured correctly.
Function calling is another feature supported by our API, allowing you to define tools that the model can call. This is useful for applications that need to interact with external systems or perform specific actions based on the model's output. By defining tools, you can extend the capabilities of the model and create more complex workflows.
When integrating streaming and JSON mode, it is important to handle the response correctly to ensure that the data is processed efficiently. You may need to implement logic to handle partial responses and ensure that the final response is complete and valid. Testing your integration thoroughly will help you identify any issues with streaming or JSON parsing.
Pricing, Credit, and Payment Methods
Our API uses a prepaid credit system, where you pay for the tokens you use. The pricing is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, so you only pay for successful responses. There is no subscription or monthly fee, and your paid credit never expires. This flexible pricing model allows you to scale your usage without committing to a fixed cost.
To add credit to your account, you can use cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount between $20 and $500. If you top up with $50 or more, you receive bonus credit, ranging from +5% to +15%. This bonus credit provides additional value for larger purchases.
New accounts receive $0.50 of trial credit, which allows you to test the API without needing to add credit immediately. No card or payment method is required to start with the trial credit. This is a great way to explore the API and determine if it meets your needs before committing to a purchase.
It is important to monitor your credit usage to ensure that you have sufficient funds for your requests. You can track your usage through the API responses, which include token counts. By understanding the pricing structure and payment methods, you can effectively manage your budget and avoid unexpected charges.
Rate Limits and Error Handling
Our API has a rate limit of 300 requests per minute per key. This limit ensures that the service remains responsive for all users. If you exceed this limit, you will receive a 429 error, indicating that you have hit the rate limit. To avoid hitting the rate limit, you can implement retry logic with exponential backoff in your application.
Error handling is an important part of any API integration. Our API returns specific error codes to help you diagnose issues. A 401 error indicates an invalid key, a 402 error indicates no credit, and a 429 error indicates a rate limit violation. By handling these errors appropriately, you can provide a better user experience and prevent your application from crashing.
It is also important to handle network errors and timeouts gracefully. These errors can occur due to network instability or server issues. Implementing retry logic for these errors can help ensure that your requests are completed successfully. You can also implement logging to track errors and identify patterns that may indicate underlying issues.
By understanding the rate limits and error codes, you can design your application to handle failures gracefully and maintain a smooth user experience. Testing your integration under different conditions, such as high load or network instability, can help you identify potential issues and optimize your integration.
When Our API Is Not the Right Choice
While our API excels at providing uncensored text generation, it may not be the right choice for all applications. Our API does not support embeddings, image generation, audio, video, OCR, fine-tuning, or model routing. If your application requires any of these features, you may need to consider a different solution. For example, if you need to generate images, our API cannot fulfill that need.
Additionally, our API is designed for text-in, text-out interactions. If your application requires real-time voice interaction or video processing, our API may not be suitable. It is important to evaluate your application's requirements against the capabilities of our API to determine if it is the right fit.
Another consideration is the pricing model. Our API uses a prepaid credit system, which may not be ideal for applications with unpredictable usage patterns. If you prefer a subscription-based model or pay-as-you-go with no upfront credit, our API may not align with your budgeting needs.
Finally, if you need a service with specific SLA guarantees or certifications such as SOC2, HIPAA, or ISO, our API does not currently offer these. Our service is an independent platform focused on providing uncensored text generation. If these certifications are critical for your application, you may need to explore other options that offer these guarantees.
Frequently asked questions
How do I get an API key?
You can sign up using Google or an email and password. Your API key is shown immediately after signup, allowing you to start using the service right away.
What is the model ID for the uncensored model?
The model ID you need to send is 'uncensored'. This ensures that your request is processed by the correct uncensored text model.
Can I use credit cards for payment?
No, we only accept cryptocurrency. You can top up with USDT on TRC20 or USDC on Base. Cards, PayPal, and bank transfers are not accepted.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 error. You can add more credit using crypto, and your existing credit never expires.