EN ▾
Get API key

Integrating Uncensored Text API into n8n Workflows

Developers often seek reliable text generation for video pipelines. This guide explains how to integrate the uncensored text API into n8n workflows for consistent results.

Developer workspace showing API integration for uncensored text and video generation

Understanding the API Base and Endpoints

Before building any workflow, you must understand the base structure of the service. The uncensored text API operates as a hosted service with a specific base URL: https://api.unfilteredvideo.cc/v1. This endpoint is the foundation for all requests. Unlike some platforms that offer multiple model endpoints, this service serves a single uncensored open-weight text model. You identify this model by sending the identifier uncensored in your requests. This simplicity reduces configuration complexity in automation tools like n8n.

The API supports standard OpenAI-compatible chat completions. You will primarily use the POST /v1/chat/completions endpoint for generating text. The POST /v1/responses endpoint is also available for specific response formats. Additionally, the GET /v1/models endpoint allows you to verify available models. There are no embeddings, image generation, or audio processing endpoints. This means your n8n workflow will focus solely on text input and text output.

When integrating with n8n, you should configure the HTTP request node to point to this base URL. Ensure that your headers include the necessary authentication key. The service does not require complex authentication flows. A single API key, generated upon signup, is sufficient for all requests. This key must be kept secure within your n8n environment variables or secret storage.

It is important to note that this service does not support fine-tuning or model routing. You are working with a fixed model. This consistency is beneficial for predictable outputs in video generation pipelines. Your prompts will always interact with the same underlying architecture. This eliminates variability caused by switching between different model versions.

Configuring Authentication and Trial Credits

Authentication is straightforward but requires attention to detail. You can sign up using Google or an email and password combination. Upon registration, your API key is displayed immediately. It is important to copy this key and store it securely. The key is shown only once, so missing it means generating a new one. In n8n, you should store this key in a credential object to avoid hardcoding it in your workflow.

New accounts receive $0.50 of trial credit. This allows you to test the integration without immediate payment. The trial credit is sufficient for small test runs. However, for production workflows, you will need to add funds. The service does not accept credit cards, PayPal, or bank transfers. Payments are crypto-only, specifically USDT on TRC20 or USDC on Base.

Top-ups range from $20 to $500. If you top up $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus structure encourages larger deposits. The prepaid credit is charged based on real token usage. Errors and refusals do not consume credit, which is a significant advantage for debugging. You can monitor your usage through the API responses.

When setting up n8n, ensure that your authentication headers are correctly formatted. The API uses standard Bearer token authentication. Any invalid key will result in a 401 error. If you run out of credit, you will receive a 402 error. These error codes are standard and easy to handle in n8n using conditional logic.

Setting Up the n8n HTTP Request Node

Integrating the API into n8n involves configuring the HTTP Request node. Start by creating a new workflow and adding the HTTP node. Set the method to POST and the URL to https://api.unfilteredvideo.cc/v1/chat/completions. This endpoint handles the chat completions. You must also include the model identifier uncensored in the request body.

The request body should follow the standard OpenAI chat format. Include the messages array with your system and user prompts. You can also specify parameters such as temperature, top_p, and stop sequences. These parameters allow you to control the creativity and length of the output. Streaming is supported over Server-Sent Events (SSE). This allows for real-time token generation, which can be useful for long video scripts.

Function calling and JSON mode are also supported. If your video pipeline requires structured data, enable JSON mode. This ensures the output is valid JSON, which can be easily parsed by subsequent n8n nodes. The API supports tools for function calling, allowing you to define specific actions for the model to take.

Remember that the context window is 100,000 tokens. This is the total for prompt and completion combined. For most video scripts, this is more than sufficient. However, if you are processing large amounts of text, monitor your token usage. The API charges $0.15 per million input tokens and $0.50 per million output tokens. Keep this in mind when designing your workflow.

Formatting Prompts for Video Generation

Effective prompt formatting is key to successful video generation. The uncensored model does not refuse lawful adult, fictional, or controversial topics. This makes it ideal for creative video projects. However, it does refuse sexual content involving minors. Ensure your prompts adhere to this hard content limit to avoid refusals.

When designing prompts for n8n, consider the structure of your video scenes. Use clear, descriptive language. You can include specific instructions for camera angles, lighting, and character actions. The model responds well to detailed prompts. Avoid ambiguous language that might lead to inconsistent outputs.

