Integrating the Uncensored LLM Router API
Developers often seek a reliable gateway for uncensored text generation that fits into existing workflows. This guide walks you through connecting your application to our OpenAI-compatible service using standard SDKs. We cover endpoint configuration, streaming setup, and error handling to ensure smooth text-in, text-out communication.

Understanding the API Endpoint Structure
Integrating our service begins with recognizing that it follows the OpenAI chat completions standard. This means you can use familiar SDKs without learning a new protocol. The base URL for all requests is https://api.llmrouterapi.com/v1. You do not need to worry about complex routing logic or multiple endpoints for different models. Our service serves a single uncensored open-weight text model, identified simply by the model ID "uncensored". This simplifies your configuration significantly.
When you initialize your SDK client, you point it to this base URL. The API supports standard HTTP methods for chat completions. You will primarily use POST requests to send prompts and receive responses. The interface is designed to be intuitive for developers who have worked with other major LLM providers. This familiarity reduces the learning curve and speeds up your integration process.
It is important to note that this service is text-only. You should not expect embeddings, image generation, audio processing, or video capabilities. If your application requires multimodal features, this API handles the text layer only. The focus is on delivering high-quality, uncensored text responses. The context window supports up to 100,000 tokens for both prompt and completion combined. This allows for substantial input data without losing context.
For developers managing multiple models, our API offers a GET endpoint to list available models. Currently, this returns the single uncensored model. This consistency means your code does not need dynamic model switching logic. You can hardcode the model ID or fetch it dynamically, but the result remains the same. This stability is beneficial for production environments where reliability is key. The API handles the heavy lifting of serving the model, allowing you to focus on application logic.
Configuring Authentication and Keys
Authentication is straightforward and designed for quick access. You can sign up using Google or an email and password combination. Upon signup, your API key is shown immediately, allowing you to start testing without delay. This key is the primary credential for all your requests. You must include it in the Authorization header of your HTTP requests. The format follows the standard Bearer token scheme used by most modern APIs.
When making requests, ensure you include the key in the header. Invalid keys will result in a 401 error. This helps you catch configuration issues early in the development process. If you receive a 402 error, it indicates that your account has no available credit. Since we use a prepaid credit system, you must top up before making requests. Errors and refusals are free, so you can test your integration without consuming credit.
The key is tied to your account and has specific rate limits. You are allowed up to 300 requests per minute per key. This limit is generous for most applications but should be considered when designing high-throughput systems. If you exceed this limit, you will receive a 429 error. Implementing exponential backoff in your client code is a good practice to handle these rate limits gracefully.
Remember that the key is shown immediately after signup. Store it securely in your environment variables or secret manager. Do not hardcode it in your source code if you are sharing your repository. The key provides access to your prepaid credit and usage limits. Keeping it secure ensures that only your application can consume your credits. This simple authentication model reduces friction while maintaining security.
Setting Up Streaming and Response Handling
Streaming is a key feature for improving user experience in chat applications. Our API supports Server-Sent Events (SSE) for streaming responses. This allows you to receive tokens as they are generated, rather than waiting for the entire response. To enable streaming, you set the stream parameter to true in your request. The SDK will then handle the SSE connection and emit events for each token.
When streaming, the usage information is included in the last chunk of the response. This is important for tracking your credit consumption. You can parse this usage data to monitor your token usage and estimate costs. The stream response includes both the text content and the metadata. Your client code should handle these events to update the UI in real time.
Implementing streaming requires handling partial responses. You should accumulate the tokens as they arrive and display them to the user. This creates a smooth typing effect that feels responsive. It is also useful for long-running requests where users might lose patience waiting for a full response. Streaming reduces the perceived latency and keeps users engaged.
For non-streaming requests, you receive the full response in a single chunk. This is useful for simpler tasks where real-time updates are not necessary. Both modes are supported by the standard SDKs. You can choose the mode based on your application's needs. The API handles the underlying connection management, so you can focus on parsing the response data. This flexibility allows you to optimize for either speed or simplicity.
Utilizing Function Calling and JSON Mode
Our API supports function calling, which allows your application to interact with the model programmatically. You can define tools or functions in your request, and the model will return structured data to invoke them. This is essential for building agents that can perform actions, query databases, or control other services. The SDK handles the serialization and deserialization of these function calls.
JSON mode is another powerful feature for structured output. You can force the model to return valid JSON, which is useful for parsing data into your application's data structures. This is particularly helpful when extracting information from text or generating configuration files. The API ensures that the output adheres to the specified format, reducing the need for additional parsing logic.
When using function calling, you provide the function definitions in the request. The model returns a list of function calls, which you can execute in your application. The results are then fed back into the model for further processing. This loop allows for complex multi-step tasks. The API supports standard tool definitions, making it compatible with existing SDKs.
Combining function calling with streaming can provide a rich interactive experience. You can display the model's reasoning or function calls in real time. This transparency helps users understand what the application is doing. The API's support for these features makes it suitable for advanced applications that require more than just text generation. You can build sophisticated workflows that use the model's understanding of your tools.
Managing Credits and Payments
Our pricing model is based on prepaid credit, charged by real token usage. There is no monthly subscription or recurring fee. This gives you full control over your spending. You can top up your account using cryptocurrency, specifically USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. You can choose any whole amount within this range.
When you top up with $50 or more, you receive a bonus credit ranging from 5% to 15%. This bonus is added to your account immediately. The bonus credit never expires, so you can use it whenever you need it. This is a significant advantage for developers who want to maximize their budget. The bonus is calculated based on the top-up amount, providing extra value for larger purchases.
Errors and refusals are free, which means you only pay for successful completions. This protects you from wasting credit on failed requests. The API charges $0.15 per million input tokens and $0.50 per million output tokens. These rates are competitive and transparent. You can monitor your usage and balance through your account dashboard.
Since payments are crypto-only, there are no credit card or PayPal fees. This also means no chargebacks or payment disputes. The process is fast and secure. You simply send the crypto to the provided address, and the credit is added to your account. This method is ideal for developers who prefer decentralized payments. It also reduces the overhead associated with traditional payment processors.
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 use case. If you need image generation, video creation, or audio processing, this service does not support those capabilities. It is strictly a text-in, text-out API. If your application requires multimodal outputs, you will need to integrate additional services for those tasks.
Similarly, if you need embeddings for vector search, our API does not provide this feature. You would need to use a separate embedding service. The same applies to OCR, fine-tuning, or model routing. If your workflow depends on these features, you might find our API limiting. It is designed to be a reliable text engine, not a comprehensive AI platform.
Another consideration is the uncensored nature of the model. If your application requires strict content filtering or safety layers, you might prefer a different provider. Our model does not refuse lawful adult, fictional, or controversial topics, except for sexual content involving minors. If you need more aggressive moderation, this might not be the best fit.
Finally, if you are looking for a free unlimited tier, our prepaid model might not suit you. We offer a $0.50 trial credit, but ongoing usage requires payment. If you need a completely free service with no usage limits, you might need to explore other options. However, for developers who need high-quality, uncensored text generation with flexible pricing, our API is an excellent choice.
Addressing Common Developer Questions
Developers often ask about the best uncensored models available for local use. In Reddit threads on r/LocalLLM, users discuss models like Qwen3.6 and Gemma-4. They debate whether specific variants like 'Aggressive' or 'Abliterated' are necessary. Our API simplifies this by providing a single, high-quality uncensored model. You do not need to hunt for the right variant; the model is already optimized for uncensored output.
Another common question is whether online providers are overly moderating. Users on r/generativeAI and r/LocalLLM frequently complain about safety layers blocking valid requests. Our API addresses this by offering an uncensored model that responds to challenging questions without unnecessary filtering. This is ideal for developers who want raw, unfiltered text generation.
Some developers also ask about the ease of integration. They want to know if they can use standard SDKs without custom code. Our API is fully OpenAI-compatible, so you can use the same SDKs you use for other providers. This reduces the learning curve and allows you to switch between providers if needed. The integration is straightforward and well-documented.
Finally, users often inquire about the cost-effectiveness of uncensored models. They compare local setup costs with cloud API prices. Our API offers a competitive pricing model with no monthly fees. You only pay for what you use, and you get bonus credit for larger top-ups. This makes it an attractive option for developers who want to avoid the hardware costs of local deployment.
Frequently asked questions
How do I get an API key?
You can sign up using Google or email and password. Your API key is shown immediately after signup. Use this key in the Authorization header for your requests.
What is the model ID?
The model ID is "uncensored". This is the only model available on our API. You can fetch it using the GET /v1/models endpoint.
Can I use credit cards for payment?
No, we only accept crypto payments. You can top up with USDT on TRC20 or USDC on Base. The minimum amount is $20.
Is there a free trial?
Yes, every new account gets $0.50 of trial credit. No credit card is needed to start. This credit never expires.