Try with trial credit

How to integrate an uncensored LLM API in your app

You need a reliable, uncensored LLM API that processes text without artificial refusals for lawful adult content. The queen API delivers this via a standard OpenAI-compatible endpoint, letting you swap in your key and start generating immediately.

Summary

  1. Use the standard /v1/chat/completions endpoint with the model id "uncensored" for direct text generation.
  2. The API queen charges $0.15 per 1M input tokens and $0.50 per 1M output tokens with prepaid credit that never expires.
  3. Top up your account with USDT (TRC20) or USDC (Base) starting at $20, with bonus credits available for larger amounts.
  4. You get a 100k context window and streaming support, but the service does not offer embeddings or image generation.

Why developers are switching to uncensored LLM APIs

Developers switch because standard models often refuse valid content based on arbitrary safety filters. You want your application to return the exact answer the model generates without unwanted refusals for fictional or adult themes. The API queen provides a single, uncensored model that answers directly. This eliminates the need for complex proxy hacks or retry logic to bypass refusals.

Your code remains simple. You send a prompt. You get a response. No extra middleware is required to handle safety layers. This reliability matters when you are building character bots or content generators that need consistent behavior. You avoid the frustration of a model suddenly refusing a prompt that worked yesterday.

Cost is another factor. Many providers charge high premiums for uncensored variants or limit their context windows. We offer a generous 100,000 token context window for the base price. This allows you to process long documents or maintain extensive conversation histories without incurring extra fees for extended context.

Privacy is also critical. Your prompts are not used for training your data. This ensures your proprietary content or user data remains yours. You retain full control over your application's behavior without external interference from the model provider's moderation team.

Understanding the uncensored AI model architecture

The model is an open-weight large language model tuned specifically to answer without content refusals. It is not GPT, Claude, Gemini, or any other vendor's model. You get a consistent experience because there is only one model, not a routing system that might switch between different base models.

It handles text generation efficiently. The model supports streaming via Server-Sent Events. This allows you to display tokens to users in real-time, improving the perceived latency of your application. You can also use function calling and JSON mode for structured outputs.

The model does not perform embeddings, image generation, or audio processing. It is strictly a text-in, text-out service. This focus means the infrastructure is optimized for high-throughput text generation. You get lower latency and more predictable performance for your text-based applications.

You can control the output with parameters like temperature, top_p, and seed. This allows you to fine-tune the creativity or determinism of the responses. The model respects these settings reliably, giving you the control you need for production applications.

Setting up your environment with OpenAI compatible SDKs

You set up your environment by installing your preferred SDK, such as the official OpenAI Python or Node.js client. You do not need a special client. The API queen uses the standard OpenAI protocol. This means your existing code will likely work with minimal changes.

You configure the base URL to point to HTTPS://api.apiqueen.cc/v1. You also set your API key in the environment variable or client configuration. This key is generated when you sign up. You can sign up with Google or email. No phone number is required.

Here is how you initialize the client in Python:

  • Install the package: pip install openai
  • Set the base URL to the API queen endpoint
  • Pass your API key to the client

This setup works with any OpenAI-compatible client. You can use libraries like LangChain or LlamaIndex without modification. The standard parameters like model name, messages, and temperature are supported. You are ready to send your first request immediately.

Configuring base URLs and API keys for API queen

You configure the base URL to HTTPS://apiqueen.cc/v1 in your application settings. This URL directs your requests to the correct server. You must also include your API key in the Authorization header. The format is Bearer YOUR_API_KEY.

You get one active key per account. If you need a new key, generating a new one replaces the old one. This is useful if you suspect a key has been leaked. You can generate a new key from your dashboard. The old key stops working immediately.

The model id you send is "uncensored". This tells the server which model to use. There is no routing to other models. You always get the uncensored model. This consistency is important for maintaining a specific tone or behavior in your application.

You can test your connection by sending a simple request. Check the response for the model id. It should return "uncensored". This confirms that your configuration is correct. You are now ready to integrate the API into your application logic.

Handling streaming responses for real-time generation

You handle streaming by setting the stream parameter to true in your request. The server sends a series of Server-Sent Events. Each event contains a chunk of text. You concatenate these chunks to form the full response.

Streaming improves the user experience significantly. Users see tokens as they are generated. This reduces the perceived waiting time. The final chunk contains the token usage statistics. You can track your costs accurately by summing these tokens.

