EN ▾

Uncensored LLM API for developers

unfilteredstory.cc

Get API key

Integrating Uncensored LLM API: SDK Settings and Checklist

Developers often struggle to configure OpenAI-compatible clients for uncensored text generation without friction. This guide provides a tested integration checklist, covering SDK settings, prompt formatting, and connection steps for our text-in, text-out API.

Developer workspace with monitor showing API code and neon lighting

Understanding the API Base and Model ID

The first step in integration is establishing the correct connection endpoint. Our API operates on a standard OpenAI-compatible structure, which means you can likely reuse existing client libraries with minimal modification. The base URL for all requests is https://api.unfilteredstory.cc/v1. This endpoint handles all chat completions, responses, and model information queries. You do not need to worry about complex routing or multiple endpoints for different model types, as this service focuses solely on text generation.

When initializing your client, you must specify the model identifier. The only model available is identified by the string "uncensored". This is a hosted, open-weight text model designed to output text based on the input provided. Unlike some services that offer multiple model versions, here you simply select this single model ID. This simplicity reduces configuration errors and ensures consistent behavior across your application.

The API supports both the /v1/chat/completions and /v1/responses endpoints. These endpoints handle the core text generation logic. You send text input and receive text output. There are no embeddings, image generation, audio processing, or video capabilities. If your project requires multimodal features, you will need to handle those separately. For pure text generation tasks, this API provides a straightforward and reliable interface.

Authentication is handled via API keys. You can generate a key immediately after signing up via Google or email. The key is shown right away, so you can copy it into your environment variables. Keep this key secure, as it grants access to your prepaid credit. The API key is required for all requests, and invalid keys will result in a 401 error. This ensures that only authorized users can consume tokens and generate text.

Configuring SDK Parameters and Streaming

Once the connection is established, you need to configure the generation parameters. The API supports standard parameters such as temperature, top_p, stop sequences, and seed. These allow you to control the creativity and determinism of the output. For example, setting a lower temperature produces more consistent results, while a higher temperature encourages more varied and creative text. The seed parameter is particularly useful for debugging, as it allows you to reproduce specific outputs.

Streaming is supported via Server-Sent Events (SSE). This is essential for real-time applications where you want to display text as it is generated. The API sends usage information in the last chunk of the stream. This means you can track token consumption in real-time without waiting for the entire response to complete. Streaming also improves the perceived performance for users, as text appears immediately rather than waiting for the full generation to finish.

Function calling is another key feature. You can define tools and pass them to the API, allowing the model to generate structured data or trigger specific actions. This is useful for building agents that can interact with external systems. The API supports JSON mode, which ensures that the output adheres to a specific schema. This reduces the need for extensive parsing logic in your application code.

Penalties can be applied to discourage certain tokens or phrases. This is useful for maintaining tone or avoiding repetitive content. The API also supports stop sequences, which allow you to halt generation when a specific string is encountered. This is helpful for controlling the length of responses or stopping generation at logical breakpoints. These parameters give you fine-grained control over the generation process.

Handling Context Windows and Token Limits

Understanding the context window is important for effective integration. Our API supports a context window of 100,000 tokens, which includes both the prompt and the completion. This large window allows for extensive conversations and complex document processing. You can send long prompts and receive long responses without hitting limits quickly. However, you must manage the token count yourself, as the API does not automatically truncate input.

Token usage is billed based on real consumption. The price is $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Errors and refusals are free, so you do not pay for failed requests. This pricing model is transparent and predictable. You can estimate costs by calculating the token count of your prompts and expected responses. The formula for cost is tokens divided by 1,000,000 times the per-million price.

Rate limits are set at 300 requests per minute per key. This is a generous limit for most applications, but you should monitor your usage to avoid hitting the cap. If you exceed the limit, you will receive a 429 error. You can implement exponential backoff in your client to handle these errors gracefully. This ensures that your application continues to function smoothly even under heavy load.

The context window is shared between the prompt and the completion. This means that long prompts reduce the available space for the response. If you are processing large documents, you may need to chunk them into smaller pieces. This ensures that you stay within the token limit and receive complete responses. Managing context efficiently is key to building reliable applications with this API.

Payment Methods and Credit Management

Credit management is straightforward but requires specific payment methods. The API accepts crypto only, specifically USDT on the TRC20 network or USDC on the Base network. You can top up with any whole amount between $20 and $500. This range allows for flexible funding without requiring large initial investments. The credit is prepaid and charged based on real token usage, ensuring that you only pay for what you use.

New accounts receive $0.50 of trial credit, which requires no credit card. This allows you to test the API without any financial commitment. The trial credit is a great way to evaluate the quality of the uncensored model and the ease of integration. You can use this credit to make test requests and verify that your SDK is configured correctly.

Bonus credit is available for top-ups of $50 or more. The bonus ranges from +5% to +15%, depending on the amount. This incentivizes larger top-ups and provides additional value for your credits. The bonus credit is added immediately upon payment, so you can start using it right away. This is a significant advantage for developers who want to maximize their budget.

