Troubleshooting Qwencode API Errors and Limits
Developers integrating our uncensored text API often encounter authentication failures, credit exhaustion, or rate limits. This guide explains how to resolve common HTTP errors and manage prepaid crypto credits to keep your agents running smoothly.

Understanding HTTP Error Codes
When integrating our API, you will likely encounter specific HTTP status codes that indicate issues with your requests. The most common errors are 401, 402, and 429. A 401 error means your API key is invalid or missing. A 402 error indicates that your prepaid credit has been exhausted. A 429 error signals that you have exceeded the rate limit of 300 requests per minute per key.
To resolve a 401 error, verify that you are sending the correct key in the Authorization header. Ensure you are using the key shown immediately after signup via Google or email. If you generated a new key, make sure the old one is no longer being used in your codebase. Always double-check for typos in the key string, as these keys are long and prone to copying errors.
A 402 error occurs when you run out of credits. Since our service uses prepaid credit charged by real token usage, you must top up before making further requests. Errors and refusals are free, so you can test your integration without spending credits. However, successful completions will deduct from your balance. Check your dashboard or API response for remaining balance details.
A 429 error happens when you send too many requests in a short period. Our limit is 300 requests per minute per key. If you hit this limit, wait for the window to reset or reduce the frequency of your requests. Implementing exponential backoff in your code can help manage these limits gracefully without interrupting your workflow.
Managing Crypto Top-Ups and Credit
Our API accepts crypto payments only, specifically USDT on the TRC20 network or USDC on the Base network. You can top up any whole amount between $20 and $500. This range allows for flexible budgeting without requiring large upfront commitments. There is no subscription fee, and your paid credit never expires, giving you time to use it as needed.
When you top up from $50, you receive bonus credit ranging from 5% to 15%. This bonus is added to your balance automatically. The process is straightforward: send the crypto to the provided address, and the credit is added to your account. No KYC is required for these transactions, making it easy for developers to start using the service quickly.
Errors and refusals do not consume your credit, which is useful for testing. You can send requests to check your integration without worrying about burning through your balance. However, successful text completions will deduct from your prepaid credit. Monitor your usage to ensure you have enough funds for your projects.
To avoid interruptions, keep an eye on your credit balance. If you are running a high-volume agent, consider setting up alerts or checking your balance regularly. Since there are no monthly fees, you only pay for what you use. This model is efficient for sporadic or variable workloads.
Rate Limits and Request Management
The rate limit for our API is 300 requests per minute per key. This limit is designed to ensure stable performance for all users. If you exceed this limit, you will receive a 429 error. To manage this, you can implement rate limiting in your application code. Use libraries or custom logic to throttle your requests to stay within the limit.
If you need higher throughput, consider using multiple API keys. Each key has its own 300 requests per minute limit. By distributing your requests across multiple keys, you can increase your overall capacity. This is useful for agents that need to process many inputs simultaneously.
Streaming responses can also help manage rate limits. By using Server-Sent Events (SSE), you can receive partial responses as they are generated. This reduces the time your connection is open and can help you manage concurrent requests more efficiently. The usage information is included in the last chunk of the stream.
Always check the rate limit headers in your responses if available. This helps you understand how close you are to the limit. If you are consistently hitting the limit, consider optimizing your prompts to reduce the number of tokens used. Shorter prompts can help you stay within the rate limit while still getting the responses you need.
When Our API Is Not the Right Choice
Our API is designed for text generation only. It serves one uncensored open-weight text model. If you need embeddings, image generation, audio, video, or OCR, this API is not the right choice. It does not support fine-tuning or model routing. You must use other services for those capabilities.
If you need to process images or audio, you will need to integrate additional tools. Our API can generate text that describes these media, but it cannot create or analyze them directly. For example, you can use our API to write a story, but you cannot use it to generate an image of that story.
If you need to fine-tune a model for a specific domain, our API does not support this feature. You would need to use a different service that offers fine-tuning capabilities. Our API is best for applications that require high-quality, uncensored text generation without the need for model customization.
If you need real-time translation or speech-to-text, our API may not be the best fit. It excels at text-in, text-out workflows. For complex multimodal tasks, consider using a platform that offers a broader range of models and capabilities. Our API is a specialized tool for text generation, not a general-purpose AI platform.
Reddit Discussions on Uncensored APIs
On Reddit, developers often discuss the need for uncensored AI APIs that offer more control over model behavior. Threads on r/BlackboxAI_ and r/CustomAI highlight the demand for unrestricted use cases. Users share their experiences with linking uncensored APIs to agentic workflows and managing GPU endpoints.
Some developers mention switching from OAuth to self-hosted solutions after free-tier shutdowns. They discuss the trade-offs between convenience and control. Others look for low-cost uncensored APIs that do not require KYC. These discussions emphasize the importance of reliability and cost-effectiveness in uncensored AI services.
Users also talk about the benefits of crypto payments and no KYC requirements. This allows for faster onboarding and greater privacy. The community values APIs that do not impose strict content filters, allowing for more creative and experimental uses of AI.
When evaluating these options, it is important to check the vendor's documentation for current prices, limits, and features. Each service has its own strengths and weaknesses. Our API offers a simple, prepaid model with a single uncensored model, which appeals to developers who want a straightforward integration without complex configurations.
Integration Best Practices
To ensure a smooth integration, use the /v1/chat/completions endpoint for standard chat interactions. This endpoint is compatible with the OpenAI API format, making it easy to switch between different providers. You can use the same codebase for both our API and other OpenAI-compatible services.
Enable streaming over SSE to improve user experience. This allows you to display responses as they are generated, reducing perceived latency. The usage information is included in the last chunk, so you can track token consumption accurately. This is particularly useful for long conversations or complex prompts.
Use JSON mode to ensure structured outputs. This is helpful for agents that need to parse responses programmatically. You can also set parameters like temperature, top_p, stop, and seed to control the model's behavior. These parameters allow you to fine-tune the output for specific use cases.
Always handle errors gracefully. Implement retry logic for transient errors like 429. For 401 and 402 errors, check your credentials and credit balance. Provide clear error messages to users so they understand what went wrong. This improves the overall reliability of your application.
Troubleshooting Common Issues
If you encounter a 401 error, first verify your API key. Ensure it is correct and active. If you recently generated a new key, make sure the old one is no longer being used. Check for any typos or extra spaces in the key string. If the issue persists, try regenerating the key.
For 402 errors, check your credit balance. If you have no credit, top up using USDT on TRC20 or USDC on Base. Remember that errors and refusals are free, so you can test your integration without spending credits. If you have credit but still get a 402 error, contact support to investigate.
If you hit a 429 rate limit, reduce the frequency of your requests. Implement exponential backoff to handle retries efficiently. Consider using multiple API keys to increase your throughput. Monitor your usage to ensure you stay within the limit.
For other issues, check the API documentation for the latest information. Our API supports streaming, function calling, and JSON mode. Use these features to optimize your integration. If you need help, refer to the official documentation or contact support for assistance.
Frequently asked questions
How do I fix a 401 error?
Verify your API key is correct and active. Ensure you are using the key shown after signup. If the key is valid, try regenerating it.
What happens if I run out of credit?
You will receive a 402 error. Top up using USDT on TRC20 or USDC on Base. Errors and refusals are free, so you can test without spending credits.
Can I use this API for image generation?
No, our API is for text generation only. It does not support image, audio, or video generation. Use other services for those capabilities.
How do I handle rate limits?
Limit your requests to 300 per minute per key. Use exponential backoff for retries. Consider using multiple API keys to increase throughput.