EN ▾
Get API key

Integrating the Unrestricted Grok API: A Step-by-Step Guide

Developers often seek a reliable way to connect to an uncensored text model for their applications. This guide provides a tested checklist for integration, covering SDK settings and authentication to ensure smooth text-in, text-out functionality with our API.

Developer workspace with crypto symbols and code representing the unrestricted grok api integration

Understanding the API Foundation

Before diving into code, it is essential to understand the core architecture of our service. We offer 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 design choice simplifies integration because you do not need to manage multiple model versions or routing logic. You send text in, and you receive text out, making it straightforward for developers who want to focus on application logic rather than model selection.

The base URL for all your requests is https://api.unrestrictedgrok.top/v1. This is the only base URL you need to configure in your SDK or HTTP client. Unlike some providers that offer a complex ecosystem of different endpoints for embeddings, images, or audio, our API is focused strictly on text generation. This means your integration will be lean and efficient, avoiding unnecessary overhead from unused features.

It is important to note that we do not support embeddings, image generation, audio, video, OCR, fine-tuning, or model routing. If your project requires these capabilities, you will need to use a different provider for those specific tasks. Our API handles the text generation step, and you can combine it with other tools if needed. This clarity helps you set the right expectations for what our service can and cannot do.

The context window for our model is 100,000 tokens, which includes both the prompt and the completion. This large context allows you to feed substantial amounts of information into the model, making it suitable for long-form content generation or complex reasoning tasks. However, it also means you need to manage your token usage carefully to stay within your budget, as costs are based on actual token consumption.

Authentication and Access

Getting started with our API is quick and requires no credit card. When you sign up, you can continue with Google or use an email and password. Immediately after signing up, you receive your API key, which is the primary method for authenticating your requests. This key is shown to you right away, so you can start testing your integration without delay. There is no need to wait for approval or verification processes.

When you make requests to our API, you must include this API key in the authorization header. If the key is invalid or missing, you will receive a 401 error. This ensures that only authorized users can access the service. It is important to keep your key secure, as anyone with the key can use your credit. We do not claim any specific security certifications like SOC2 or HIPAA, so you should treat your key with standard care.

If you do not have enough credit, the API will return a 402 error. This happens when your prepaid balance is exhausted. Since we charge by real token usage, errors and refusals are free, meaning you are not charged for failed requests. This is a significant advantage for developers who are testing their prompts, as you only pay for successful completions. It allows for extensive experimentation without financial risk.

You can top up your credit using cryptocurrency. We accept USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range. There are no options for credit cards, PayPal, or bank transfers. This crypto-only approach allows for fast and borderless payments, which is ideal for developers from various regions.

Configuring SDK Settings

Integrating our API with your preferred SDK is straightforward due to its OpenAI compatibility. You can use the standard OpenAI SDK for Python, JavaScript, or other languages. Simply point the SDK to our base URL and use your API key for authentication. This means you can use the same code structure you might have used for other providers, making the transition easy for experienced developers.

Our API supports several parameters that allow you to fine-tune the output. You can set the temperature, top_p, stop sequences, and seed. These parameters give you control over the creativity and determinism of the model. For example, setting a lower temperature can make the output more consistent, while a higher temperature can introduce more variety. The seed parameter allows you to reproduce specific outputs, which is useful for debugging.

Function calling and JSON mode are also supported, enabling you to integrate our API into more complex applications. Function calling allows the model to return structured data that your application can parse and act upon. JSON mode ensures that the output is valid JSON, which is essential for APIs that expect structured responses. These features make our API versatile for building agents or tools that need to interact with other systems.

Streaming over Server-Sent Events (SSE) is supported, allowing you to receive responses in real-time. This is particularly useful for chat applications where you want to display text as it is generated. The usage information is included in the last chunk of the stream, so you can track token consumption accurately. This feature enhances the user experience by providing immediate feedback.

Pricing and Credit Management

Our pricing model is simple and transparent. We charge $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This means you pay for the actual tokens used in your requests. There is no monthly subscription fee, and your prepaid credit never expires. This flexibility allows you to scale your usage up or down without being locked into a fixed cost.

When you first sign up, you receive $0.50 of trial credit. This allows you to test the API without making an immediate purchase. The trial credit is sufficient for a small number of requests, giving you a good sense of the model's capabilities. Once the trial credit is used, you will need to top up your account with crypto to continue using the service.

To top up, you must send USDT on TRC20 or USDC on Base. The minimum 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 is a great way to get more value for your money. The credit is added to your account immediately after the transaction is confirmed.

