Integrating Gemma Uncensored API: A Step-by-Step Guide
Developers often ask how to connect an OpenAI-compatible client to an uncensored endpoint. This guide provides a tested checklist for SDK settings, including base URL configuration and authentication headers, ensuring smooth text-in, text-out integration.

Setting Up Your Base URL and Authentication
Integrating our API begins with configuring your client to point to the correct endpoint. The base URL for our service is https://api.gemmauncensored.cc/v1. This URL serves as the foundation for all requests, ensuring that your application connects directly to our uncensored text model. When setting up your SDK, you must replace any default OpenAI base URLs with this specific address to avoid routing errors or unexpected behavior.
Authentication is handled via API keys, which are generated immediately upon signup. You can sign up using Google or an email and password combination. Once registered, your key is displayed instantly, allowing you to proceed with configuration without delay. It is important to store this key securely, as it grants access to your prepaid credit and usage limits.
When initializing your client, set the Authorization header to Bearer followed by your API key. This standard header ensures that our server recognizes your identity and applies the correct rate limits and billing rules. Without this header, your requests will be rejected with a 401 invalid key error, halting your integration until the credential is corrected.
Remember that our API is strictly for text input and output. There are no embeddings, image generation, or audio processing capabilities. By focusing solely on text completion, we provide a simplified experience for developers who need raw, uncensored text responses without the overhead of multimodal processing. This simplicity allows for faster integration and more predictable latency in your applications.
Configuring Model Parameters and Streaming
Our API supports a wide range of parameters that allow you to fine-tune the behavior of the uncensored model. You can adjust the temperature to control creativity, set top_p for nucleus sampling, and define stop sequences to halt generation at specific points. Additionally, you can use the seed parameter for reproducible results, which is useful for debugging and testing different prompts.
Streaming responses are supported over Server-Sent Events (SSE). This feature allows you to receive partial responses in real-time, improving the user experience for chat interfaces. The usage information, including token counts, is included in the last chunk of the stream. This ensures that you can accurately track your token consumption even when receiving data in fragments.
Function calling and JSON mode are also available, enabling your application to interact with external tools or parse structured data directly from the model. These features are essential for building complex agents that need to execute code or retrieve information from databases. By using these capabilities, you can create more dynamic and interactive applications.
When configuring your requests, ensure that you are using the correct model ID, which is uncensored. This ID tells the server to use our specific open-weight model, which does not refuse lawful adult, fictional, security-research, or controversial topics. This flexibility makes our API suitable for a variety of use cases, from creative writing to technical analysis.
Handling Errors and Rate Limits
Understanding error codes is important for a reliable integration. Our API returns specific HTTP status codes to indicate the status of your request. A 401 error means your API key is invalid, while a 402 error indicates that you have no remaining credit. A 429 error signals that you have exceeded the rate limit of 300 requests per minute per key.
Rate limits are enforced to ensure fair usage across all clients. If you exceed the 300 requests per minute limit, your subsequent requests will be rejected until the window resets. It is important to implement exponential backoff in your client to handle these errors gracefully and avoid overwhelming the server during peak usage times.
Errors and refusals are free, meaning you are not charged for tokens in failed requests or when the model refuses to answer. This policy protects your budget and allows you to test your prompts without worrying about unexpected charges. However, be aware that the hard content limit on sexual content involving minors is strictly enforced, and such requests will be refused.
When troubleshooting, always check your API key first, then verify your credit balance. If you encounter a 429 error, consider reducing the frequency of your requests or implementing a queue system to manage outbound traffic. This approach ensures that your application remains responsive and efficient, even under heavy load.
Pricing and Credit Management
Our pricing model is straightforward and based on actual token usage. You are charged $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There are no monthly subscriptions or hidden fees, and your prepaid credit never expires. This pay-as-you-go structure allows you to scale your usage up or down without committing to a fixed budget.
Top-ups can be made using crypto only, specifically USDT on TRC20 or USDC on Base. You can add any whole amount from $20 to $500 to your account. For larger top-ups starting at $50, you may receive bonus credit ranging from 5% to 15%. This incentive encourages larger investments and provides additional value for high-volume users.
New accounts start with $0.50 of trial credit, allowing you to test the API without needing to add a card or make an initial payment. This trial credit is a great way to evaluate the quality of the uncensored model and ensure it meets your specific needs before committing to a larger purchase.
Since we do not accept cards, PayPal, or bank transfers, ensure that your payment method is compatible with the supported cryptocurrencies. This crypto-only approach simplifies the billing process and reduces friction for international users who may face challenges with traditional payment methods.
When Our API Is Not the Right Choice
While our API excels at providing uncensored text generation, it may not be the right choice for every developer. If you need embeddings, image generation, audio processing, or OCR capabilities, our service does not support these features. In such cases, you might need to combine our API with other specialized tools to achieve your desired outcome.
Additionally, if you require strict SLA guarantees, SOC2 or HIPAA certifications, or on-prem deployment options, our hosted service may not meet your compliance or infrastructure needs. We do not claim these certifications, and our service is designed for developers who prioritize flexibility and uncensored content over enterprise-grade guarantees.
If you are looking for a model that offers fine-tuning or model routing, our API currently supports only the uncensored open-weight model. There is no option to switch between different models or fine-tune the model to your specific dataset. This limitation makes our API ideal for users who are satisfied with the current model's performance and do not need custom variations.
Finally, if you need a free unlimited tier or benchmark scores to compare against other models, our API may not fit your criteria. We offer prepaid credit with a small trial amount, but there is no free tier. Our focus is on providing a reliable, uncensored text API without the complexity of benchmarking or free tiers, making it best suited for developers who value simplicity and content freedom.
Addressing Common Developer Questions
Developers frequently ask about the best uncensored models for roleplay and ERP, as well as how to find models that are not overly filtered for political correctness. In discussions on r/LocalLLM, users share their experiences with various models, often highlighting the importance of finding a balance between creativity and coherence. They also discuss the use of tools like Heretic to enhance the roleplay experience.
On r/AIToolTesting, users seek uncensored LLMs that are not advertised as spicy or character-based. They want unfiltered truth without the political filtering often found in hosted models. Some users mention that many public models are still filtered, and they look for truly unfiltered options that can handle controversial topics without hesitation.
Another common question is about the best uncensored LLM for coding and technical tasks. Developers want a model that can generate code without refusing due to safety filters. Our API's uncensored nature makes it suitable for these tasks, as it does not refuse lawful adult or controversial topics, allowing for more flexible code generation.
Users also ask about the best uncensored LLMs available at any given time. While opinions vary, the consensus is that uncensored models are valuable for their ability to handle a wide range of topics without unnecessary restrictions. By using our API, developers can access a reliable uncensored model that supports a variety of use cases, from creative writing to technical analysis.
Best Practices for Integration
To ensure a smooth integration, always test your API key and credit balance before deploying your application. Use the trial credit to experiment with different parameters and prompts, and monitor your token usage to avoid unexpected charges. Implementing proper error handling and rate limit management will help you maintain a stable connection to our API.
When using streaming responses, ensure that your client can handle partial data correctly. Display the content as it arrives, and update the UI in real-time to provide a smooth user experience. This approach is particularly useful for chat interfaces where latency can impact user satisfaction.
Keep your API key secure and avoid exposing it in client-side code. Use environment variables or secure storage solutions to manage your credentials. Regularly rotate your keys if you suspect a compromise, and monitor your account for any unusual activity.
Finally, stay updated with our documentation for any changes to the API or pricing. Since we do not claim SLAs or certifications, our service is designed for flexibility and speed. By following these best practices, you can maximize the benefits of our uncensored API and build reliable applications that meet your specific needs.
Frequently asked questions
How do I authenticate with the API?
Use the Authorization header with Bearer followed by your API key. You can generate a key during signup via Google or email.
What is the model ID for the uncensored model?
The model ID is uncensored. Use this ID in your requests to access our specific open-weight text model.
Can I use cards or PayPal for payments?
No, we only accept crypto. You can top up with USDT on TRC20 or USDC on Base, with amounts from $20 to $500.
What happens if I exceed the rate limit?
You will receive a 429 error. The limit is 300 requests per minute per key. Implement backoff to handle this gracefully.