EN ▾
Get API key

Integrating Uncensored Text API into Video Scripts

Developers often seek ways to feed creative, unfiltered narratives directly into video generation pipelines. This guide explains how to integrate our uncensored text API into your workflow, ensuring your video scripts receive the exact tone and content you define. We cover connection details, parameter tuning, and practical limits to help you build reliable automation.

Developer desk with laptop showing code and video frames for uncensored text API integration

Understanding the API Connection

This site is an independent service and is not affiliated with Unrestricted Text API.

The foundation of integrating our text API into your video pipeline lies in understanding the connection points. Our service provides a hosted, OpenAI-compatible chat-completions API. This means you can use existing SDKs or HTTP clients designed for OpenAI, simply by pointing them to our base URL. The base URL for this service is https://api.unrestrictedvideogenerator.cc/v1. You do not need to rewrite your entire integration logic from scratch. Instead, you update the endpoint configuration in your code.

When you initialize your client, you must specify the model ID as uncensored. This tells the system which model to route your request to. The API serves one specific uncensored open-weight text model. Text goes in, and text comes out. There are no embeddings, image generation, or audio features in this text-only interface. This simplicity allows you to focus on generating the script content without managing multiple modal outputs.

The connection is secured using an API key. You can obtain this key immediately after signing up. The signup process is straightforward: you can continue with Google or use an email and password combination. Once registered, the key is shown to you right away. You should store this key securely in your environment variables or configuration files. It is the primary credential for authenticating your requests.

Errors during connection are handled with standard HTTP status codes. If your key is invalid, you will receive a 401 error. If you run out of credit, you get a 402 error. If you exceed the rate limit, you see a 429 error. Understanding these codes helps you troubleshoot integration issues quickly. The API does not return complex error messages for valid requests, keeping the response format clean and predictable for your video script generator.

Handling Payments and Credits

Our service operates on a prepaid credit system charged by real token usage. There is no monthly subscription or recurring fee. You pay only for the tokens you consume. The pricing is set at $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. This transparent pricing allows you to estimate costs based on your script length. Errors and refusals are free, so you do not pay for failed attempts.

Top-ups are processed using cryptocurrency only. You can pay with USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you add credit from $50 or more, you receive a bonus credit ranging from +5% to +15%. This bonus helps you get more text generation for your investment. No credit cards, PayPal, or bank transfers are accepted, so you must have a crypto wallet ready.

New accounts start with $0.50 of trial credit, requiring no card verification. This allows you to test the integration without immediate financial commitment. The paid credit never expires, so you can top up when needed. This flexibility is useful for developers who work on video scripts intermittently. You do not lose your balance if you pause development for a few weeks.

When integrating, ensure your application checks the balance before sending large requests. If the balance is insufficient, the API returns a 402 error. You can then trigger a top-up process in your workflow. This prevents your video generation pipeline from halting unexpectedly due to lack of funds. The prepaid model keeps costs predictable and under your control.

Configuring Parameters for Video Scripts

To generate high-quality video scripts, you need to configure the API parameters correctly. The API supports several parameters that influence the output. You can set the temperature to control creativity, top_p for nucleus sampling, and stop sequences to end the text at specific points. You can also set a seed for reproducibility. These parameters allow you to fine-tune the tone and structure of your video scripts.

Streaming over Server-Sent Events (SSE) is supported. This feature allows you to receive the generated text in chunks as it is produced. The usage information is included in the last chunk. Streaming is useful for video pipelines that need to display progress or process text in real-time. It reduces the perceived latency for your users and allows for immediate feedback.

Function calling, also known as tools, is available. This feature allows the model to return structured data that your code can execute. For video scripts, you might use this to extract scene descriptions or character actions. You can also enable JSON mode to force the output into a strict JSON format. This makes it easier to parse the script and feed it into your video generation engine.

Penalties are also supported. You can adjust penalties to discourage certain words or phrases. This is useful for maintaining consistency in your video scripts. For example, you might penalize repetitive phrases or specific adjectives. By tuning these parameters, you ensure that the generated text aligns with your creative vision and technical requirements.

Managing Rate Limits and Errors

Our API enforces a rate limit of 300 requests per minute per key. This limit applies to all endpoints, including chat completions and responses. If you exceed this limit, you will receive a 429 error. It is important to monitor your request frequency, especially if you are generating multiple video scripts in parallel. You can implement retry logic with exponential backoff to handle these errors gracefully.

Errors are handled with clear status codes. A 401 error indicates an invalid key, which means you should check your authentication credentials. A 402 error means you have no credit, requiring a top-up. A 429 error signals that you have hit the rate limit. Understanding these codes helps you debug your integration quickly. The API does not return complex error messages for valid requests, keeping the response format clean.