It is important to monitor your token usage to avoid unexpected charges. You can check your balance and usage through your dashboard. Since errors and refusals are free, you do not need to worry about being charged for failed requests. This makes it easy to experiment with different prompts without worrying about cost. However, successful completions will consume your credit, so keep an eye on your balance.

Rate Limits and Error Handling

Our API enforces a rate limit of 300 requests per minute per key. This limit is designed to ensure fair usage and prevent abuse. If you exceed this limit, you will receive a 429 error. This means you need to implement retry logic in your application to handle rate limits gracefully. You can also reduce the frequency of your requests if you are hitting the limit frequently.

When handling errors, it is important to check the status code. A 401 error indicates an invalid or missing API key. A 402 error means you have no credit left. A 429 error indicates that you have hit the rate limit. By checking these codes, you can provide better feedback to your users and handle errors appropriately. This helps in maintaining a smooth user experience even when issues arise.

It is also worth noting that our API does not have an SLA percentage or uptime guarantee. While we strive to keep the service available, there may be occasional downtime. You should design your application to be resilient to such events. For example, you can cache responses or provide a fallback message if the API is temporarily unavailable. This ensures that your application remains functional even during outages.

Another important aspect of error handling is managing token limits. If your prompt exceeds the context window, the API may reject the request. You should implement logic to truncate or summarize your input if it gets too long. This prevents errors and ensures that your requests are processed successfully. Proper error handling is key to a reliable integration.

When Our API Is Not the Right Choice

While our API is excellent for uncensored text generation, it may not be the right choice for every project. If your application requires image generation, audio processing, or video creation, our API will not suffice. We focus solely on text, so you would need to integrate with other providers for those modalities. This is a key consideration for developers building multi-modal applications.

Additionally, if you need fine-tuning capabilities to customize the model for your specific domain, our API does not support this. You would need to use a provider that offers fine-tuning services. Similarly, if you need model routing to switch between different models based on the task, our API serves only one model. This limits your ability to optimize for different types of tasks.

Another scenario where our API might not be ideal is if you require strict compliance with specific regulations like HIPAA or SOC2. We do not claim these certifications, so if your industry has strict data privacy requirements, you may need to look elsewhere. Our API is designed for general-purpose uncensored text generation, not for highly regulated environments.

Finally, if you need a free unlimited tier or a very low-cost entry point without crypto, our API might not fit your budget. We require crypto top-ups, and while we offer a small trial, ongoing use requires payment. If you are looking for a completely free option with no strings attached, you might need to explore other alternatives. However, for those who need uncensored text and are comfortable with crypto, our API is a strong choice.

Addressing Community Questions

Developers often ask about prompting techniques for uncensored models. Threads on r/AIJailbreak discuss how to get the most out of the model. Users frequently share prompts that enable more unrestricted behavior. The general advice is to use specific prompt structures that encourage the model to bypass standard filters. While our model is already uncensored, well-crafted prompts can enhance the quality and relevance of the output.

Another common question relates to the difference between our API and other tools like Wurt.app. Some users compare our text API to image generation tools. It is important to note that our API is strictly for text. If you are looking for image generation, you should check the documentation for those specific vendors. Our API complements these tools by providing the text component of your application.

Users also ask about the best way to integrate our API into their workflows. The consensus is to use the standard OpenAI SDK for ease of use. This allows for a smooth transition from other providers. Developers appreciate the simplicity of the integration and the flexibility of the parameters. This makes it easy to experiment with different settings to find the best results for their specific use case.

Finally, there are questions about the reliability of the service. While we do not claim specific uptime percentages, the community generally finds the service reliable for development purposes. The key is to implement proper error handling and rate limit management. By doing so, you can ensure a smooth experience even if there are occasional hiccups. This proactive approach helps in maintaining a reliable application.

Frequently asked questions

How do I get my API key?

You receive your API key immediately after signing up with Google or email. It is shown on the screen right after registration, so you can start using it without delay.

What payment methods are accepted?

We accept only crypto: USDT on TRC20 or USDC on Base. There are no options for credit cards, PayPal, or bank transfers. The minimum top-up is $20.

Does the API support streaming?

Yes, our API supports streaming over Server-Sent Events (SSE). This allows you to receive responses in real-time, which is ideal for chat applications.

What happens if I hit the rate limit?

If you exceed 300 requests per minute, you will receive a 429 error. You should implement retry logic in your application to handle this gracefully.