Troubleshooting API Errors and Safety in Uncensored GPT
Developers integrating our API often encounter authentication failures, rate limits, or unexpected refusals. This guide explains how to interpret HTTP status codes, manage prepaid credit, and verify account status using our documentation. We also cover safety considerations for text-only outputs and when this service fits your workflow.

Understanding HTTP Error Codes
When integrating our API, you will likely encounter specific HTTP status codes that indicate the state of your request. The most common errors are 401, 402, and 429. A 401 Unauthorized error means your API key is invalid or missing. This often happens if you copy the key incorrectly or if the key has been revoked. Ensure you are sending the key in the Authorization header as specified in our documentation.
A 402 Payment Required error indicates that your account has no remaining prepaid credit. Since we do not offer a free tier or monthly subscription, you must top up your account to continue making requests. This error is free to retry, so you can check your balance without consuming tokens. If you see this error, verify your crypto top-up status or check if your trial credit has been exhausted.
A 429 Too Many Requests error signals that you have exceeded the rate limit of 300 requests per minute per key. This limit applies to all endpoints, including chat completions and model listing. If you receive this error, implement exponential backoff in your code to retry the request after a short delay. This prevents overwhelming the server and ensures your integration remains stable during high traffic.
Managing Prepaid Credit and Payments
Our API uses a prepaid credit model, meaning you pay only for what you use. There are no monthly fees or subscriptions, and paid credit never expires. This model is ideal for developers who want predictable costs and no commitment. You can top up your account using cryptocurrency, specifically USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range.
When you top up, you may receive bonus credit if you add $50 or more. The bonus ranges from +5% to +15%, depending on the amount. This bonus is added to your account immediately and can be used for any request. However, note that the trial credit of $0.50 given to new accounts is separate and does not qualify for bonuses. Always check your balance before making large batches of requests to avoid unexpected 402 errors.
Errors and refusals are free, so you do not lose credit if a request fails or is blocked by safety filters. This is useful for testing prompts that might trigger refusals. You can also use the trial credit to test the API without making a crypto payment. This allows you to verify that your integration works correctly before committing to a larger top-up. Remember that only crypto payments are accepted, so no credit cards or PayPal are available.
Safety Filters and Content Limits
Our API is described as uncensored, meaning the model does not refuse lawful adult, fictional, security-research, or controversial topics. However, there is a hard content limit: no sexual content involving minors. If a request includes such content, the model will refuse to generate a response. This refusal is free, so you do not lose tokens. It is important to understand that the model is not completely without filters; it still adheres to this specific safety guideline.
When designing your application, you should account for these refusals in your error handling. If a request is refused, the API will return a response indicating the refusal. You can then decide whether to modify the prompt or skip the request. This is particularly useful for applications that generate content for diverse audiences, where some users may prefer stricter filtering.
To verify the current safety filters, check our documentation for the latest guidelines. The model id to send is 'uncensored', and it serves one open-weight text model. The model does not support image, audio, or video generation, so all outputs are text. This focus on text allows for faster response times and lower costs compared to multimodal models. Always test your prompts with the 'uncensored' model to ensure they align with your content strategy.
Token Limits and Context Window
The context window for our API is 100,000 tokens, which includes both the prompt and the completion. This large window allows for long conversations and extensive document processing. However, it is important to monitor your token usage to avoid unexpected costs. The price is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. You can estimate costs by dividing the token count by 1,000,000 and multiplying by the per-million price.
When sending requests, ensure that your prompts do not exceed the context window. If the combined length of the prompt and completion exceeds 100,000 tokens, the request may fail or be truncated. You can use the /v1/models endpoint to verify the model details and context window size. This endpoint returns information about the model, including its ID and supported parameters.
To optimize token usage, consider truncating long prompts or using streaming responses. Streaming over SSE allows you to receive responses in chunks, which can reduce latency and improve user experience. The usage information is included in the last chunk, so you can track token consumption in real-time. This is particularly useful for applications that generate long responses, such as document summarization or code generation.
When Our API Is Not the Right Choice
While our API is powerful for text generation, it may not be the right choice for all use cases. If you need image, audio, or video generation, our API does not support these capabilities. You would need to use a different service for multimodal outputs. Similarly, if you require embeddings, OCR, or fine-tuning, our API does not offer these features. You can use our API for text generation and then process the output with other tools.
Additionally, if you need on-prem deployment or specific certifications like SOC2 or HIPAA, our hosted service may not meet your requirements. We are an independent service, and we do not offer on-prem options. If you need named customers or benchmark scores, these are not provided by our API. Always check the vendor's documentation for current prices, limits, and features to ensure the service fits your needs.
For developers who need model routing or multiple model support, our API serves only one uncensored open-weight text model. If you need to switch between different models, you would need to manage this logic in your application. This can be done by sending different model IDs or using a wrapper service. However, for simple text generation tasks, our API provides a straightforward and cost-effective solution.
Addressing Reddit Community Questions
Users on Reddit often ask how to set up uncensored GPT on local hardware, such as a converted Chromebox running Linux Mint. They also inquire about alternative tools like Dig AI, which some users report as being offline. In these threads, users share experiences with local LLMs and seek recommendations for models that can run efficiently on limited hardware. The consensus is that local models require significant VRAM and may not offer the same ease of use as hosted APIs.
Another common question is how to achieve ultra-realistic outputs, such as high-end fashion editorials. Users report success with detailed prompts that specify subject, setting, and style. These prompts work well with our model, which is designed to handle complex and nuanced instructions. However, since our API is text-only, users may need to use external tools to generate images based on the text output.
Users also discuss the ease of use compared to other tools. Some prefer the simplicity of our API over local setups, which require technical expertise to configure. Others appreciate the flexibility of our prepaid model, which allows them to control costs without committing to a subscription. By addressing these questions, we help developers make informed decisions about whether our API fits their workflow.
Integrating with Your Application
Integrating our API into your application is straightforward, as it follows the OpenAI-compatible format. You can use any SDK that supports the OpenAI API, such as Python, JavaScript, or Go. The base URL for our API is https://api.uncensoredgpt.cc/v1. You can send requests to the /v1/chat/completions endpoint for text generation or the /v1/responses endpoint for structured outputs. The /v1/models endpoint allows you to list available models and verify their details.
When integrating, ensure that you handle errors gracefully. Use the HTTP status codes to determine the cause of the error and retry as needed. For example, if you receive a 429 error, implement exponential backoff to avoid overwhelming the server. If you receive a 402 error, prompt the user to top up their account. This ensures a smooth user experience and minimizes downtime.
Finally, consider using streaming responses for real-time updates. Streaming over SSE allows you to receive responses in chunks, which can improve latency and user experience. The usage information is included in the last chunk, so you can track token consumption in real-time. This is particularly useful for applications that generate long responses, such as chatbots or document summarization tools. By following these best practices, you can build a reliable and efficient application using our API.
Frequently asked questions
How do I fix a 401 error?
A 401 error means your API key is invalid or missing. Check that you are sending the correct key in the Authorization header. If the key is correct, verify that your account is active and has sufficient credit.
What payment methods are accepted?
We accept only crypto payments: USDT on the TRC20 network or USDC on the Base network. Credit cards, PayPal, and bank transfers are not supported. Top-ups range from $20 to $500.
Does the API support image generation?
No, our API is text-only. It serves one uncensored open-weight text model. If you need image generation, you will need to use an external tool or service that supports multimodal outputs.
How much does the API cost?
The price is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There are no monthly fees, and paid credit never expires. Errors and refusals are free.
More guides
- GPT OSS API vs a Hosted Uncensored Model
- OpenAI Compatible API: List Models with /v1/models
- UncensoredGPT API Base URL and Key Setup
- ChatGPT Bot for Discord on an OpenAI-Compatible API
- UncensoredGPT API: What It Is and How to Use It
- How to Host an Uncensored LLM via OpenAI-Compatible API
- Integrating Uncensored GPT API with Python SDK