When integrating, consider implementing a queue system for your requests. This helps you stay within the rate limit by spacing out your calls. You can also batch requests if the API supports it, though our current endpoints are designed for individual completions. Monitoring your usage helps you avoid unexpected interruptions in your video generation workflow.

Hard content limits are in place to ensure safety. The model refuses requests involving sexual content with minors. All other lawful adult, fictional, security-research, or controversial topics are allowed. This uncensored nature is the core feature of our service. You can generate scripts for a wide range of video styles without worrying about over-filtering. Just ensure your content does not violate the specific hard limit.

When This API Is Not the Right Choice

While our API is excellent for generating text scripts, it is not suitable for all video generation needs. If you need the API to generate images, audio, or video directly, this service is not the right choice. It is a text-only API. You cannot use it for embeddings, OCR, or fine-tuning models. It also does not support model routing to switch between different models dynamically.

If you require an SLA with specific uptime guarantees, this service may not meet your needs. We do not claim any SLA percentages. Similarly, if you need certifications like SOC2, HIPAA, or ISO, this is not the right fit. We are an independent service and do not hold these certifications. For enterprise clients with strict compliance requirements, you might need to look elsewhere.

On-prem deployment is not available. The API is hosted, so you cannot run the model on your own servers. If you need to keep your data entirely within your infrastructure, this hosted solution might not be ideal. Also, we do not offer a free unlimited tier. You must have prepaid credit to use the service, even for small tests.

If you are looking for a vendor that offers benchmark scores or named customers as proof of performance, this is not the right choice. We do not publish benchmark numbers. Instead, we focus on providing a reliable, uncensored text generation tool. For video pipelines that need raw text control without enterprise bells and whistles, this API is a strong candidate. But for those needing full multimodal generation or strict compliance, other solutions might be better.

Addressing Community Questions on Video Generation

Developers and creators often discuss the challenges of generating unrestricted video content. Threads on platforms like r/NSFWGenerators and r/LuredAI frequently mention the need for reliable text APIs to drive video generation. Users ask how to connect an uncensored text API to their video pipelines to get the best results. They want to know how to handle the text-to-video transition smoothly.

Common questions revolve around the best tools for NSFW image and video generation. People recommend trying specific platforms for character roleplay and private video generation. They emphasize the importance of using uncensored models to avoid content filtering. Our API addresses this by providing an uncensored text model that does not refuse lawful adult topics.

Users also ask about the technical aspects of integration. They want to know how to set up the API key and handle errors. Our service provides a straightforward signup process with immediate key access. The API supports standard OpenAI-compatible endpoints, making it easy to integrate with existing tools. This compatibility reduces the learning curve for developers.

Another common theme is the desire for privacy and safety. Users appreciate services that offer no-login options and private generation. While our API is text-only, it can be part of a larger pipeline that includes these features. By using our API for the script generation, you can maintain full control over the content. This flexibility allows you to build a custom video generation workflow that meets your specific needs.

Testing and Validating Your Integration

Before deploying your video script generator, it is important to test your integration thoroughly. Start by sending a simple request to the /v1/chat/completions endpoint. Use the model ID uncensored and a basic prompt. Verify that you receive a valid response with the expected text. Check the status code to ensure it is 200 OK. This confirms that your authentication and connection are working correctly.

Next, test the streaming functionality. Send a request with the stream parameter enabled. Verify that you receive chunks of text as they are generated. Check that the usage information is included in the last chunk. This ensures that your video pipeline can process the text in real-time. Streaming is essential for providing a smooth user experience.

Test the error handling by simulating different scenarios. Send a request with an invalid key to trigger a 401 error. Then, send a request when your credit is low to trigger a 402 error. Finally, send multiple requests rapidly to trigger a 429 rate limit error. Ensure that your code handles these errors gracefully and provides meaningful feedback to the user.

Finally, test the function calling and JSON mode features. Send a request with a function definition and verify that the model returns structured data. Check that the JSON mode forces the output into the correct format. These features are useful for automating the parsing of your video scripts. By validating these aspects, you ensure that your integration is reliable and reliable.

Frequently asked questions

How do I get an API key for the uncensored text API?

You can get an API key immediately after signing up. You can sign up using Google or with an email and password. The key is shown to you right after registration.

What payment methods are accepted for top-ups?

We accept crypto only. You can pay with USDT on the TRC20 network or USDC on the Base network. The minimum top-up is $20 and the maximum is $500.

Does the API support streaming for real-time script generation?

Yes, the API supports streaming over Server-Sent Events (SSE). This allows you to receive text chunks as they are generated. Usage information is included in the last chunk.

What happens if I run out of credit?

If you run out of credit, the API returns a 402 error. You can top up your balance using crypto to continue generating text. Errors and refusals are free, so you only pay for successful token usage.