EN ▾

Unrestricted AI

Uncensored text API for your pipeline

Integrating Unrestricted AI: SDK Setup and Checklist

Connecting an uncensored text API to your existing agentic workflows requires careful attention to endpoint configuration and token management. This guide walks you through the SDK setup process, ensuring you can send text and receive text without unnecessary friction. We focus on the technical steps needed to integrate our service into your custom frontends or automated pipelines.

Neon blue server rack connected to a laptop in a dark digital grid, representing uncensored AI integration

Understanding the API Structure

Before diving into code, it is essential to understand the structure of our hosted API. We provide an OpenAI-compatible chat-completions interface, which means you can use familiar SDKs and libraries. The base URL for our service is https://api.unrestrictedaigenerator.top/v1. This endpoint handles all text-in, text-out operations. You do not need to worry about complex routing or multiple endpoints for different model types.

The API serves a single uncensored open-weight text model. To use it, you simply send the model id uncensored in your requests. This simplicity reduces the cognitive load when integrating the service into your applications. You are not dealing with a zoo of models or complex routing logic.

Our API supports standard chat completion endpoints. You will primarily use POST /v1/chat/completions for generating text responses. Additionally, we offer POST /v1/responses for specific response formats and GET /v1/models to verify available models. These endpoints are designed to be straightforward and easy to implement in any modern programming environment.

It is important to note that we do not offer embeddings, image generation, audio, video, OCR, or fine-tuning. If your workflow requires these features, you will need to integrate other services. Our focus is strictly on high-quality, uncensored text generation. This specialization allows us to optimize our infrastructure for text-only tasks, ensuring reliability and speed for text-based agentic workflows.

SDK Configuration and Authentication

Setting up your SDK is the first step in integration. You can sign up using Google or an email and password combination. Upon signup, you receive an API key immediately, which is important for quick testing and deployment. This key is the primary method of authentication for your requests. You must include this key in the Authorization header of every request you send to our API.

When configuring your SDK, ensure you set the base URL to https://api.unrestrictedaigenerator.top/v1. This URL directs your requests to our specific infrastructure. Most OpenAI-compatible SDKs allow you to set this base URL globally, which simplifies the integration process. You do not need to modify every individual request if you configure the client correctly.

Our API uses a prepaid credit system charged by real token usage. Errors and refusals are free, which can help manage costs during development. 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. This flexibility allows you to scale your usage as needed without committing to a monthly subscription.

Every new account starts with $0.50 of trial credit, requiring no card information. This allows you to test the integration thoroughly before spending any money. The trial credit never expires, giving you ample time to verify your setup. You can use this credit to make your first few requests and ensure everything is working as expected.

Request Parameters and Features

Our API supports a range of parameters that allow you to fine-tune your text generation. You can control the temperature, top_p, stop sequences, and seed for reproducibility. Additionally, you can set penalties to influence the model's output. These parameters give you precise control over the generation process, which is essential for agentic workflows that require consistent behavior.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive usage information in the last chunk of the response. Streaming is particularly useful for real-time applications where you want to display text as it is generated. It also helps in managing latency and providing a better user experience for your end users.

Function calling, also known as tools, is supported. This feature allows your application to interact with external systems or perform specific actions based on the model's output. You can define tools in your request, and the model will return structured data that your application can execute. This capability is important for building complex agentic workflows that go beyond simple text generation.

JSON mode is available for applications that require structured output. You can enforce JSON formatting in your responses, making it easier to parse and process the data in your application. This feature is particularly useful for integrations with other systems that expect specific data formats. It reduces the need for additional parsing logic in your code.

Pricing and Token Management

Understanding the pricing model is important for managing your budget. Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This pay-as-you-go model ensures you only pay for what you use. There are no monthly fees or subscriptions, which makes it easy to scale up or down based on your needs.

To estimate costs, you can use the formula: (tokens divided by 1,000,000) times the per-million price. For example, if you send 100,000 input tokens, the cost would be calculated based on the input rate. This transparency allows you to predict your expenses accurately. You can monitor your usage through the API responses and adjust your workflow accordingly.

