EN ▾
generatoraiunrestricted.com

Uncensored API. Pay per token.

Create key

Integrating Uncensored Text API: A Developer Checklist

Connecting an unrestricted text generator to your codebase requires careful attention to token limits and payment structures. This guide walks you through the integration process using our OpenAI-compatible endpoint, ensuring your application handles text-in, text-out workflows efficiently.

Developer workspace with holographic AI interface and code snippets

Understanding the API Endpoint Structure

Our API is designed to be compatible with existing OpenAI SDKs, making integration straightforward for developers already familiar with that ecosystem. You will interact with the base URL https://api.generatoraiunrestricted.com/v1 to access the chat completions endpoint. The primary method for generating text is a POST request to /v1/chat/completions. This endpoint accepts standard JSON payloads containing your messages, system prompts, and generation parameters.

You must specify the model ID as "uncensored" in your requests. This tells the server which underlying model to use for processing your text. The API supports streaming responses over Server-Sent Events (SSE), allowing you to receive text chunks as they are generated. This is particularly useful for real-time applications where users expect immediate feedback on their inputs.

Unlike many other services, this API does not support embeddings, image generation, audio processing, or video creation. It is strictly a text-in, text-out service. If your application requires multimodal capabilities, you will need to integrate separate services for those tasks. Keeping the scope limited to text allows us to maintain high performance and low latency for text generation tasks.

When setting up your client, ensure you are using the correct base URL and model ID. Incorrect configuration can lead to errors that are difficult to debug. The API also supports a /v1/models endpoint, which you can use to verify available models and their configurations. This endpoint is useful for debugging and ensuring your client is connected to the correct service version.

Authentication and Key Management

Authentication is handled via API keys, which you receive immediately after signing up. You can create an account using Google or by providing an email and password. Once registered, your API key is displayed on the screen, so make sure to copy it securely. This key is required for all API requests and should be stored in your environment variables to prevent accidental exposure in your codebase.

Each API key has a rate limit of 300 requests per minute. If you exceed this limit, the API will return a 429 status code. It is important to implement exponential backoff strategies in your application to handle these rate limits gracefully. This prevents your application from overwhelming the server and ensures a smoother user experience during peak usage times.

Errors related to authentication are indicated by a 401 status code, which means your key is invalid or missing. If you encounter this error, verify that your key is correct and that it has not been revoked. You can also check your account dashboard to see the status of your key and any associated usage limits. Keeping your keys secure is essential to prevent unauthorized usage of your credit.

When integrating with multiple services, consider using different API keys for different environments. This allows you to monitor usage and costs more effectively. You can generate new keys from your account dashboard if you suspect a key has been compromised. Regularly rotating your keys is a good practice for maintaining security in your application.

Token Budgeting and Cost Estimation

Understanding token usage is important for managing your API costs. The pricing structure is $0.15 per million input tokens and $0.50 per million output tokens. Input tokens include your prompt and any system messages, while output tokens are the generated text. You can estimate your costs by calculating the total number of tokens in your prompts and expected responses.

To calculate the cost for a specific request, divide the number of input tokens by one million and multiply by 0.15. Do the same for output tokens using 0.50. This formula helps you budget for your application's usage. For example, if you send 10,000 input tokens and receive 5,000 output tokens, you can estimate the cost using the per-million rates.

The API has a context window of 100,000 tokens, which includes both the prompt and the completion. This large context window allows you to send long documents or complex instructions in a single request. However, you must ensure that your total token count does not exceed this limit. If you exceed the context window, the API may truncate your input or return an error.

Errors and refusals are free, which means you do not pay for tokens that are not generated. This is beneficial for testing and debugging your application. You can send multiple requests with different parameters to find the optimal configuration without incurring additional costs. Monitoring your token usage regularly helps you avoid unexpected charges and keeps your budget under control.

Payment Methods and Credit Top-Up

Our service accepts cryptocurrency payments only, specifically USDT on the TRC20 network or USDC on the Base network. You can top up your account with any whole amount between $20 and $500. When you top up with $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus credit is added to your account immediately after the payment is confirmed.

There are no monthly subscriptions or recurring fees. You pay only for the tokens you use, and your prepaid credit never expires. This pay-as-you-go model is ideal for developers who want to avoid long-term commitments. You can top up your account whenever you need more credit, and the balance will be deducted automatically as you make API requests.

