Integrating an Uncensored Text API: A Developer Checklist
Engineers often struggle to connect to an uncensored LLM API that supports only text input and output. This guide provides a tested checklist for SDK configuration, API key management, and handling responses from an independent hosted service.

Understanding the API Scope and Model ID
Before writing any code, it is essential to understand the specific scope of the service you are integrating. This API serves a single, uncensored open-weight text model. The model ID you must send in your requests is simply uncensored. This means the API does not support multiple model versions or routing to different base models. It is a straightforward text-in, text-out service designed for developers who need consistent, unfiltered output without the complexity of model selection.
The base URL for all your API calls is https://api.cosyvoice.top/v1. This is the root endpoint for all interactions. You will not find separate endpoints for different model types because there is only one model. Keeping this URL in your configuration is important for all subsequent requests. Any deviation from this base URL will result in connection errors or unexpected behavior.
It is important to note that this service does not offer embeddings, image generation, audio processing, or video generation. It is strictly for text completion and chat completions. If your application requires multimodal capabilities, this API will not suffice. However, for pure text generation, it provides a reliable and focused solution. The simplicity of having one model ID reduces the cognitive load during development and testing.
When you initialize your client, ensure you are using the correct base URL and model ID. This sets the foundation for all other integrations. The uncensored nature of the model means it does not refuse lawful adult, fictional, security-research, or controversial topics. This is a key feature for developers building applications that require unfiltered content generation. Always verify that your use case aligns with these capabilities before proceeding.
SDK Configuration and Endpoint Setup
Setting up your SDK correctly is the next critical step. The API supports standard OpenAI-compatible endpoints, which makes integration with existing tools easier. The primary endpoint for chat completions is POST /v1/chat/completions. This is where you will send your prompts and receive responses. Ensure your SDK is configured to use this endpoint for all chat-based interactions. The structure of the request body should follow the standard OpenAI format, which is widely documented and supported by most modern SDKs.
Additionally, the API supports the POST /v1/responses endpoint, which may offer alternative response formats or features. You should explore this endpoint if you need specific response structures. The GET /v1/models endpoint allows you to retrieve information about the available models, though in this case, it will primarily return the single uncensored model. Using these endpoints correctly ensures that your application communicates effectively with the API.
Streaming is supported over Server-Sent Events (SSE). This is useful for applications that require real-time output, such as chat interfaces. The usage information is included in the last chunk of the stream. When implementing streaming, ensure your client handles SSE connections properly. This allows for a smoother user experience by displaying text as it is generated. The streaming feature is particularly beneficial for long responses where users want to see progress.
Function calling and JSON mode are also supported. These features allow you to integrate the API with structured data requirements. You can define tools for function calling and request JSON-formatted responses. This flexibility makes the API suitable for a wide range of applications, from simple chatbots to complex automated workflows. Always test these features thoroughly to ensure they meet your application's specific needs.
API Key Management and Authentication
API keys are the primary method of authentication for this service. When you sign up, you can use Google or an email and password combination. The API key is shown immediately after signup, so make sure to copy and store it securely. This key is essential for all API calls. If you lose your key, you may need to generate a new one, so keep it safe from the start. The key is unique to your account and should not be shared publicly.
Authentication errors are indicated by a 401 status code, which means the key is invalid. If you encounter this error, double-check that you are using the correct key and that it has not been expired or revoked. It is good practice to store your API key in environment variables rather than hardcoding it in your source code. This prevents accidental exposure in version control systems. Many SDKs provide built-in support for environment variable integration.
Rate limits are enforced at 300 requests per minute per key. If you exceed this limit, you will receive a 429 status code. It is important to implement exponential backoff in your application to handle these errors gracefully. This prevents overwhelming the API and ensures that your application can recover automatically. Monitoring your request volume can help you stay within the limits and avoid interruptions in service.
The API also returns a 402 status code if you have no credit remaining. Since this is a prepaid service, you need to ensure you have sufficient funds. The top-up process is crypto-only, so you must use USDT on TRC20 or USDC on Base. Keeping track of your credit balance is important to avoid unexpected service interruptions. You can check your balance through the dashboard or API responses.
Pricing, Credits, and Payment Methods
Understanding the pricing model is important for budgeting your API usage. The cost is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pay-as-you-go model means you only pay for what you use. Prepaid credit is charged based on real token usage, and errors and refusals are free. This can help reduce costs for applications that frequently encounter errors or refusals. It is important to monitor your token usage to manage your budget effectively.
The top-up process is restricted to cryptocurrency. You can top up with 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. This crypto-only approach means you do not need to provide credit card or bank details. It also means that transactions are irreversible, so ensure you are sending the correct amount and network.
Bonus credit is available for top-ups of $50 or more, ranging from +5% to +15%. This incentivizes larger top-ups and provides additional value for your money. The bonus credit is added to your account immediately after the transaction is confirmed. This can be a significant benefit for developers who plan to use the API extensively. Always check the current bonus percentage before topping up.
There is no monthly fee or subscription required. Your paid credit never expires, so you can use it at your own pace. This flexibility is advantageous for projects with variable usage patterns. You do not need to worry about losing unused credits at the end of a billing cycle. This makes the service suitable for both short-term experiments and long-term deployments. Keep an eye on your credit balance to ensure you have enough for your upcoming tasks.
Handling Responses and Errors
Handling responses and errors correctly is important for a reliable application. The API returns standard HTTP status codes to indicate the outcome of your requests. A 200 status code indicates success, while 401, 402, and 429 indicate specific errors. As mentioned earlier, 401 means an invalid key, 402 means no credit, and 429 means a rate limit has been hit. Your application should handle these errors gracefully to provide a good user experience.
For 429 errors, implement exponential backoff to retry the request after a short delay. This prevents flooding the API with requests and helps you stay within the rate limit. For 401 errors, check your API key and ensure it is valid. For 402 errors, top up your credit to resume service. It is also important to handle unexpected errors, such as 500 status codes, by logging them and retrying if appropriate.
The API supports various parameters such as temperature, top_p, stop, seed, and penalties. These parameters allow you to control the behavior of the model. For example, temperature controls the randomness of the output, while top_p controls the diversity of the tokens considered. Understanding these parameters can help you fine-tune the model's output to better suit your needs. Always test different parameter combinations to find the best settings for your application.
Streaming responses can be handled by processing each chunk as it arrives. This is useful for real-time applications where you want to display text as it is generated. Ensure your client handles SSE connections properly and updates the UI accordingly. The usage information is included in the last chunk, so you can track token consumption accurately. This helps in managing your credit and understanding the cost of your requests.
Reddit Community Insights on Uncensored Models
Developers often discuss the best uncensored LLM models for role-playing and ERP (Erotic Role-Play) on Reddit. Threads on r/LocalLLM show users testing various models to find the best fit for their needs. Many users are looking for models that can handle complex narratives and character interactions without strict content filters. The discussion often revolves around finding models that can generate creative and engaging content for DND campaigns or other fictional scenarios.
Another common topic is finding an uncensored LLM that is not specifically marketed as spicy or character-based. Users on r/AIToolTesting seek an unfiltered LLM that tells the truth without political correctness. They want a model that can provide straightforward answers without trying to be overly cautious. This is particularly important for developers building applications that require neutral or objective content generation.
Some users also discuss the best uncensored LLMs for coding and technical tasks. They look for models that can generate code snippets, explain technical concepts, and debug issues effectively. The ability to handle technical content without unnecessary filters is a key requirement for these use cases. Developers often share their experiences with different models to help others make informed decisions.
Overall, the Reddit community values flexibility and reliability in uncensored LLMs. They appreciate models that can adapt to various contexts, from creative writing to technical documentation. The discussion highlights the importance of finding a model that meets specific needs without compromising on performance. These insights can help developers choose the right tools for their projects and understand the current market of uncensored LLMs.
When This API Is Not the Right Choice
While this API is excellent for text generation, it may not be the right choice for all projects. If your application requires image generation, audio processing, or video creation, this service will not suffice. The API is strictly for text input and output. It does not support embeddings, OCR, or fine-tuning. If you need these capabilities, you may need to integrate additional services or choose a different provider.
Additionally, if you require on-premises deployment for data privacy or security reasons, this hosted service may not meet your needs. The API is a cloud-based solution, which means your data is processed on remote servers. If you need to keep your data within your own infrastructure, you should look for a provider that offers on-premises options. This is particularly important for enterprises with strict data governance policies.
Another consideration is the payment method. Since top-ups are crypto-only, you may need to set up a cryptocurrency wallet to use this service. If your organization prefers traditional payment methods like credit cards or bank transfers, this could be a barrier. Ensure that your team is comfortable with crypto transactions before committing to this service.
Finally, if you need a service with guaranteed SLAs or certifications like SOC2 or HIPAA, this independent service may not offer those assurances. The API does not claim specific SLA percentages or certifications. If these are critical for your compliance requirements, you should verify the service's suitability for your specific needs. Always review the product facts carefully to ensure they align with your project's requirements.
Frequently asked questions
How do I top up my credit?
You can top up your credit using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20 and the maximum is $500. Top-ups with $50 or more may include bonus credit.
What is the model ID for the uncensored model?
The model ID you must send in your requests is uncensored . This is the only model available on this service.
Does the API support streaming?
Yes, the API supports streaming over Server-Sent Events (SSE). Usage information is included in the last chunk of the stream.
What happens if I run out of credit?
If you run out of credit, you will receive a 402 status code. You need to top up your credit to resume service. Errors and refusals are free, so you only pay for actual token usage.