EN ▾
Get API key

Integrating Gemma NSFW API

Developers often ask how to connect an OpenAI-compatible client to our service for uncensored text generation. This guide provides a tested checklist for SDK settings, crypto top-ups, and using your $0.50 trial credit.

Developer workspace with neural network background and crypto coin symbol

Setting Up Your Client Connection

Connecting to our service requires configuring your existing OpenAI-compatible client. You must direct your requests to the specific base URL for our API. The endpoint for chat completions is POST /v1/chat/completions. This ensures your client sends data to the correct uncensored model endpoint. You do not need to install a special library; any standard HTTP client or SDK that supports OpenAI's format will work.

The model identifier you must send in your request is uncensored. This tells the server to use the specific open-weight model designed for minimal refusal. When you configure your client, set the base URL to https://api.gemmansfw.cc/v1. This is the only base URL you need for text operations. Other endpoints like embeddings or image generation are not available, so keep your requests focused on text input and output.

Authentication is handled via an API key. You can generate this key by signing up with Google or using an email and password. The key is shown immediately after signup. You must include this key in the Authorization header of your requests. If the key is invalid, you will receive a 401 error. If you have no credit, you will receive a 402 error. Rate limits are enforced at 300 requests per minute per key.

Ensure your client handles streaming correctly if you need real-time responses. Our API supports streaming over Server-Sent Events (SSE). Usage information is included in the last chunk of the stream. This allows you to monitor token consumption in real-time. For non-streaming requests, you will receive the full response once the model finishes generating text. Both methods work with the same underlying model and pricing structure.

Understanding Pricing and Token Costs

Our pricing model is straightforward and based on actual token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. These rates apply to the tokens consumed by your requests. Errors and refusals do not incur charges, which helps you test your prompts without spending credit. Prepaid credit is charged by real token usage, ensuring you only pay for what you use.

The context window for this API is 100,000 tokens. This window includes both the prompt and the completion together. When estimating costs, consider that longer prompts consume more of this window. If your input is very long, it may reduce the space available for the model's response. Plan your prompt structure to maximize the utility of this large context window.

Errors are free, which is a significant advantage for debugging. If your request fails due to a rate limit or invalid key, you are not charged. This allows you to test your integration thoroughly without worrying about accidental charges. You can experiment with different parameters like temperature, top_p, and stop sequences to find the best results for your use case.

When calculating your budget, focus on token counts rather than dollar amounts. Use the formula (tokens divided by 1,000,000) multiplied by the per-million price. This helps you estimate costs accurately. For example, if you use 10,000 input tokens, the cost is a fraction of a cent. This transparency allows you to scale your usage confidently without hidden fees or subscription traps.

Managing Crypto Top-Ups

Adding credit to your account requires 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. This range allows for flexible funding depending on your project's needs. Smaller top-ups are available, but they must be at least $20. Larger projects can max out at $500 per transaction.

There is a bonus credit program for larger top-ups. If you add $50 or more, you receive a bonus ranging from 5% to 15% of your top-up amount. This bonus is added to your balance immediately. It provides extra value for developers who need more capacity for testing or production use. The bonus credit works exactly like regular credit, with no expiration date.

Payments are processed securely, and your credit never expires. This means you can top up when prices are favorable or when you anticipate high usage. There are no monthly fees or subscriptions. You pay only for the tokens you consume. This model is ideal for indie builders and developers who want predictable costs without recurring billing surprises.

Remember that we do not accept credit cards, PayPal, or bank transfers. All top-ups must be made via the specified crypto networks. Ensure you are sending to the correct network to avoid loss of funds. The process is simple: initiate the transfer, and the credit is added to your account. This crypto-only approach keeps fees low and transactions fast.

Using Your Trial Credit

Every new account starts with $0.50 of trial credit. This allows you to test the API without any initial investment. No credit card is required to sign up, making it easy to get started. You can use this trial credit to explore the model's capabilities, test different prompts, and verify your integration before committing to a top-up.

The trial credit is charged by real token usage. If you exhaust your trial balance, you will need to top up to continue using the API. This ensures that the trial is a genuine testing ground for your application. You can use the same endpoints and parameters with your trial credit as you would with paid credit.

