Integrate Uncensored Chat API: SDK Setup and Testing Checklist
Developers often seek a straightforward way to add uncensored text generation to their applications without wrestling with complex filters. This guide walks you through setting up the integration using standard SDKs and provides a practical checklist to verify that your connection works as expected.
Understanding the API Structure
Our service provides a hosted chat-completions API that serves a single uncensored open-weight text model. The model identifier you must send is uncensored. This means the model does not refuse lawful adult, fictional, security-research, or controversial topics. It is important to note that we never claim to be an official partner of any other company, nor do we serve another vendor's model. When discussing other providers, we recommend checking their own documentation for current details.
The base URL for our API is https://api.nsfwwan.cc/v1. You will interact with three main endpoints: POST /v1/chat/completions, POST /v1/responses, and GET /v1/models. There are no embeddings, image, audio, or video generation capabilities. We also do not offer OCR, fine-tuning, or model routing. Keeping this scope in mind helps you design your application architecture correctly.
The context window for this API is 100,000 tokens, which includes both the prompt and the completion. This allows for substantial inputs and outputs in a single request. However, if you need features like image generation or real-time audio processing, our text-only API is not the right choice for those specific tasks.
When integrating, remember that our API is an independent service. We do not enforce SLA percentages or hold certifications like SOC2 or HIPAA. Our focus is on providing a reliable text generation tool for developers who need uncensored outputs. This clarity helps set the right expectations for your project's reliability and feature set.
Authentication and Key Management
Signing up for our service is straightforward. You can continue with Google or use an email and password combination. Once you create an account, your API key is shown immediately. This key is essential for authenticating your requests. You must include this key in your API calls to avoid a 401 invalid key error.
The key is generated at signup, so ensure you save it securely. If you lose your key, you may need to generate a new one depending on your account settings. The key allows you to access the API endpoints and send requests to the uncensored model. It is the primary credential for your service usage.
Our API uses a prepaid credit system. You do not need a subscription or pay a monthly fee. Credit is charged based on real token usage. Errors and refusals are free, which can help manage costs during development. The prepaid credit never expires, giving you flexibility in when you use your funds.
When you top up your account, you can use crypto only. We accept USDT on TRC20 or USDC on Base. 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 simplifies the payment process for international developers.
Setting Up the SDK Integration
To integrate our API, you can use any standard OpenAI-compatible SDK. This compatibility makes it easy to switch between different providers or use existing codebases. You will need to configure the SDK to point to our base URL: https://api.nsfwwan.cc/v1. This ensures that your requests are routed correctly to our uncensored model.
Set the model parameter to uncensored in your SDK configuration. This tells the API which model to use for generating text. You can also configure parameters like temperature, top_p, stop sequences, and seed. These parameters allow you to control the randomness and behavior of the model output.
Our API supports streaming over Server-Sent Events (SSE). This feature allows you to receive responses in chunks, which can improve the user experience in real-time applications. The usage information is included in the last chunk of the stream. This is useful for tracking token consumption as the response is generated.
Function calling and JSON mode are also supported. You can define tools for the model to use, and it will return structured JSON output. This is particularly useful for building agents or applications that need to interact with other systems. The SDK handles the parsing of these responses, making integration smooth.
Pricing and Credit Management
Our pricing is transparent and based on token usage. The cost is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. You pay only for the tokens used, with no hidden fees. This model is predictable and easy to budget for, especially for projects with variable usage patterns.
When you top up your account, you can receive bonus credit. If you top up from $50, you get a bonus ranging from +5% to +15%. This bonus credit is added to your account immediately. It provides extra value for larger top-ups and helps you get more usage for your investment.
Every new account starts with $0.50 of trial credit. This allows you to test the API without any financial commitment. No credit card is needed to start. You can use this trial credit to explore the API features and verify that it meets your needs before making a purchase.
If you run out of credit, you will receive a 402 error. You can top up your account at any time using crypto. The credit never expires, so you can use it whenever you are ready. This flexibility is beneficial for developers who work on projects intermittently or have seasonal usage spikes.
Testing and Verification Checklist
Before deploying your application, it is important to test the integration thoroughly. Start by verifying connectivity using the GET /v1/models endpoint. This confirms that your API key is valid and that you can reach our servers. If you receive a 401 error, check your key and ensure it is correctly formatted.
Next, test the POST /v1/chat/completions endpoint with a simple prompt. Verify that the response is returned correctly and that the model generates text as expected. Check the streaming functionality to ensure that chunks are received in order. This step validates the core text generation capabilities of the API.
Test function calling and JSON mode to ensure that structured outputs are generated correctly. Define a tool and send a request that triggers the function call. Verify that the model returns the expected JSON structure. This is essential for building reliable agents and automated workflows.
Finally, check the rate limits. Our API allows 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. Monitor your usage to ensure you stay within these limits. This helps prevent disruptions in your application's performance during peak usage times.
When Our API Is Not the Right Choice
While our API is excellent for text generation, it may not be the right choice for all projects. If you need image, audio, or video generation, our text-only API will not meet your needs. We do not offer OCR, fine-tuning, or model routing. These features are not part of our current service offering.
If your application requires embeddings for semantic search, our API does not support this feature. You would need to use a different provider or combine our text API with an embedding service. Similarly, if you need real-time audio processing, our API is not designed for that use case.
Our API is also not suitable for projects that require specific SLA guarantees or certifications like SOC2 or HIPAA. We are an independent service and do not claim these standards. If your project has strict compliance requirements, you may need to consider other options.
Additionally, if you prefer card or PayPal payments, our crypto-only top-up system might not be convenient for you. We accept USDT on TRC20 or USDC on Base. If you need more payment flexibility, this could be a limiting factor. Always evaluate your project's specific needs before committing to a service.
Addressing Common Developer Questions
Developers often ask about the reliability and cost of uncensored LLM APIs. In discussions on Reddit, users frequently inquire about whether they should pay for a reliable uncensored model. The consensus is that a dedicated API offers more control and consistency compared to free or filtered alternatives. Our service provides a stable endpoint for uncensored text generation.
Another common question is how to build an uncensored LLM API without fighting filters. Our API handles this by serving a single uncensored model. This simplifies the integration process, as you do not need to manage multiple models or filters. You can focus on building your application logic.
Users also discuss benchmarking multi-LLM coding workflows. While our API is text-only, it can be integrated into workflows that involve other tools. You can use our API for text generation and combine it with CLI tools or other APIs for a comprehensive solution. This flexibility allows you to tailor the service to your specific needs.
Finally, developers often ask about the ease of integration. Our OpenAI-compatible endpoint makes it easy to use standard SDKs. This reduces the learning curve and allows you to use existing code. You can quickly set up the API and start generating text with minimal configuration. This makes it an attractive option for developers looking for a straightforward solution.
Frequently asked questions
How do I get an API key?
You can sign up using Google or email and password. Your API key is shown immediately after signup. Save it securely to authenticate your requests.
What payment methods are accepted?
We accept crypto only: USDT on TRC20 or USDC on Base. The top-up amount must be between $20 and $500. No cards or PayPal are accepted.
What is the context window size?
The context window is 100,000 tokens, including both the prompt and the completion. This allows for large inputs and outputs in a single request.
Is there a free trial?
Yes, every new account gets $0.50 of trial credit. No credit card is needed to start. You can use this to test the API before purchasing credit.