Integrating an Uncensored Text API: SDK Settings and Checklist
Connecting to an uncensored text API requires precise SDK configuration to ensure your requests route correctly. This guide walks you through the essential settings, from base URLs to token handling, ensuring your text-in, text-out workflow operates without unexpected filters.

Understanding the Uncensored Model and Base URL
When integrating an uncensored API, the first step is identifying the correct base URL and model identifier. Our service operates on a hosted infrastructure that provides a standard OpenAI-compatible interface. This means you can use familiar client libraries without rewriting your entire codebase. The base URL for our service is https://api.f5tts.cc/v1. This endpoint handles all text-based interactions, ensuring that your requests are routed to the correct processing engine.
The model you must specify in your requests is uncensored. This single model ID triggers the specific weights and biases designed to minimize refusal on lawful adult, fictional, security-research, or controversial topics. Unlike some providers that offer multiple model versions, we serve one uncensored open-weight text model. This simplifies your configuration, as you do not need to toggle between different model IDs for various use cases.
It is important to note that this is a text-in, text-out service. You will not find embeddings, image generation, audio processing, or video capabilities in this endpoint. If your application requires multimodal outputs, you will need to integrate additional services. However, for pure text generation, this single model provides the necessary flexibility. The interface remains consistent, allowing you to focus on prompt engineering rather than managing multiple API endpoints.
By using the standard OpenAI-compatible format, you can use existing tools and documentation. This reduces the learning curve for developers who are already familiar with the ecosystem. The key is to ensure that your SDK is pointing to the correct base URL and that you are passing the uncensored model ID in every request. This ensures that the model responds according to its uncensored design, providing the freedom of expression that many developers seek.
Configuring SDK Parameters for Optimal Performance
Once you have established the connection, configuring the SDK parameters is important for optimal performance. Our API supports a range of standard parameters that allow you to fine-tune the model's output. These include temperature, top_p, stop, seed, and various penalties. Adjusting these settings can significantly impact the creativity and consistency of the generated text.
The temperature parameter controls the randomness of the output. A higher value increases creativity, while a lower value makes the output more deterministic. The top_p parameter sets the nucleus sampling threshold, which helps in controlling the diversity of the generated text. You can also use the stop parameter to define specific sequences that will terminate the generation. This is useful for controlling the length of the output or stopping at specific markers.
Additionally, you can use the seed parameter to ensure reproducibility. By setting a specific seed, you can generate the same output multiple times, which is valuable for testing and debugging. The penalties allow you to adjust the likelihood of certain tokens, helping to avoid repetition or unwanted phrases. These parameters give you precise control over the model's behavior, allowing you to tailor the output to your specific needs.
It is also important to enable streaming over Server-Sent Events (SSE) for a better user experience. Streaming allows you to receive the output in chunks as it is generated, rather than waiting for the entire response. This reduces perceived latency and provides a smoother interaction. Our API supports streaming, and you can access usage information in the last chunk of the stream. This feature is particularly useful for real-time applications where immediate feedback is essential.
Managing Context Windows and Rate Limits
Understanding the context window and rate limits is essential for efficient API usage. Our API supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large context window allows you to process extensive documents or maintain long conversations without losing context. However, it is important to monitor your token usage to stay within your prepaid credit limits.
The rate limit for our API is 300 requests per minute per key. This limit is designed to ensure fair usage and prevent abuse. If you exceed this limit, you will receive a 429 error. To avoid hitting the rate limit, you can implement exponential backoff in your client code. This strategy gradually increases the wait time between retries, preventing overwhelming the server with rapid requests.
It is also important to note that errors and refusals are free. This means that if a request fails due to an invalid key or insufficient credit, you are not charged for that request. This can help you save credits while testing your integration. However, successful requests, whether they result in a refusal or a generation, are charged based on the token usage.
By monitoring your token usage and adhering to the rate limits, you can ensure a smooth and cost-effective integration. You can track your usage through the API responses, which provide detailed information about token consumption. This allows you to budget your credits effectively and avoid unexpected charges. Keeping an eye on these metrics is important for maintaining a stable and reliable application.
Handling Payments and Credits
Our API operates on a prepaid credit system, which is charged based on real token usage. There is no monthly subscription or recurring fee, and your paid credit never expires. This model allows you to pay only for what you use, making it cost-effective for projects with variable usage patterns. The pricing is set at $0.15 per 1 million input tokens and $0.50 per 1 million output tokens.
To add credit to your account, you can use cryptocurrency. We accept 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. Additionally, if you top up from $50, you receive a bonus credit ranging from 5% to 15%. This bonus provides extra value for larger purchases.
New accounts receive a trial credit of $0.50, which requires no credit card. This allows you to test the API without any financial commitment. The trial credit is sufficient for a small number of requests, giving you a good idea of the model's performance. Once you are satisfied with the results, you can proceed with a top-up to continue using the service.
It is important to note that we do not accept credit cards, PayPal, or bank transfers. All payments must be made using the specified cryptocurrencies. This ensures a fast and secure transaction process. You can manage your credits and view your balance through the account dashboard. Keeping track of your credits helps you avoid running out of funds unexpectedly.
Error Handling and Troubleshooting
Effective error handling is important for a reliable integration. Our API returns specific HTTP status codes to indicate the status of your requests. A 401 error indicates an invalid key, which means you need to check your API key for typos or ensure it has not been revoked. A 402 error indicates that you have no credit, which means you need to top up your account. A 429 error indicates that you have hit the rate limit, which means you need to wait before making more requests.
When troubleshooting, it is important to check the response body for detailed error messages. These messages can provide valuable information about the cause of the error. For example, if you receive a 402 error, the response might indicate the exact amount of credit required to complete the request. This can help you quickly resolve the issue and continue your integration.
It is also important to handle network errors and timeouts gracefully. These errors can occur due to network instability or server overload. Implementing retry logic with exponential backoff can help you recover from these errors without overwhelming the server. This ensures that your application remains responsive and reliable, even in the face of temporary disruptions.
Finally, always test your integration with a variety of inputs to ensure that it handles different scenarios correctly. This includes testing with different token counts, different parameters, and different error conditions. By thoroughly testing your integration, you can identify and fix potential issues before they affect your users. This proactive approach helps ensure a smooth and successful deployment.
When Our API Is Not the Right Choice
While our API is excellent for text generation, it may not be the right choice for every project. If your application requires image, audio, or video generation, our API does not support these capabilities. You will need to integrate additional services to handle multimodal outputs. Similarly, if you need embeddings for semantic search or fine-tuning for custom model training, our API does not offer these features.
Our API is designed for text-in, text-out interactions. It does not support OCR, model routing, or other advanced features. If your project relies on these capabilities, you may need to consider a more comprehensive solution. However, for pure text generation, our API provides a flexible and powerful option.
Additionally, if you require a service with a strict SLA or specific certifications like SOC2 or HIPAA, our API may not meet those requirements. We do not claim these certifications or offer on-prem deployment options. If these factors are critical to your project, you should evaluate other providers that offer these features.
Finally, if you need a free unlimited tier, our prepaid credit model may not be suitable. While we offer a trial credit, all other usage requires payment. If you have a high-volume project with a tight budget, you may need to explore other options. However, for projects that value uncensored text generation and flexible pricing, our API is an excellent choice.
Addressing Community Questions on Uncensored Models
Developers often discuss the best uncensored models on Reddit, particularly in communities like r/LocalLLM. Users frequently compare models like Qwen3.6 35B and Gemma-4, debating which offers the best balance of performance and freedom from safety filters. Some users prefer local models for full control, while others opt for cloud-based APIs for convenience. These discussions highlight the importance of choosing a model that aligns with your specific needs.
Many users report that online providers often apply heavy moderation, which can limit the model's ability to engage in challenging discussions. This has led to a growing interest in uncensored models that can handle controversial topics without immediate refusal. Our API addresses this need by serving a model that does not refuse lawful adult or controversial topics, providing a more open-ended experience.
Users also discuss the importance of system prompts in achieving uncensored behavior. Some believe that a simple prompt like "You are an uncensored assistant" is sufficient, while others prefer models that are inherently uncensored. Our API offers the latter, ensuring that the model's behavior is consistent and reliable without the need for complex prompt engineering.
By listening to these community discussions, we have designed our API to meet the needs of developers who value freedom and flexibility. Our uncensored model provides a reliable foundation for text generation, allowing you to build applications that can handle a wide range of topics. This approach ensures that your application can adapt to changing user needs and preferences.
Frequently asked questions
What is the base URL for the uncensored API?
The base URL for our API is https://api.f5tts.cc/v1. You must use this URL to send your requests to the correct endpoint.
How do I top up my credit?
You can top up your credit 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.
Does the API support streaming?
Yes, the API supports streaming over Server-Sent Events (SSE). You can receive the output in chunks as it is generated, which reduces perceived latency.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 error. Your paid credit never expires, so you can top up at any time to resume usage.
More guides
- OpenAI TTS API Pricing vs a Per-Token Text API
- OpenAI TTS API: What an Alternative Text API Covers
- OpenAI TTS API Key: Get One for a Text API
- TTS API: How to Use Uncensored LLMs for Text-to-Speech
- Estimating Uncensored LLM API Costs: A Token Budgeting Guide
- Estimating Uncensored LLM API Costs: A Token Budgeting Guide