How to Use Uncensored AI in Your App
Integrate an uncensored AI model into your application by routing requests to a dedicated endpoint that skips standard content filters. This guide details the exact configuration steps for the OpenAI-compatible API, ensuring you receive unrestricted text responses for creative writing, roleplay, or data generation without hidden restrictions.
Last updated
Summary
- The API uses a single base URL with the standard OpenAI SDK structure for immediate compatibility.
- Pricing is strictly pay-as-you-go at $0.15 per million input tokens and $0.50 per million output tokens.
- Responses stream via Server-Sent Events, allowing real-time token delivery with usage data in the final chunk.
- Crypto-only top-ups offer bonus credit, and every new account receives $0.50 in trial funds without a card.
Why Choose an Uncensored AI Model?
Uncensored AI models remove the polite refusals that standard providers insert when discussing adult themes, niche hobbies, or controversial opinions. Standard models often hallucinate constraints, denying valid requests simply because they detect a trigger word. An uncensored LLM answers the prompt directly, preserving the nuance of your input without editorializing.
Our service runs a specific open-weight model tuned for this behavior. It does not refuse lawful adult content, creative fiction, or security research topics. You get raw, unfiltered text output suitable for NSFW chatbot applications or creative writing tools. The model maintains high coherence even when discussing edgy subjects, avoiding the generic "I can't answer that" responses.
Unlike generic routers that shuffle between various vendors, we serve one consistent uncensored model. This ensures predictable quality across all requests. You do not pay for premium features you do not use. The API focuses purely on text generation, avoiding the complexity of image or audio processing.
Setting Up Your Environment
Configure your development environment to point to our dedicated base URL. You need an API key, which you obtain by signing up with Google or an email address. The key appears immediately on your dashboard. Copy this key and store it in your environment variables. Do not share it publicly.
Create a new project directory. Initialize your preferred language runtime. Install the necessary dependencies. Our API follows the standard OpenAI protocol structure. This means you can use existing client libraries without writing custom HTTP handlers. The base URL is https://api.openrouterdolphinuncensored.com/v1. Ensure your network allows outbound HTTPS traffic to this domain. Firewalls sometimes block non-standard API endpoints. Verify connectivity before writing code.
Set the OPENAI_API_KEY variable. Pass this key in the Authorization header for all requests. The model identifier is uncensored. Use this exact string in your model field. Do not substitute it with gpt-4 or other vendor names. The server routes these requests to our specific uncensored instance.
Installing the OpenAI SDK
Install the official OpenAI SDK for your chosen programming language. This library handles authentication, retries, and JSON parsing automatically. It is the most reliable way to interact with our API. The library abstracts away the raw HTTP details. You focus on prompt engineering instead of network errors.
For Python, run pip install openai. For Node.js, run npm install openai. These commands download the latest stable version. The SDK version should be 1.0.0 or higher. Older versions may not support the streaming features we offer. Check your package manager for updates regularly. Security patches arrive frequently.
Import the client class. Initialize it with your API key and the base URL. The base URL is critical. If you omit it, the SDK defaults to OpenAI's servers. You will get a 404 error or a different model. Always verify the URL matches our endpoint. The SDK handles the rest. It serializes your requests correctly. It parses the JSON responses into usable objects.
Configuring the Base URL
Set the base_url parameter explicitly in your client configuration. This directs traffic to our uncensored servers. Without this setting, your requests go to the standard OpenAI infrastructure. You want the uncensored model, not GPT-4. The URL is https://api.openrouterdolphinuncensored.com/v1. Ensure there are no trailing slashes. The SDK appends the endpoint path automatically.
Verify the configuration by making a simple request. Ask for a definition of a common word. The response should be direct and unfiltered. If you receive a standard polite response, check the URL. A wrong URL means you are hitting a different service. Our service returns text from our specific model. It does not route to other vendors. The response time may vary based on load. Expect slight delays during peak hours.
Store the URL in a configuration file. This makes it easy to switch environments. Use staging URLs for testing. Use production URLs for live applications. Keep your API key separate from your code. Use environment variables for credentials. This prevents accidental leaks in version control. Security is important for any API integration.
Making Your First Request
Send a POST request to /v1/chat/completions. Include the model ID uncensored. Provide a user message in the content array. The API returns a text response. You can set parameters like temperature and top_p to control creativity. Higher temperature values produce more diverse outputs. Lower values make the model more deterministic.
Here is a basic cURL example to test connectivity:
Try sending a prompt about a complex topic. The model should answer without refusing. Check the response time. It should be reasonable for a cloud API. Monitor the token usage. You pay only for what you use. Input tokens cost $0.15 per million. Output tokens cost $0.50 per million. Errors are free. If the model fails to respond, you do not lose credit. This pricing structure is transparent. You see exactly what you pay for.
Handling Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). Each chunk contains a partial response. This allows you to display text to users in real-time. The final chunk includes the token usage statistics. You can track costs accurately with this data. Streaming reduces perceived latency. Users see progress immediately.
Parse the SSE stream carefully. Ignore data lines that do not contain content. Accumulate the text segments. Handle network interruptions gracefully. Retry logic should be implemented in your client. The SDK handles most of this automatically. It reassembles the chunks into a complete string. You can then process the final text as needed. This is ideal for chat interfaces. Users expect immediate feedback. Streaming provides that experience.
Implementing JSON Mode for Structured Data
Use JSON mode for reliable data extraction. Set response_format to {"type": "json_object"}. The model will output valid JSON. This is useful for parsing structured information from text. You can extract entities, dates, or ratings. The output is consistent and machine-readable. This reduces the need for post-processing regex patterns.
Define a schema for your expected output. The model tries to conform to it. If the prompt is clear, the JSON will be valid. Handle parsing errors in your code. Sometimes the model may include markdown formatting. Strip the code blocks before parsing. This ensures your application does not crash. JSON mode is a powerful feature for data pipelines. It transforms unstructured text into structured records.
Testing with NSFW Prompts
Verify the uncensored behavior by sending prompts with adult themes. Standard models often refuse these. Our model should accept them. Test with various levels of explicitness. Check for refusals in the response. A refusal indicates a configuration error. The model should answer directly. It does not judge the content. This is crucial for NSFW chatbot applications.
Ensure the content is lawful. The only hard limit is on sexual content involving minors. Requests violating this are refused. All other adult content is allowed. Test edge cases. Send long prompts. Send short prompts. Send ambiguous prompts. The model handles them consistently. This reliability is what developers need. You can trust the output for creative projects. The model does not insert moralizing commentary.
Monitoring Usage and Costs
Track your token usage via the API dashboard. Each request includes usage data in the response. Input tokens cost $0.15 per million. Output tokens cost $0.50 per million. Prepaid credit is deducted automatically. Errors do not charge you. This protects your budget. You only pay for successful completions. Credit never expires. You can top up whenever needed.
Use the streaming endpoint to monitor real-time costs. The final chunk shows the total tokens used. This helps you debug expensive prompts. If a response is too long, reduce the max_tokens limit. The default output limit is 2,048 tokens. You can increase this to 16,000. Longer responses cost more. Balance quality with cost. Set up alerts if your provider supports it. Keep an eye on your balance. Run out of credit, and requests stop. This is a pay-as-you-go model. No hidden subscriptions. No monthly fees. Just raw token usage.
Frequently asked questions
What is the base URL for the uncensored AI API?
The base URL is HTTPS://api.openrouterdolphinuncensored.com/v1. This endpoint is compatible with the standard OpenAI SDK. You must set this URL explicitly in your client configuration to route requests to our uncensored model.
How much does the uncensored AI API cost?
Pricing is $0.15 per million input tokens and $0.50 per million output tokens. You pay only for what you use. Errors are free. Credit is prepaid and never expires. There are no monthly subscriptions or hidden fees.
Does the uncensored model refuse content?
The model does not refuse lawful adult content, creative fiction, or controversial topics. The only hard limit is on sexual content involving minors, which is always refused. All other adult themes are allowed.
How do I pay for the API?
Payments are accepted via crypto only. You can top up with USDT (TRC20) or USDC (Base). Minimum top-ups are $20. Bonus credit is added for larger amounts.
Retrieve your API key
Register, copy the key, and update your base URL. That is the entire configuration.
Base URLhttps://api.openrouterdolphinuncensored.com/v1