EN ▾
DeepSeek Token PlanUncensored API, token by token, prepaid crypto.

https://api.deepseektokenplan.com/v1

Try with trial credit

Integrating DeepSeek Token Plan API

Switching to a new provider often requires adjusting authentication and model parameters. This guide covers the essential steps to integrate our OpenAI-compatible chat completions API into your workflow. We focus on practical configuration and handling common integration hurdles.

Developer workspace with laptop showing code for API integration

Understanding the API Structure

Our service provides a hosted, OpenAI-compatible chat-completions API. The base URL for all requests is https://api.deepseektokenplan.com/v1. You interact with a single uncensored open-weight text model by sending the model id uncensored. The system operates on a text-in, text-out basis, meaning it does not handle images, audio, or video generation. There is no OCR, fine-tuning, or model routing available. You are working with a straightforward text completion engine.

The API supports standard endpoints for chat completions and responses. You can also retrieve model information via a GET request. The context window allows for 100,000 tokens, covering both the prompt and the completion together. This capacity is sufficient for most long-document analysis and coding tasks. However, it is important to note that this is not a multimodal model. If your application requires image recognition or audio transcription, this API is not the right choice for those specific steps.

When integrating, you should expect a simple JSON response structure. The API returns text content, usage statistics, and error codes. It does not return embeddings or vector data. This makes it ideal for applications that need raw text generation rather than semantic search capabilities. You must handle the text processing in your own code. The model does not refuse lawful adult, fictional, or controversial topics, providing a flexible output for various use cases.

Authentication is handled via API keys. You can generate keys through Google login or email and password signup. The key is shown immediately upon creation. You must include this key in the Authorization header of your HTTP requests. The system checks the key validity on every request. If the key is invalid, you will receive a 401 error. If you have no credit, you will receive a 402 error. These errors are free, so you are not charged for failed attempts.

Authentication and Key Management

Getting started requires creating an account and obtaining an API key. You can sign up using Google or by providing an email and password. Once registered, your API key is displayed immediately. It is important to store this key securely, as it grants access to your prepaid credit. The key is tied to your account and can be used for multiple requests. You do not need to re-authenticate for each call; the key remains valid until you revoke it or run out of credit.

When integrating with your application, you should pass the API key in the Authorization header. The format is typically Bearer YOUR_API_KEY. This is standard for OpenAI-compatible APIs. If you are using a library or SDK, you can often set the API key as an environment variable or a configuration parameter. This prevents hardcoding sensitive credentials in your source code. Remember that the key is the only credential needed. There are no OAuth flows or complex authentication steps involved.

It is common for users to share API keys in forums or code repositories. If you accidentally expose your key, you should generate a new one immediately. The key itself does not reveal your account details, but it allows anyone with it to use your credit. There is no way to see what others do with your key. The only person who suffers is the owner of the key. You cannot track usage by key beyond the general request limits. Therefore, treat your key like a password.

You can have multiple keys for different environments or projects. Each key draws from the same prepaid credit pool. This allows you to distribute usage across different parts of your application. However, you cannot set spending limits per key. The system charges based on real token usage. If you need to control costs, you must implement logic in your application to monitor token consumption. The API itself does not enforce per-key budgets. You are responsible for managing your credit balance.

Configuring Model Parameters

Our API supports several parameters to control the behavior of the model. You can adjust the temperature to influence the creativity of the output. A lower temperature produces more deterministic results, while a higher temperature encourages more varied responses. You can also set the top_p parameter to control the nucleus sampling. This helps in filtering out low-probability tokens. The stop parameter allows you to define sequences that terminate the generation. This is useful for controlling the length of the output or stopping at specific markers.

You can also set a seed for reproducible results. This is particularly useful for testing and debugging. By fixing the seed, you can ensure that the same prompt produces the same output. This consistency is valuable when you are evaluating different prompts or parameters. The API also supports penalties, which can help in reducing repetition or bias in the output. These parameters are passed in the request body as part of the configuration object.

Function calling is supported, allowing you to define tools that the model can use. This is essential for building agents that can interact with external systems. You can define the schema of the tools, and the model will return structured data that matches the schema. This enables smooth integration with your application logic. You can also use JSON mode to force the model to output valid JSON. This is useful for parsing the response in your code.

Streaming is available over Server-Sent Events (SSE). This allows you to receive the response incrementally as it is generated. The usage statistics are included in the last chunk of the stream. This is efficient for displaying real-time output to users. You can handle the stream in your code by listening for events. The stream provides a better user experience for long responses. It also allows you to cancel the request if needed. Streaming is a key feature for interactive applications.

Handling Errors and Limits

Understanding error codes is important for a smooth integration. The API returns specific HTTP status codes to indicate the nature of the error. A 401 error means the API key is invalid. This can happen if the key is misspelled or has been revoked. A 402 error indicates that you have no credit left. In this case, you need to top up your account. A 429 error signifies that you have hit the rate limit. The limit is 300 requests per minute per key. If you exceed this limit, you must wait before making more requests.

Errors and refusals are free, meaning you are not charged for tokens in these cases. This is important to note when debugging your application. If you are sending malformed requests, you will not incur costs. However, you should still monitor your error rates to ensure your integration is working correctly. You can implement retry logic for transient errors, such as rate limits. For permanent errors, such as invalid keys, you should alert the user or administrator.

