EN ▾
Start now

Integrating Uncensored Dolphin with Your Stack

Developers often struggle with switching endpoints and managing rate limits when integrating uncensored models. This guide provides a tested checklist for SDK configuration and error handling specific to our service.

Developer workspace with laptop and abstract dolphin light graphic

Understanding the API Structure

Integrating our text-generation service begins with understanding its structure. The API follows the OpenAI chat-completions format, which means most existing libraries and SDKs work without modification. You send a POST request to the /v1/chat/completions endpoint with your messages and receive text in return. This compatibility reduces the learning curve for developers already familiar with major language models.

The base URL for all requests is https://api.uncensoreddolphinopenrouter.com/v1. You do not need to navigate complex routing tables or select specific model versions. Simply set your model ID to uncensored in your request payload. This single model handles all text-in, text-out interactions, ensuring consistent behavior across your application.

It is important to note that this service focuses purely on text generation. It does not support embeddings, image generation, audio processing, or video creation. If your project requires multimodal capabilities, you will need to integrate additional tools alongside this API. For those specific features, check the documentation of the respective vendors to see what they offer.

When configuring your SDK, ensure you are pointing to the correct base URL. The model ID uncensored is the only valid identifier for this service. Using other IDs may result in errors or unexpected behavior. Keep your configuration simple and focused on text generation to avoid unnecessary complexity in your stack.

Authentication and Key Management

Authentication is straightforward: you generate an API key during signup and include it in the Authorization header of your requests. You can sign up using Google or an email and password combination. Once registered, the key is displayed immediately, allowing you to start testing without delay. This key is tied to your account and controls access to the service.

When making requests, include the key in the Authorization: Bearer YOUR_KEY header. If the key is invalid or missing, the API returns a 401 error. This helps you quickly identify authentication issues during development. Always keep your keys secure and avoid exposing them in client-side code or public repositories.

The service does not require a subscription or monthly fee. Instead, you pay for what you use. Prepaid credit is charged based on real token usage. Errors and refusals do not consume credit, which can save money during testing phases. This pay-as-you-go model is ideal for indie builders who want to control costs.

To top up your credit, you must use cryptocurrency. The service accepts USDT on the TRC20 network or USDC on the Base network. You can add any whole amount between $20 and $500. Bonus credit is available for larger top-ups, ranging from +5% to +15%. No cards, PayPal, or bank transfers are accepted, so ensure your wallet is ready before purchasing.

Handling Rate Limits and Errors

Rate limits are enforced to ensure fair usage across all users. The limit is 300 requests per minute per key. If you exceed this limit, the API returns a 402 error if you have no credit, or a 429 error if you are rate-limited. It is important to handle these responses gracefully in your application to avoid crashes or poor user experience.

When you encounter a 429 error, you should implement exponential backoff in your retry logic. This means waiting a short period before retrying the request, and increasing the wait time with each subsequent failure. This approach prevents overwhelming the server and helps you stay within the rate limit. Monitoring the response headers can also help you track your current usage.

Other common errors include 401 for invalid keys and 402 for insufficient credit. Always check the status code and handle each case appropriately. For example, if you receive a 402 error, prompt the user to top up their credit. If you get a 401 error, verify the key or ask the user to log in again.

Errors and refusals are free, which means you can test your integration extensively without worrying about costs. This is particularly useful when debugging your application or testing edge cases. Use the free trial credit to explore the API's capabilities before committing to a paid plan.

Configuring Parameters for Best Results

The API supports several parameters to customize the output of the model. You can adjust the temperature, top_p, stop sequences, and seed to control the randomness and determinism of the responses. These parameters allow you to fine-tune the model's behavior to fit your specific use case.

Temperature controls the randomness of the output. A higher temperature results in more creative and diverse responses, while a lower temperature produces more focused and deterministic outputs. Top_p controls the nucleus sampling, which limits the vocabulary to the most probable tokens. Using these parameters together can help you achieve the desired balance between creativity and accuracy.