Since the API serves text only, you will need to connect it to video generation tools. This might involve using other APIs for image or video creation. The text API provides the script or scene descriptions. You can then pass this text to other nodes in n8n for further processing. This separation of concerns allows for greater flexibility in your pipeline.

Test your prompts thoroughly. Use the trial credit to experiment with different styles. Adjust the temperature and top_p parameters to find the right balance between creativity and coherence. Document your successful prompts for reuse. This will save time and ensure consistency across your video projects.

Managing Costs and Rate Limits

Understanding the cost structure is essential for budgeting your n8n workflows. The API charges $0.15 per million input tokens and $0.50 per million output tokens. These rates are applied to real token usage. Errors and refusals are free, which reduces costs during testing. You can estimate your costs by calculating the token count of your prompts and expected outputs.

The API has a rate limit of 300 requests per minute per key. This is generally sufficient for most automation workflows. However, if you are processing large volumes of text, you might hit this limit. In such cases, consider implementing exponential backoff in your n8n workflow. This will prevent overwhelming the API and ensure smooth operation.

Keep an eye on your credit balance. If you run out of credit, your workflow will fail with a 402 error. Set up alerts in n8n to notify you when your balance is low. This proactive approach prevents interruptions in your video pipeline. Remember that prepaid credit never expires, so you can top up as needed.

When comparing costs, note that this service is prepaid. There are no monthly fees or subscriptions. This pay-as-you-go model is ideal for variable workloads. You only pay for what you use. This transparency helps in accurately forecasting your expenses.

When This API Is Not the Right Choice

While the uncensored text API is powerful, it is not suitable for every project. If you need image generation, audio processing, or video creation directly from the API, this service is not the right choice. It serves text only. You will need to integrate it with other tools for multimedia outputs.

Similarly, if you require embeddings for semantic search or fine-tuning for specific domains, this API does not support these features. The model is fixed and cannot be fine-tuned. If you need model routing to switch between different models, this service does not offer that capability.

For projects requiring high availability guarantees or specific certifications like SOC2 or HIPAA, this service does not claim these attributes. If your use case demands these certifications, you may need to consider other providers. However, for creative video pipelines and uncensored text generation, this API is an excellent choice.

Also, if you prefer credit card payments, this service might not be ideal. Payments are crypto-only. Ensure that your team is comfortable with cryptocurrency transactions. If you need a simple text-to-text API with a broad range of features, this service might be too limited. But for focused text generation, it is highly effective.

Addressing Community Questions on Automation

Users on Reddit often discuss integrating AI tools into automation platforms like n8n. Many developers seek guides for connecting AI video pipelines. The consensus is that a step-by-step approach works best. They emphasize the importance of clean workflow design and efficient API usage.

Common questions include how to handle errors and rate limits. The community suggests implementing reliable error handling in n8n. This includes retry logic and fallback mechanisms. Another frequent topic is prompt engineering for video generation. Users share tips on crafting detailed prompts that yield consistent results.

Some threads discuss the cost-effectiveness of different APIs. While specific prices vary, the general advice is to monitor token usage closely. The prepaid model of this service is often praised for its transparency. Users appreciate not having to manage subscriptions.

Finally, there is discussion about the uncensored nature of the model. Developers value the ability to generate adult or controversial content without refusal. This is particularly useful for creative video projects. The community recommends testing the model thoroughly to understand its boundaries and capabilities.

Frequently asked questions

How do I authenticate with the uncensored text API in n8n?

You authenticate using a Bearer token with your API key. Generate the key during signup and store it in n8n credentials. Include it in the Authorization header of your HTTP request node.

What happens if I exceed the rate limit?

The API returns a 429 error if you exceed 300 requests per minute. You should implement exponential backoff in your n8n workflow to handle this gracefully and avoid overwhelming the service.

Can I use this API for image generation?

No, the API serves text only. It does not generate images, audio, or video. You can use it to generate scripts or descriptions, which you can then pass to other tools for multimedia creation.

How are costs calculated?

Costs are based on token usage: $0.15 per million input tokens and $0.50 per million output tokens. Errors and refusals are free. You pay via prepaid crypto credits, which never expire.