The rate limit of 300 requests per minute is generous for most use cases. However, if you are processing large volumes of data, you may need to implement backoff strategies. You can also distribute requests across multiple keys to increase throughput. Each key has its own rate limit. This allows you to scale your application without hitting the limit too quickly. It is also a good practice to monitor your usage and adjust your request frequency accordingly.

Refusals occur when the content violates the hard content limit. The model refuses to generate content involving sexual content with minors. This is the only hard limit on content. Other controversial or adult topics are allowed. If a request is refused, you will receive a response indicating the refusal. You can handle this in your code by checking the response status. It is important to inform the user if their request was refused. This helps in managing expectations and improving the user experience.

Pricing and Payment Methods

Our pricing model is straightforward and based on token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. The credit is prepaid, meaning you must add funds before you can use the API. The credit is charged based on real token usage. Errors and refusals are free, so you are not charged for failed attempts. There is no subscription or monthly fee. Your paid credit never expires, so you can use it whenever you need it.

Top-ups can be made using cryptocurrency only. We accept USDT on the TRC20 network or USDC on the Base network. You can top up any whole amount from $20 to $500. If you top up $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus is added to your account immediately. There are no credit cards, PayPal, or bank transfers accepted. You must use one of the supported cryptocurrencies to add funds. This ensures fast and secure transactions.

New accounts receive $0.50 of trial credit. This allows you to test the API without making a purchase. No credit card is needed to receive the trial credit. You can use this credit to explore the API and evaluate its performance. If you are satisfied with the service, you can top up your account to continue using it. The trial credit is a good way to get started without any financial commitment.

It is important to monitor your credit balance to avoid service interruptions. You can check your balance in your account dashboard. If you run out of credit, you will receive a 402 error on your next request. You can top up your account at any time to restore service. The bonus credit for larger top-ups is a great incentive to add more funds. It allows you to save on costs in the long run. Always keep an eye on your usage to ensure you have enough credit for your projects.

When This API Is Not the Right Choice

While our API is powerful for text generation, it may not be the right choice for all applications. If your project requires image generation, audio synthesis, or video creation, this API is not suitable. It is a text-only model. You cannot use it to generate images or convert text to speech. If you need multimodal capabilities, you should look for a different provider. Our API focuses on high-quality text output for chat completions and function calling.

Similarly, if you need embeddings for semantic search, this API does not provide them. You cannot use it to vectorize text for a search engine. You must handle the embedding process separately or use a different API for that purpose. The same applies to OCR. If you need to extract text from images, this API cannot do it. You will need to use a dedicated OCR service. Our API is designed for text-in, text-out scenarios.

Another limitation is the lack of fine-tuning. You cannot train the model on your specific data. If you need a model that is specialized for a particular domain, you may need to look elsewhere. Our API uses a single uncensored open-weight model. You cannot customize the model itself. However, you can use prompt engineering and function calling to achieve similar results. This is often sufficient for many applications.

Finally, if you require high availability guarantees or certifications like SOC2 or HIPAA, this API may not meet your needs. We do not claim SLA percentages or specific certifications. If you are in a regulated industry, you should verify that our service meets your compliance requirements. Our service is independent and does not serve another vendor's model. It is best suited for developers who need a flexible, uncensored text API without the overhead of enterprise features.

Addressing Common Developer Questions

Developers often ask how to switch from other providers to our API. The process is simple because we use an OpenAI-compatible format. You can use the same SDKs and libraries that you use for OpenAI. You just need to change the base URL and the model ID. The model ID for our service is uncensored. This makes the transition easy for existing users. You do not need to rewrite your entire application. You can test the integration with the trial credit before committing to a purchase.

Another common question is about the difference between our service and other models. Users often compare us to models like DeepSeek or OpenAI. While our model performs well in many tasks, it is important to note that we are an independent service. We do not claim to be the same as any specific vendor. The performance may vary depending on the use case. It is best to test our API with your specific prompts to see how it performs. We do not provide benchmark scores, so you should evaluate the quality yourself.

Users also ask about the context window. Our API supports a 100,000 token context window. This is larger than many other models. It allows you to process long documents and maintain context over long conversations. This is particularly useful for applications that involve long-form writing or code analysis. You can send large prompts and receive coherent responses. The context window includes both the input and the output tokens.

Finally, developers often inquire about the pricing structure. Our pricing is transparent and based on token usage. You pay only for what you use. There are no hidden fees or subscriptions. The trial credit allows you to test the service without risk. The bonus credit for larger top-ups provides additional value. It is important to monitor your usage to ensure you are getting the best value. Our service is designed to be cost-effective for developers and indie builders.

Frequently asked questions

How do I authenticate with the API?

You authenticate by including your API key in the Authorization header of your HTTP requests. The key is generated when you sign up via Google or email. It is displayed immediately after registration.

What is the cost of using the API?

The cost is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. You pay with prepaid credit, and errors are free. There is no monthly subscription fee.

Can I use the API for image generation?

No, this API is text-only. It does not support image, audio, or video generation. You can only send text and receive text responses.

How do I top up my credit?

You can top up using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. Bonus credit is available for top-ups of $50 or more.