EN ▾
Get API key

Integrating Unrestricted AI: A Developer Setup Checklist

Connecting to an uncensored text model requires careful attention to authentication and token management. This checklist guides you through the essential steps to ensure your application communicates smoothly with our API endpoints.

Developer workspace with code and digital tokens representing API integration

Understanding the API Foundation

Before writing any code, it is essential to understand the core nature of our service. We provide a hosted, OpenAI-compatible chat-completions API that serves a single uncensored open-weight text model. The model identifier you must send is simply "uncensored". This means the model does not refuse lawful adult, fictional, security-research, or controversial topics, offering a broad range of creative and analytical possibilities.

The API operates on a text-in, text-out basis. You send text prompts, and you receive text completions. There are no embeddings, image generation, audio processing, video creation, OCR, fine-tuning, or model routing capabilities. Keeping this scope in mind helps you design your application architecture correctly, focusing on pure text interaction without expecting multimodal outputs.

Our base URL is https://api.unrestrictedaichatbot.top/v1. You will interact with three main endpoints: POST /v1/chat/completions for standard conversations, POST /v1/responses for alternative response formats, and GET /v1/models to verify available models. Understanding these endpoints is the first step in building a reliable integration.

Remember that our API is an independent service. It is not an official product of any other company, nor is it a reseller of another vendor's model. When you integrate, you are connecting directly to our infrastructure. This distinction is important for managing expectations regarding support, uptime, and feature updates, which are specific to our service.

Authentication and Key Management

Authentication is handled via API keys, which are generated upon signup. You can sign up using Google or an email and password combination. Once you create an account, your API key is shown immediately. It is important to store this key securely in your environment variables or secret manager, as it grants access to your prepaid credit.

The key is tied to your account and is used for all requests. If you send a request with an invalid or missing key, the API returns a 401 error. This indicates that your authentication credentials are incorrect or expired. Always ensure your key is valid before making requests to avoid unnecessary API calls.

Our API also implements rate limiting to ensure fair usage. You are allowed up to 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. This means you have hit the rate limit and need to wait before sending more requests. Implementing exponential backoff in your code can help manage these limits gracefully.

Errors and refusals are free, meaning you are not charged for failed requests or content refusals. However, you are charged for successful token usage. This pricing model allows you to test your integration extensively without incurring significant costs. Always handle errors appropriately in your application to provide a smooth user experience.

Configuring the SDK and Parameters

Integrating the API is straightforward if you are familiar with OpenAI-compatible SDKs. You can use any SDK that supports the OpenAI format, such as the Python SDK or JavaScript SDK. Set the base URL to our endpoint and provide your API key for authentication. This allows you to use familiar methods like chat.completions.create to interact with our model.

Our API supports several parameters to customize your responses. You can set the temperature for randomness, top_p for nucleus sampling, stop sequences to halt generation, and a seed for reproducibility. Additionally, you can adjust penalties to control token frequency and presence. These parameters allow you to fine-tune the model's behavior to fit your specific use case.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive tokens as they are generated, providing a more responsive user experience. The usage information, including token counts, is included in the last chunk of the stream. This is useful for tracking costs and monitoring API usage in real-time.

Function calling and JSON mode are also supported. You can define tools for the model to call, enabling it to perform specific actions or return structured data. JSON mode ensures the output is valid JSON, which is useful for integrating with other systems. These features expand the utility of our API beyond simple text generation.

Managing Credits and Pricing

Our pricing model is based on token usage. You are charged $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credits are prepaid and charged by real token usage. Errors and refusals are free, so you only pay for successful completions. This model is transparent and allows you to control your costs effectively.

To add funds, you can use cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. You can top up any whole amount between $20 and $500. If you top up $50 or more, you receive bonus credit, ranging from +5% to +15%. This bonus credit can help you get more value from your purchases.

There is no monthly subscription fee, and your paid credit never expires. This flexibility allows you to use the API at your own pace without worrying about recurring charges. You can top up as needed, making it suitable for both small projects and large-scale applications.

