EN ▾
Get API key

Troubleshooting and Safety in Unrestricted API Calls

Developers using open-weight models for sensitive content must balance freedom with reliability. This guide covers error handling, cost management, and safety limits for our text-only API.

Server rack with data streams and error codes representing API troubleshooting

Understanding Error Codes and Retry Logic

When integrating our API, you will encounter specific HTTP status codes that indicate different states of your request. The most common error is 401, which signifies an invalid or missing API key. This usually happens when the key is expired, revoked, or incorrectly formatted. You should verify your key in the dashboard immediately after receiving this error.

Another frequent error is 402, which indicates that your account has no remaining prepaid credit. Since our service uses a prepaid model with no monthly subscriptions, your requests will fail until you top up. This error is free, meaning you are not charged for the failed attempt, allowing you to test your integration without cost.

The 429 error represents a rate limit violation. Our API allows 300 requests per minute per key. If you exceed this limit, you must wait before sending more requests. Implementing exponential backoff in your code is essential to handle this gracefully without overwhelming the server.

Errors and refusals are free, so you do not need to worry about being charged for failed attempts or content refusals. This makes it safe to test your prompts extensively before deploying them to production. Always check the response body for detailed error messages to diagnose issues quickly.

Managing Token Costs and Prepaid Credit

Our API charges $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. These rates apply to real token usage, including both the prompt and the completion. Understanding how tokens are counted is important for budgeting your API usage effectively.

You can top up your account using crypto only. The accepted currencies are USDT on the TRC20 network or USDC on the Base network. You can add any whole amount between $20 and $500. This flexibility allows you to start with a small amount and scale up as needed.

If you top up $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus is added to your balance immediately. Paid credit never expires, so you can use it whenever you need it without worrying about monthly fees.

Since there is no subscription, you only pay for what you use. This model is ideal for developers who want predictable costs and no hidden fees. Always monitor your token usage to ensure you have enough credit for your projects.

Safety Limits and Content Refusals

Our model is uncensored for lawful adult, fictional, security-research, and controversial topics. However, there is a hard content limit regarding sexual content involving minors. Requests containing such content will be refused by the model.

This limit is enforced to ensure the API remains accessible and safe for a wide range of users. If you send a request that triggers this limit, the model will return a refusal. You can handle this in your code by checking the response for refusal indicators.

Other types of sensitive content, such as adult themes or controversial political topics, are generally allowed. The model does not refuse these topics unless they violate the hard limit. This makes our API suitable for developers who need freedom in their content generation.

It is important to note that the model may still refuse some requests for other reasons, such as excessive length or format errors. Always review the response to understand why a request was refused and adjust your prompts accordingly.

When This API Is Not the Right Choice

Our API is designed for text-only interactions. If you need image generation, audio processing, video creation, or OCR, this service is not the right choice. We do not offer embeddings, fine-tuning, or model routing capabilities.

If your project requires real-time audio or video generation, you should look for a vendor that specializes in those media types. Our API focuses on high-quality text generation with a large context window of 100,000 tokens.

Additionally, if you need a service with a Service Level Agreement (SLA) or certifications like SOC2 or HIPAA, our API may not meet your needs. We are an independent service and do not claim these certifications.

For projects requiring on-prem deployment, our hosted API might not be suitable. If you need to run the model locally, consider using the open-weight model directly. Our API is best for developers who want a reliable, hosted text solution without managing infrastructure.

Addressing Common Reddit Questions

Users on Reddit often ask about finding unrestricted alternatives to popular models. Many threads discuss the need for uncensored text generation for creative writing or roleplaying. Our API addresses this by offering an uncensored model that does not refuse lawful adult topics.

Some users seek specific modes or settings to enhance the uncensored experience. Our API supports parameters like temperature, top_p, and stop sequences, allowing you to customize the output. You can also use function calling and JSON mode for structured data.

Another common question is about the ease of use. Our API is compatible with the OpenAI format, making it easy to integrate with existing tools. You can use the same SDKs and libraries you are familiar with, reducing the learning curve.

Users also appreciate the prepaid model with no monthly fees. This allows for flexible usage without the commitment of a subscription. You can start with a small amount of credit and scale up as needed, making it accessible for indie developers.

Integrating with OpenAI-Compatible SDKs

Our API is compatible with the OpenAI format, which means you can use existing SDKs and libraries. This compatibility simplifies integration, as you do not need to write custom code to interact with our service. You can use the same endpoints and parameters you are familiar with.

The base URL for our API is https://api.unrestrictedgrok.top/v1. You can send POST requests to /v1/chat/completions for text generation. You can also use /v1/responses for alternative response formats and GET /v1/models to list available models.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive responses in real-time, which is useful for chat applications. You can also use function calling to enable tools and JSON mode for structured output.

Parameters like temperature, top_p, stop, and seed are supported. You can also set penalties to control the output. These features allow you to fine-tune the model's behavior to suit your specific needs.

Testing and Debugging Your Integration

Testing your integration is important to ensure it works correctly. Start by sending a simple request to the /v1/chat/completions endpoint. Verify that you receive a valid response with the expected text.

Check for errors such as 401, 402, and 429. If you encounter these errors, refer to the error codes section to understand how to handle them. Use the trial credit of $0.50 to test your integration without spending any real money.

Monitor your token usage to ensure you are within your budget. You can check your balance in the dashboard and top up as needed. Use the prepaid credit to pay for your usage.

Finally, test the streaming functionality to ensure it works as expected. Use the SSE format to receive responses in real-time. This will help you identify any issues with your integration before deploying it to production.

Frequently asked questions

How do I handle a 402 error?

A 402 error means you have no remaining credit. You need to top up your account using USDT on TRC20 or USDC on Base. The error is free, so you are not charged for the failed attempt.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long conversations and large documents.

Can I use cards or PayPal to pay?

No, we only accept crypto. You can top up with USDT on TRC20 or USDC on Base. The amount must be between $20 and $500.

Is there a free tier?

We do not have a free tier, but every new account gets $0.50 of trial credit. You can use this to test the API without spending money.