Integrating Uncensoredpromptgenerator API: SDK & Prompt Settings
Developers often look for a straightforward way to integrate uncensored text generation into their scripts. This guide covers connecting to the OpenAI-compatible endpoint, configuring parameters, and managing your credit budget effectively.

Setting Up the Base Connection
To begin integrating our service, you need to point your SDK to the correct base URL. The endpoint is https://api.uncensoredpromptgenerator.com/v1. This URL is compatible with most OpenAI-compatible clients, meaning you can likely use existing libraries without major code changes. You will need an API key, which is provided immediately after signup via Google or email. Keep this key secure, as it authenticates your requests.
The API supports POST requests to /v1/chat/completions for standard text generation. You can also use /v1/responses for newer response formats if your client supports it. For checking available models, a GET request to /v1/models is available. The model ID you must send in your request body is "uncensored". This ensures you are interacting with the specific uncensored open-weight model hosted here.
Authentication is handled via the Authorization header. You do not need to pass complex OAuth flows. Simply include your API key in the header. If the key is invalid, you will receive a 401 error. If you have no credit left, you will see a 402 error. These are the primary status codes you will encounter during integration.
Rate limiting is set at 300 requests per minute per key. This limit is generous for most development workflows but important to respect to avoid temporary blocks. If you exceed this limit, you will receive a 429 error. You can implement simple exponential backoff in your code to handle these moments gracefully without overwhelming the server.
Configuring Prompt Parameters
Once connected, you can fine-tune the output using several parameters. The API supports temperature, which controls the randomness of the output. A lower temperature produces more deterministic results, while a higher temperature encourages creativity. You can also adjust top_p, which filters tokens based on cumulative probability. This helps in controlling the diversity of the generated text.
For applications requiring structured data, JSON mode is available. This forces the model to output valid JSON, which is useful for parsing responses in your application logic. You can also set stop sequences to halt generation at specific markers. This is helpful for controlling the length of the output or stopping at specific delimiters.
The seed parameter allows you to set a random seed for reproducible results. This is useful for debugging and testing. If you set the same seed, you should get the same output for the same input. This consistency is valuable when you are iterating on prompt designs and need to compare different configurations.
Penalties can be applied to discourage certain tokens. This helps in reducing repetition and improving the quality of the generated text. By adjusting these parameters, you can tailor the model's behavior to fit your specific use case. Experiment with different combinations to find the optimal settings for your application.
Handling Streaming and SSE
For real-time applications, streaming over Server-Sent Events (SSE) is supported. This allows you to receive tokens as they are generated, providing a smoother user experience. The usage information, including token counts, is included in the last chunk of the stream. This means you can track your credit usage in real-time as the response is being generated.
Implementing streaming requires handling the SSE connection properly. You need to read the stream until it is closed or until you receive the final chunk. This approach is more efficient than waiting for the entire response, especially for long outputs. It also allows you to display progress to users as the text is being generated.
Make sure your client library supports SSE. Most modern HTTP clients do. If you are building a custom client, you will need to parse the SSE format correctly. The format is standard and well-documented, so you should find plenty of resources online for implementation. Test your streaming implementation thoroughly to ensure it handles interruptions and errors gracefully.
Streaming is particularly useful for chat interfaces where users expect immediate feedback. It reduces the perceived latency and makes the interaction feel more natural. By implementing streaming, you can provide a better user experience for your application. Remember to handle the final chunk carefully to ensure you capture all the usage data for billing purposes.
Managing Credits and Payments
The pricing model is prepaid and based on token usage. You pay $0.15 per million input tokens and $0.50 per million output tokens. Errors and refusals are free, which means you only pay for successful generations. This is a cost-effective model for developers who want to control their spending. You can top up your credit using crypto, specifically USDT on TRC20 or USDC on Base.
The minimum top-up amount is $20, and the maximum is $500. If you top up $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus can help you get more value from your purchases. There are no monthly fees or subscriptions, and your paid credit never expires. This flexibility allows you to use the service at your own pace.
To add credit, visit the top-up page and select your preferred crypto. Enter the amount you wish to add, between $20 and $500. The bonus is applied automatically if you meet the threshold. You can monitor your balance in your dashboard. If you run out of credit, you will receive a 402 error until you top up again.
New accounts start with $0.50 of trial credit, no card required. This allows you to test the API before committing to a purchase. The trial credit is sufficient for a few test requests. It is a good way to verify your integration and ensure everything is working correctly before you add real funds to your account.
Function Calling and Tools
The API supports function calling, also known as tools. This allows you to define functions that the model can call to perform actions. You provide the function definitions in your request, and the model will output a call to the function if appropriate. This is useful for building agents that can interact with external systems or perform specific tasks.
To use function calling, you need to define the functions in your request body. Include the function name, description, and parameters. The model will then decide whether to call the function and what arguments to pass. You can then execute the function and provide the result back to the model for further processing. This creates a loop where the model can gather information and make decisions.
Function calling is particularly powerful for complex applications that require the model to interact with multiple data sources or services. It allows the model to act as a coordinator, delegating tasks to specific functions. This approach can improve the accuracy and reliability of the output, as the model can rely on external tools for specific tasks.
When implementing function calling, make sure your functions are well-defined and documented. The model relies on the description to determine when to call a function. Clear descriptions help the model understand the purpose of each function. Test your function calling implementation thoroughly to ensure it handles all edge cases and provides the expected results.
When This API Is Not the Right Choice
While our API is excellent for text generation, it is not the right choice for every project. If you need image, audio, or video generation, this API does not support those capabilities. It is a text-only service. If you require embeddings for semantic search, this API does not provide them. Similarly, if you need OCR for reading text from images, this is not the feature you need.
Fine-tuning is another capability not offered by this service. If you want to train the model on your specific dataset, you will need a different provider. Model routing, where you can switch between different models based on the task, is also not available. The API serves only one uncensored open-weight text model.
If you need high availability guarantees, such as SLA percentages or certifications like SOC2 or HIPAA, this service may not meet your needs. It is an independent service without those specific certifications. If you need on-prem deployment, this hosted API is not the solution. You would need a provider that offers local or private cloud options.
Benchmark scores and named customers are not part of our value proposition. If you rely on third-party benchmarks to choose a provider, this API might not fit your criteria. It is designed for developers who want a simple, uncensored text API without the complexity of multiple models or features. For these specific needs, consider other providers that offer those capabilities.
Addressing Community Questions
Developers in communities like r/GeminiAI and r/AIToolsAndTips often ask about the best uncensored AI generators. The consensus is that many tools have tradeoffs between model quality and creative freedom. Some users prefer local models for privacy, while others prefer cloud APIs for ease of use. Our API offers a cloud-based solution with no card required for signup.
In r/WritingWithAI, users discuss the best uncensored chatbots for storytelling and roleplay. Many note that some bots get repetitive or rush to NSFW content. Our API allows you to control the temperature and top_p, helping you manage the pace and tone of the generation. You can tailor the output to fit your specific narrative needs.
Threads on r/AIjailbreak often mention tools for image and video generation. Since our API is text-only, it is not the direct answer for those needs. However, you can use our API to generate the text prompts for those image generators. This creates a workflow where you use our text API to craft the perfect prompt, then send it to an image generator.
Users in r/AItips101 also discuss the reliability of various generators. Some mention data leaks or account issues with other platforms. Our service offers a prepaid model with no subscription, reducing the risk of unexpected charges. The trial credit allows you to test the service without commitment. This approach appeals to developers who want to experiment with uncensored text generation safely.
Frequently asked questions
How do I get an API key?
Sign up via Google or email on the site. The key is shown immediately after signup. You can use this key to authenticate your requests to the API endpoints.
What happens if I run out of credit?
You will receive a 402 error on your requests. You can top up your credit using USDT on TRC20 or USDC on Base. Errors and refusals do not consume credit.
Can I use this API for image generation?
No, this API is text-only. It does not support image, audio, or video generation. You can use it to generate text prompts for other tools that do support images.
Is there a free tier?
New accounts get $0.50 of trial credit, no card needed. There is no free unlimited tier. You pay per token usage after the trial credit is exhausted.