Every new account receives $0.50 of trial credit, with no credit card required. This allows you to test the API before committing to a purchase. It is a great way to evaluate the model's performance and compatibility with your application. Use this trial to explore the API's capabilities and ensure it meets your needs.

When Our API Is Not the Right Choice

While our API is powerful for text generation, it may not be the right choice for every project. If you need image, audio, or video generation, our API does not support these features. You would need to integrate a separate service for multimodal outputs. Similarly, if you require embeddings for semantic search, our API does not provide this capability.

If your application relies on fine-tuning models for specific tasks, our API does not support fine-tuning. You would need to use a service that offers model customization. Additionally, if you need model routing to switch between different models based on the task, our API serves only one model, so this feature is not available.

OCR and search capabilities are also not part of our offering. If your application requires extracting text from images or searching through documents, you would need to integrate additional tools. Our API is focused on pure text generation, so it is best suited for applications that primarily deal with text input and output.

Finally, if you need a service with guaranteed SLA percentages, certifications like SOC2 or HIPAA, or on-prem deployment options, our API may not meet those requirements. We are an independent service focused on providing uncensored text generation. For these specific needs, you may need to consider other vendors or enterprise solutions.

Addressing Common Developer Questions

Developers often ask about finding an uncensored chatbot for daily chatting or natural conversations. Our API provides a model that does not refuse lawful adult or controversial topics, making it suitable for users seeking unrestricted interactions. You can ask about various topics, including fictional scenarios or security research, without policy restrictions.

Another common question is how to handle NSFW writing or roleplay. Our model supports these use cases, allowing for creative and unrestricted content generation. You can use the API to generate stories, dialogues, or other text-based content that may be restricted by other models. This makes it a valuable tool for writers and developers working on adult-themed applications.

Users also inquire about offline functionality or free apps. While our API is a hosted service, you can integrate it into your application to provide a smooth experience. Some users prefer offline models for privacy, but our API offers a balance of accessibility and power. You can run your application locally while connecting to our API for generation.

Finally, developers ask about the best tools for generating NSFW content. Our API is designed to handle these requests efficiently. You can use it to generate text that is not restricted by standard guidelines. This makes it a popular choice for those looking for a reliable and flexible text generation service. Always check the vendor documentation for current prices and limits.

Best Practices for Integration

To ensure a smooth integration, always handle errors appropriately. If you receive a 402 error, it means you have no credit. You can top up your account using cryptocurrency to continue using the API. If you receive a 429 error, implement backoff strategies to avoid hitting rate limits. This ensures your application remains responsive and efficient.

Use the trial credit to test your integration thoroughly. This allows you to explore the API's features without risking your paid credit. Experiment with different parameters like temperature and top_p to find the best settings for your application. This helps you optimize the model's performance for your specific use case.

Monitor your token usage to manage costs effectively. Since you are charged per token, keeping track of your usage helps you budget accordingly. You can use the usage information provided in the streaming responses to track your consumption. This allows you to adjust your application's behavior to stay within your budget.

Finally, stay updated with any changes to the API. While we do not claim SLA percentages or certifications, we strive to provide a reliable service. Keep an eye on our documentation for any updates to the endpoints, parameters, or pricing. This ensures your integration remains compatible with our service.

Frequently asked questions

How do I sign up for the API?

You can sign up using Google or an email and password. Your API key is shown immediately after signup, allowing you to start using the service right away.

What payment methods are accepted?

We accept crypto only: USDT on TRC20 or USDC on Base. You can top up any whole amount from $20 to $500, with bonus credit available for larger amounts.

Does the API support image generation?

No, the API serves only a text model. It does not support image, audio, video, or other multimodal outputs. It is strictly for text-in, text-out communication.

What happens if I run out of credit?

You will receive a 402 error. You can top up your account using cryptocurrency to add more credit. Errors and refusals are free, so you only pay for successful token usage.