Crypto payments are the only option for top-ups. You can use USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. This restriction means you cannot use credit cards, PayPal, or bank transfers. It is important to have a crypto wallet ready before you start using the service extensively.

Errors and refusals are free, which can help reduce costs during the testing phase. If your request results in an error, you are not charged for the tokens used. This policy is beneficial for developers who are experimenting with different prompts and parameters. It allows you to iterate quickly without worrying about accumulating costs.

Rate Limits and Error Handling

Our API enforces a rate limit of 300 requests per minute per key. This limit ensures fair usage and prevents any single user from overwhelming the system. If you exceed this limit, you will receive a 429 error. It is important to implement retry logic in your application to handle these errors gracefully. You can use exponential backoff to avoid spamming the API after a rate limit error.

Authentication errors return a 401 status code if the key is invalid. This can happen if you use an expired key or if the key is revoked. Always verify your API key before making requests. You can check your key in the dashboard after signing up. If you encounter a 401 error, double-check the key and ensure it is included in the authorization header.

A 402 error indicates that you have no credit left. This happens when your prepaid balance is depleted. You will need to top up your credit to continue using the service. Since errors and refusals are free, you can still make requests to check your balance or test the API without incurring costs.

It is also important to handle content refusals. Our API has a hard content limit regarding sexual content involving minors. Requests that violate this limit will be refused. However, the model does not refuse lawful adult, fictional, security-research, or controversial topics. This uncensored nature allows for more flexible use cases, but you should still implement checks in your application to handle refused responses appropriately.

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 service will not meet your needs. We focus exclusively on text-in, text-out operations. If your workflow requires multimodal outputs, you will need to integrate other services alongside our API.

Similarly, if you need embeddings for vector search or fine-tuning for custom model behavior, our API does not support these features. You would need to use a different provider for these specific capabilities. Our service is optimized for uncensored text generation, so it may not have the advanced features required for more complex machine learning pipelines.

If you require on-prem deployment for data privacy or compliance reasons, our hosted service may not be suitable. We do not offer on-prem options, and all data is processed through our infrastructure. If data residency is a critical factor for your organization, you should evaluate whether our hosted service meets your requirements.

Finally, if you need an SLA with specific uptime guarantees or certifications like SOC2 or HIPAA, our service may not be the best fit. We do not claim these certifications or provide SLA percentages. For applications that require strict compliance or high availability guarantees, you should consider providers that offer these specific features. Our service is designed for flexibility and uncensored text generation, rather than enterprise-grade compliance.

Testing and Verification Checklist

To ensure a smooth integration, follow this tested checklist. First, verify that your SDK is configured with the correct base URL and API key. Make a simple request to the GET /v1/models endpoint to confirm connectivity. This step helps identify any configuration errors early in the process.

Next, test the streaming functionality by sending a request with the streaming parameter enabled. Ensure that you receive the usage information in the last chunk. This verification is important for applications that rely on real-time text generation. It also helps confirm that your SDK handles SSE correctly.

Test the function calling feature by defining a tool and sending a request. Verify that the model returns structured data that your application can parse and execute. This step ensures that your agentic workflow can interact with external systems effectively. It is a key feature for building complex applications.

Finally, check the error handling by simulating a rate limit or insufficient credit scenario. Ensure that your application handles these errors gracefully and provides appropriate feedback to the user. This step helps improve the robustness of your integration. By following this checklist, you can ensure that your integration is reliable and efficient.

Frequently asked questions

How do I sign up and get an API key?

You can sign up using Google or an email and password. Your API key is shown immediately after signup, allowing you to start testing right away. No card is needed for the trial credit.

What payment methods are accepted?

We accept crypto only: USDT on TRC20 or USDC on Base. Credit cards, PayPal, and bank transfers are not supported. The minimum top-up is $20.

Does the API support image generation?

No, our API is text-only. It serves an uncensored open-weight text model. If you need images, you will need to integrate a separate image generation service.

What happens if I run out of credit?

You will receive a 402 error indicating no credit. Errors and refusals are free, so you can still make requests to check your balance. You can top up with crypto to continue using the service.