Stop sequences allow you to define specific strings that signal the end of a response. This is useful for generating structured data or stopping the model at a specific point. The seed parameter allows you to set a random seed for reproducible results. This is helpful for testing and debugging, as it ensures consistent outputs across multiple runs.

Penalties can also be applied to discourage certain tokens from being selected. This is useful for avoiding repetitive or unwanted content in the output. By experimenting with these parameters, you can optimize the API's performance for your specific needs. Always test different configurations to find the best balance for your application.

When This 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 your application requires image, audio, or video generation, this service alone will not suffice. You will need to integrate additional tools to handle those modalities. This API is strictly for text-in, text-out interactions.

Similarly, if you need embeddings for semantic search or vector databases, this API does not provide that capability. You will need to use a separate embedding service. The same applies to OCR, fine-tuning, or model routing. If your project relies on these features, you should look for a more comprehensive solution or combine multiple APIs.

Additionally, if you require a Service Level Agreement (SLA) with specific uptime guarantees, this service does not offer one. The API is designed for developers who are comfortable with a more flexible, pay-as-you-go model without formal SLAs. If you need strict uptime guarantees, check the documentation of other vendors to see what they offer.

Finally, if you prefer traditional payment methods like credit cards or PayPal, this service may not be suitable. The API only accepts cryptocurrency top-ups. If you are not comfortable with crypto, you may need to find a different provider. Always evaluate your project's specific needs before integrating any API to ensure it aligns with your requirements.

Testing with Trial Credit and Real Usage

Every new account receives $0.50 of trial credit, which allows you to test the API without any financial commitment. This trial credit is a great way to explore the model's capabilities and verify your integration before purchasing more credit. Use this trial to send a few requests and observe the responses.

When testing, pay attention to the token usage. The API charges $0.15 per million input tokens and $0.50 per million output tokens. You can estimate your costs by counting the tokens in your prompts and completions. This helps you budget for your project and avoid unexpected charges.

Errors and refusals are free, so you can test edge cases without worrying about costs. This is particularly useful for debugging your application or testing how the model handles unusual inputs. Use the trial credit to experiment with different parameters and see how they affect the output.

Once you are satisfied with the trial, you can top up your credit using crypto. The minimum top-up is $20, and the maximum is $500. Bonus credit is available for larger top-ups, which can help you save money in the long run. Always keep an eye on your usage to ensure you have enough credit for your projects.

Reddit Discussions on Rate Limits

Users on Reddit often discuss issues with rate limits when using uncensored models. Some users report encountering rate limit errors, such as (Venice) Rate limit exceeded, when using specific models like the Venice Uncensored Dolphin Mistral 24B Edition. These discussions highlight the importance of understanding rate limits and managing your API usage effectively.

In these threads, users suggest that if you encounter rate limits, you should consider using your own API key. This ensures that you have guaranteed access to the model and are not sharing resources with other users. It also helps you track your usage and manage your credits more accurately.

Another common theme in these discussions is the need to understand the tools you are using. Users advise against getting frustrated with rate limits and instead recommend reading the documentation and configuring your SDK correctly. This proactive approach can help you avoid common pitfalls and ensure a smoother integration experience.

Overall, the Reddit community emphasizes the importance of proper configuration and rate limit management. By following best practices and using your own API key, you can minimize the risk of encountering rate limit errors and ensure a stable integration with the API.

Frequently asked questions

How do I top up my credit?

You can top up your credit using USDT on the TRC20 network or USDC on the Base network. The minimum amount is $20 and the maximum is $500. Bonus credit is available for larger top-ups.

What happens if I exceed the rate limit?

If you exceed the rate limit of 300 requests per minute, you will receive a 429 error. You should implement exponential backoff in your retry logic to handle this gracefully.

Does the API support image generation?

No, the API is strictly for text generation. It does not support image, audio, or video generation. If you need those features, you will need to integrate additional tools.

Is there a free trial available?

Yes, every new account receives $0.50 of trial credit. This allows you to test the API without any financial commitment. Errors and refusals are also free.