Use this trial period to experiment with the uncensored model. Try different temperature settings and stop sequences to see how they affect the output. The model does not refuse lawful adult, fictional, security-research, or controversial topics. This makes it ideal for applications that require minimal censorship. Test these scenarios to ensure the model behaves as expected for your use case.

Once you are satisfied with the results, you can top up using crypto. The transition from trial to paid credit is smooth. Your existing API key and settings remain the same. You can continue building your application without interruption. The trial credit is a no-risk way to evaluate the service before investing in a larger top-up.

Advanced Parameters and Features

Our API supports several advanced parameters to fine-tune the model's output. You can adjust the temperature to control creativity, set top_p for nucleus sampling, and define stop sequences to halt generation. The seed parameter allows for reproducible results, which is useful for debugging and testing. These parameters give you precise control over the model's behavior.

Function calling is supported, allowing you to integrate the API with tools and external services. You can define tools in your request, and the model will return structured data that your application can process. This feature is essential for building agents and automated workflows. The JSON mode ensures that the output is always valid JSON, making it easy to parse in your code.

Penalties are available to discourage repetitive or unwanted text. You can set penalties for frequency and presence to improve the quality of the output. These parameters work alongside temperature and top_p to shape the model's responses. Experiment with these settings to find the right balance for your specific application.

Streaming is supported over Server-Sent Events. This allows you to receive responses in real-time, which is important for chat applications. The usage information is included in the last chunk, so you can track token consumption accurately. This feature enhances the user experience by providing immediate feedback. It also helps you manage costs by monitoring usage as it happens.

When Our API Is Not the Right Choice

While our API is powerful for text generation, it is not suitable for every use case. If you need image, audio, or video generation, this service will not meet your needs. We do not offer embeddings, OCR, or fine-tuning capabilities. Developers looking for these features should consider other specialized providers.

If you require a Service Level Agreement (SLA) or certifications like SOC2, HIPAA, or ISO, our service may not be the best fit. We do not claim these certifications or provide on-prem deployment options. Enterprise clients with strict compliance requirements should verify if our offering aligns with their needs.

If you are looking for a free unlimited tier, our prepaid model may not be ideal. You pay for tokens used, and there is no free tier beyond the initial trial. Developers who need extensive free usage should explore other options. However, for paid, uncensored text generation, our API offers a competitive and transparent pricing model.

If you need model routing or the ability to switch between different models dynamically, our service is limited to a single uncensored model. We do not offer routing to multiple models. If this flexibility is critical for your application, you may need to look elsewhere. For focused, high-quality uncensored text generation, our API is an excellent choice.

Troubleshooting Common Issues

One common issue developers face is encountering a 401 error, which indicates an invalid API key. Ensure that you are using the correct key from your account dashboard. If you generated a new key, make sure to update your client configuration. Check that the key is included in the Authorization header of your requests.

A 402 error means you have no credit remaining. You can check your balance in your account dashboard. If you are out of credit, you will need to top up using crypto. Remember that errors and refusals are free, so you can test your integration without spending credit. This allows you to verify your setup before making a top-up.

Rate limits are enforced at 300 requests per minute per key. If you exceed this limit, you will receive a 429 error. To avoid this, implement exponential backoff in your client. This ensures that your application retries requests gracefully without overwhelming the server. Monitor your usage to stay within the limit.

If you encounter unexpected behavior, check your parameters. Ensure that you are using the correct model ID, uncensored. Verify that your base URL is set correctly to https://api.gemmansfw.cc/v1. If issues persist, review the API documentation for the latest details on endpoints and parameters. This service is designed to be reliable and easy to integrate.

Frequently asked questions

How do I top up my account?

You can top up your account using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20, and the maximum is $500. Top-ups of $50 or more receive a bonus of 5% to 15%.

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 detailed inputs.

Is there a free trial?

Yes, every new account receives $0.50 of trial credit. No credit card is required to sign up. You can use this to test the API before making a top-up.

Does the API support streaming?

Yes, the API supports streaming over Server-Sent Events (SSE). Usage information is included in the last chunk of the stream, allowing you to track token consumption in real-time.