Unlike some services, there are no subscriptions or monthly fees. You pay as you go, and your paid credit never expires. This means you do not lose your balance if you do not use it for a long time. The absence of recurring charges makes it easy to budget for API usage. You can top up whenever you need more credit, without worrying about auto-renewal or hidden fees.

Addressing Common User Concerns

Developers often discuss issues with AI story generators in communities like r/perchance. A common complaint is that the AI ignores user information or creates stories that do not match the description. Users report that the AI seems to downgrade from a high token capacity to zero, ignoring context. This can be frustrating when trying to maintain continuity in long-form content. Our API addresses this by providing a large context window and explicit control over the generation process.

Another frequent issue is repetition. Users note that the AI gets stuck in a loop, repeating the same few lines in different orders. This is often due to the model over-indexing on scene dressing or specific phrases. You can mitigate this by using stop sequences and adjusting the temperature. Setting a lower temperature can reduce randomness and help the model stick to the narrative structure you provide.

Some users also complain about the interface or the inability to select specific styles. While our API is text-in, text-out, you can control the style through your prompts. By providing detailed instructions and examples in your prompt, you can guide the model to produce the desired output. This gives you more control than a fixed interface, allowing you to tailor the generation to your specific needs.

Finally, users often ask if the AI is broken or if changes have made it unusable. This is a common concern with any AI service, as models are updated frequently. Our API uses a single uncensored model, so you do not have to worry about sudden changes in behavior. The model is stable, and the API endpoints are consistent. This provides a reliable foundation for your applications, reducing the risk of unexpected disruptions.

When This API Is Not the Right Choice

While this API is excellent for text generation, it is not the right choice for every project. If you need image, audio, or video generation, this service will not meet your needs. The API is strictly text-in, text-out. It does not support embeddings, OCR, or fine-tuning. If your application requires these features, you will need to integrate additional services or use a different provider.

Similarly, if you need model routing or the ability to switch between different models, this API may not be suitable. It serves only one uncensored open-weight model. You cannot select between different model versions or providers. This is a trade-off for the simplicity and focus of the service. If you need flexibility in model selection, you may need a more complex solution.

Another limitation is the payment method. The API accepts only crypto, specifically USDT on TRC20 or USDC on Base. If your team or users prefer credit cards, PayPal, or bank transfers, this may be a barrier. You must be comfortable with crypto payments to use this service. This is a niche requirement that may not suit all audiences.

Finally, if you need an SLA or certifications like SOC2 or HIPAA, this service does not offer them. The API is an independent service without guaranteed uptime percentages or enterprise certifications. If your project requires strict compliance or high availability guarantees, you may need to consider a more established provider. This API is best suited for developers who value uncensored text generation and are comfortable with its specific limitations.

Troubleshooting and Error Handling

Effective error handling is important for a smooth integration. The API returns specific HTTP status codes to indicate issues. A 401 error means the API key is invalid. This can happen if the key is incorrect or has been revoked. A 402 error indicates that you have no credit left. This is common if you have exhausted your prepaid balance. A 429 error means you have hit the rate limit of 300 requests per minute. You should implement backoff logic to handle these errors gracefully.

Errors and refusals are free, so you do not pay for failed requests. This is important to note when calculating costs. If your application encounters many errors, your credit balance will not decrease. This allows you to test your integration without worrying about wasting credit. However, you should still monitor your usage to ensure that your application is functioning correctly.

The hard content limit is no sexual content involving minors. Requests that violate this rule are refused. This is a key feature of the uncensored model, which allows for adult, fictional, and controversial topics. However, it is important to respect this limit to avoid unnecessary refusals. You can check your prompts to ensure they do not contain prohibited content.

When troubleshooting, always check your API key and credit balance first. These are the most common causes of errors. If the key is valid and you have credit, check your rate limit usage. If you are hitting the limit, consider implementing a queue or reducing the frequency of requests. This will help you maintain a stable connection and avoid interruptions in your application.

Frequently asked questions

How do I get started with the uncensored LLM API?

Sign up via Google or email to receive an API key immediately. You can then use the base URL https://api.unfilteredstory.cc/v1 to start making requests. New accounts receive $0.50 of trial credit, so you can test the API without any initial payment.

What payment methods are accepted for top-ups?

The API accepts only crypto payments: USDT on the TRC20 network or USDC on the Base network. You can top up with amounts between $20 and $500. There are no credit cards, PayPal, or bank transfers accepted.

Does the API support streaming and function calling?

Yes, the API supports streaming over Server-Sent Events (SSE) and function calling. You can also use JSON mode and parameters like temperature, top_p, and seed to control the output. This allows for dynamic and interactive applications.

What happens if I run out of credit?

If you run out of credit, you will receive a 402 error. You can top up your account with crypto to restore your balance. The credit never expires, so you can use it whenever you need it.