Here is an example of how to handle streaming in Node.js:

You should handle errors gracefully. Network issues or rate limits can interrupt the stream. You need to implement retry logic or display an error message to the user. The API provides clear error codes to help you debug these issues.

You can also control the streaming behavior with parameters like max_tokens. This limits the length of the streamed response. This is useful for preventing excessively long outputs that might consume your credit quickly. You maintain control over the output length while enjoying the benefits of real-time generation.

Optimizing costs with token limits and parameters

You optimize costs by setting a max_tokens limit in your requests. The default is 2,048 tokens if you do not specify one. You can increase this up to 16,000 tokens per request. This allows you to generate longer responses without multiple API calls.

The pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free. This means you only pay for successful responses. You do not pay for tokens that are generated but then discarded due to an error. This is a significant advantage over other providers.

You can also use the stop parameter to prevent the model from generating unnecessary text. This can reduce the number of tokens used in each request. You define a sequence that signals the end of the desired output. The model will stop generating tokens when it encounters this sequence.

You can monitor your usage through the dashboard. You can see your token consumption and remaining credit. This helps you budget your API usage effectively. You can set up alerts if you want to be notified when your balance is low. This prevents unexpected charges or service interruptions.

Testing your integration with sample prompts

You test your integration by sending a sample prompt to the /v1/chat/completions endpoint. Use a simple prompt like "Hello, how are you?" to verify connectivity. Check the response for the expected greeting. This confirms that your API key and base URL are correct.

You can also test streaming by enabling the stream parameter. Observe the chunks of text as they arrive. This verifies that your client handles Server-Sent Events correctly. You should see the text appear token by token.

Test different parameters like temperature and top_p. Adjust these values to see how they affect the model's output. Higher temperatures produce more creative responses. Lower temperatures produce more deterministic outputs. This helps you find the right balance for your application.

You can also test function calling by providing a tool definition. Send a request with a tool call and verify that the model responds with the correct tool usage. This ensures that your application can integrate with external APIs or databases. The API queen supports this feature fully.

Migrating from other providers seamlessly

You migrate by changing the base URL and API key in your configuration. The endpoint structure is identical to OpenAI. You do not need to rewrite your request logic. You can keep your existing code and just update the connection settings.

You may need to adjust your model name to "uncensored". This is the only model available. You do not need to handle model routing or versioning. This simplifies your deployment pipeline. You can deploy to production with confidence.

You can import your existing prompts and system messages. The model understands standard prompt formats. You do not need to retrain or fine-tune your data. You can start using the API queen immediately with your existing prompt library.

You can test the migration by running your existing test suite. Compare the outputs from the old provider with the new one. You may notice differences in tone or style. This is expected. The uncensored model may be more direct or detailed. You can adjust your prompts to get the desired output.

Final steps to launch your uncensored application

You launch by ensuring your error handling is robust. Network issues can occur. You should implement retries with exponential backoff. This ensures that your application remains resilient under varying load conditions. You do not want your users to experience downtime due to temporary glitches.

You should monitor your token usage closely. You can set up alerts for high consumption. This helps you avoid unexpected charges. You can also set a max_tokens limit to control costs. This ensures that you do not spend your credit too quickly.

You can sign up with Google or email. You get $0.50 of trial credit for 7 days. This allows you to test the API before committing to a paid plan. You can top up with crypto when you are ready.

You are now ready to build your application. The API queen provides a reliable, uncensored LLM API. You get direct access to the model without intermediaries. This gives you full control over your application's behavior. You can focus on building great features instead of managing API quirks.

Common queries

What is the queen API?

The queen API is a hosted, OpenAI-compatible chat-completions API serving one uncensored large language model. It provides direct text generation without content refusals for lawful adult use. You access it via standard endpoints and parameters.

How do I pay for the API queen?

You pay with crypto only: USDT (TRC20) or USDC (Base). You can top up from $20 to $500. You get bonus credit for larger amounts.

What is the pricing for the queen API?

The pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free. Prepaid credit never expires. You only pay for successful responses.

Which payment methods do you accept?

Crypto only: USDT on TRC20 or USDC on Base, any whole amount from $20 to $500. Bonus credit applies from $50.

Unlock your API key

Register, retrieve your key, and update the base URL. That is the entire configuration.

Try with trial credit