Credit card payments, PayPal, and bank transfers are not accepted. If you prefer to use traditional payment methods, you may need to convert your fiat currency to cryptocurrency before making a top-up. Ensure that you send the correct amount of cryptocurrency to the specified address to avoid losing funds. Always double-check the network and address before sending payment.

Errors in payment processing are handled separately from API usage. If you encounter issues with your top-up, contact support for assistance. Your credit is charged based on real token usage, so you only pay for what you use. This transparency helps you track your spending and manage your budget effectively.

When This 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 your application requires image generation, audio processing, or video creation, this API will not meet your needs. It is strictly a text-in, text-out service, so you will need to integrate other services for multimodal tasks.

Similarly, if you need embeddings for semantic search or fine-tuning for custom model training, this API does not support these features. You will need to find a separate provider for these capabilities. The API also does not offer model routing, so you cannot switch between different models dynamically based on your needs.

If you require an SLA guarantee or certifications like SOC2 or HIPAA, this service may not be suitable for enterprise clients with strict compliance requirements. We do not claim these certifications, so you should verify if our service meets your specific regulatory needs. Additionally, if you need on-premises deployment, our hosted service may not fit your infrastructure.

Finally, if you are looking for a free unlimited tier, this API may not be the best option. While we offer a trial credit, all usage beyond that requires prepaid credit. Developers who need a completely free solution for high-volume usage might find other services more suitable. Evaluate your specific requirements before committing to this API.

Addressing Common Developer Concerns

Developers often discuss issues related to AI story generators and chatbots in online communities. A common concern is the AI ignoring user information or generating repetitive content. This can happen when the model gets stuck in a loop or fails to process the prompt correctly. Using our API with proper parameters like temperature and top_p can help mitigate these issues by controlling the randomness of the output.

Another frequent topic is the comparison between different AI generators. Users often ask which tool is best for specific tasks, such as roleplay or story writing. While subjective, our API provides a reliable and unrestricted text generation service that can be integrated into various applications. You can test our API with the trial credit to see how it performs compared to other tools.

Some developers worry about the AI refusing to generate content for controversial or adult topics. Our model is uncensored, meaning it does not refuse lawful adult, fictional, or security-research topics. This makes it suitable for applications that require unrestricted content generation. However, there is a hard limit on sexual content involving minors, which the model will refuse.

Users also discuss the importance of a good user interface and the ability to customize the AI's behavior. By using our API, you have full control over the prompt and parameters, allowing you to tailor the output to your specific needs. You can implement custom UIs and logic to enhance the user experience, making the AI feel more responsive and intelligent.

Testing and Troubleshooting Your Integration

Start your integration by using the $0.50 trial credit, which requires no credit card. This allows you to test the API thoroughly before making a payment. Send a few test requests to verify that your client is configured correctly and that you are receiving responses as expected. Check the status codes to ensure there are no authentication or rate limit errors.

Use the streaming feature to test real-time text generation. This helps you verify that your application can handle SSE responses correctly. Implement error handling for common status codes like 401, 402, and 429. These errors indicate invalid keys, insufficient credit, or rate limits, respectively. Having reliable error handling ensures your application can recover from these issues gracefully.

Experiment with different parameters such as temperature, top_p, and stop sequences to fine-tune the output. These parameters allow you to control the creativity and structure of the generated text. For example, a lower temperature will produce more deterministic outputs, while a higher temperature will introduce more randomness. Test these settings to find the optimal configuration for your application.

If you encounter issues with the API, check the documentation for the /v1/models endpoint to verify the available models. You can also review your account dashboard to see your usage and credit balance. If problems persist, contact support for assistance. Regularly monitoring your integration helps you identify and resolve issues before they impact your users.

Frequently asked questions

How do I get an API key?

You can get an API key by signing up with Google or an email and password. The key is displayed immediately after registration.

What payment methods are accepted?

We accept USDT on TRC20 or USDC on Base. Credit cards and PayPal are not accepted.

Is there a free trial?

Yes, every new account receives $0.50 of trial credit with no credit card required.

What happens if I exceed the rate limit?

If you exceed 300 requests per minute, you will receive a 429 status code. Implement exponential backoff to handle this.