How to Build with an Unrestricted API
An unrestricted API provides raw model outputs without content filtering, making it ideal for developers building adult, roleplay, or creative applications. This guide covers the technical specifics of integrating uncensored LLMs, managing token costs, and handling structured data with a direct, code-first approach.

Key points
- Unrestricted APIs return raw model outputs, removing safety refusals for lawful adult or creative content.
- A 100k context window allows deep document analysis and long-form roleplay without token limits.
- Streaming via SSE and JSON mode enable efficient data handling and real-time responses.
- Crypto (USDT on TRC20, USDC on Base) payments with bonus credits offer a flexible, no-subscription cost structure.
Why Choose an Unrestricted API?
Standard LLM APIs often apply content filters that refuse certain topics, even when those topics are lawful or relevant to your use case. An unrestricted api removes these arbitrary boundaries, returning the model's full output for adult, creative, or controversial subjects. This is critical for applications like character roleplay, adult fiction, or security research where refusals break the user experience.
Unlike consumer chat apps, a dedicated API provides a direct, code-first interface. You control the context, the parameters, and the output format. The model does not refuse lawful adult content, fictional violence, or nuanced debates unless they violate a hard limit, such as sexual content involving minors. This transparency ensures your application behaves predictably without hidden moderation layers.
For developers, this means fewer edge cases where your app suddenly stops responding because the model deemed a topic 'unsafe.' You get the raw capability of the model, allowing you to implement your own filtering logic if needed, or none at all.
Understanding Token Costs
Token-based pricing is the standard for LLM APIs. Input tokens are the text you send (prompt + history), and output tokens are the model's response. Costs vary significantly between providers, but an uncensored model typically offers competitive rates for high-volume usage.
For example, our API charges $0.15 per 1M input tokens and $0.50 per 1M output tokens. Errors and refusals are free, so you only pay for actual usage. This model is transparent: no subscription fees, no monthly commitments, and prepaid credit that never expires.
Key cost factors:
- Context length: Longer prompts consume more input tokens.
- Response length: Longer outputs increase costs.
- Streaming: Does not change token count, only delivery method.
Understanding these metrics helps you budget accurately. Track your token usage in the dashboard to monitor spending and optimize your prompts for efficiency.
Context Window Management
The context window determines how much text the model can process in a single request. A 100k context window allows you to send large documents, long conversation histories, or complex instructions without truncation. This is essential for deep analysis or roleplay where maintaining continuity over many turns is required.
However, larger contexts consume more tokens, increasing costs. The model has no separate output cap, and if max_tokens is not set, the response can run to the end of the window. This allows for deep processing, so set max_tokens if you want to keep token usage in check.
Best practices:
- Keep conversation history concise to save tokens.
- Use system prompts to set behavior without consuming context.
- Monitor token usage to stay within budget.
Efficient context management ensures your application remains responsive and cost-effective, even with long interactions.
Streaming vs Non-Streaming
Streaming delivers responses token-by-token, providing a real-time user experience. Non-streaming waits for the entire response before returning it. For chat applications, streaming is preferred as it reduces perceived latency and allows users to see progress.
Our API supports streaming via Server-Sent Events (SSE). Token usage information is included in the last chunk, allowing you to track costs in real-time. This is useful for applications where users need immediate feedback, such as roleplay or interactive storytelling.
Implementation tips:
- Use streaming for chat interfaces.
- Use non-streaming for batch processing or when you need the complete response at once.
- Handle SSE events carefully to avoid data loss.
Choosing the right mode depends on your use case. Streaming enhances user experience, while non-streaming simplifies data handling.
Handling Function Calls
Function calling allows the model to execute predefined functions based on user input. This is useful for tasks like fetching data, performing calculations, or controlling external tools. The model returns a structured response with function names and arguments, which your code then executes.
Our API supports function calling via the tools and tool_choice parameters. This enables dynamic interactions where the model can act as an agent, extending your application's capabilities beyond simple text generation.
Example workflow:
- Define functions in your API schema.
- Send user input with function definitions.
- Parse the model's response to extract function calls.
- Execute the functions and return results to the model.
This approach enhances interactivity and allows your application to perform complex tasks smoothly.
JSON Mode for Structured Data
JSON mode ensures the model outputs strictly valid JSON, making it easier to parse and integrate with your backend. This is important for applications that require structured data, such as form generation, data extraction, or API responses.
By setting response_format to json_object, you constrain the model to output only JSON. This reduces parsing errors and ensures consistency in your data pipeline. It is particularly useful for tasks like generating configuration files, creating data structures, or interfacing with other services.
Benefits:
- Reliable data parsing.
- Reduced error rates.
- Easier integration with existing systems.
Using JSON mode simplifies your development process, ensuring that model outputs are always usable without additional validation steps.
Rate Limits Explained
Rate limits prevent overuse and ensure fair resource distribution. Our API enforces a limit of 300 requests per minute per key and allows 8 concurrent requests. This balance supports high-throughput applications while preventing abuse.
Additionally, there is an 8 MB request body limit, which accommodates large prompts and context windows. If you exceed these limits, you will receive an error response, allowing you to adjust your usage accordingly.
Management tips:
- Monitor your request rate to avoid throttling.
- Use concurrent requests efficiently to maximize throughput.
- Handle errors gracefully by implementing retry logic.
Understanding these limits helps you design a solid application that scales effectively without hitting bottlenecks.
Crypto Payments & Bonuses
Payments are processed by crypto (USDT on TRC20, USDC on Base). This method offers speed, transparency, and global accessibility. You can top up any whole amount from $20 to $500, with bonus credits added to your account.
Bonus structure:
- +5% bonus credit for top-ups of $50 or more.
- +10% bonus credit for top-ups of $100 or more.
Credit never expires, and errors are free. This model is flexible and cost-effective, with no subscription fees or monthly charges. Sign up is simple: use 'Continue with Google' or email and password to get your API key immediately.
Getting Started
Getting started with an unrestricted API is straightforward. First, sign up on the platform using your Google account or email. You will receive an API key immediately, which you can use to authenticate your requests.
Next, configure your client to use the API's base URL: https://api.unrestrictedchatbot.com/v1. Set your API key in the authorization header. You can now send requests to the /v1/chat/completions endpoint.
Quick start steps:
- Sign up and get your API key.
- Configure your client with the base URL and key.
- Send a test request to verify connectivity.
- Start building your application.
With a 100k context window and uncensored outputs, you are ready to create powerful, unrestricted applications.