Uncensored Text API in n8n: Setup and Workflow
To run an uncensored text api n8n setup, you point either the HTTP Request node or an OpenAI credential at an OpenAI-compatible base URL and use model uncensored. Below are both routes, plus a batch workflow and the settings that keep it from hitting rate limits.

Pick a route before you build
n8n gives you two ways to talk to an OpenAI-compatible endpoint, and the right one depends on what the rest of your workflow looks like.
- HTTP Request node. You write the URL, headers and JSON body yourself. It works in every n8n version, makes the request explicit, and is the easier route to debug.
- OpenAI credential with a custom base URL. The OpenAI nodes and the chat model sub-node used by AI Agent and chain nodes accept a credential where you can replace the default base URL. This is the better route when you want agent features such as memory and tools to be wired by n8n.
Both end up calling the same endpoint: POST https://api.unfilteredvideo.top/v1/chat/completions, with the model set to uncensored. The service is text only, so every workflow below deals in strings and JSON, never images or audio. Use it for lawful adult content work such as fiction drafting, character dialogue, script rewriting or moderation-free text analysis, and keep in mind the one hard rule that no sexual content involving minors is ever produced.
Prepare the key and test outside n8n
Get your key from the key page. New accounts can claim a one-click trial of $0.50, valid 7 days, which is enough to build and test the whole workflow in this article several times over. Test the key in a terminal first, so a typo in the base URL does not look like an n8n problem.
curl https://api.unfilteredvideo.top/v1/chat/completions \
-H "Authorization: Bearer $UNFILTERED_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "uncensored", "messages": [{"role": "user", "content": "Reply with the word ready."}]}'If you get a normal JSON answer, the key and URL are good. In n8n, store the key in a credential rather than pasting it into a node, so that exporting the workflow does not leak it.
Route A: the HTTP Request node
Add an HTTP Request node and set it up like this.
| Field | Value |
|---|---|
| Method | POST |
| URL | https://api.unfilteredvideo.top/v1/chat/completions |
| Authentication | Generic credential type, Header Auth: name Authorization, value Bearer your-key |
| Send Body | On, content type JSON |
| Body | Fields model = uncensored, messages (an array), optionally temperature and max_tokens |
The body is plain chat-completions JSON. You can type it in the JSON field and mix in n8n expressions, for example the system prompt as fixed text and the user message as an expression that reads a field from the previous node. The curl command in the previous section shows exactly the structure the node must send; build the node body to match it.
The answer comes back as the standard response object. In the next node, read the text with the expression {{ $json.choices[0].message.content }} and the token counts from {{ $json.usage.prompt_tokens }} and {{ $json.usage.completion_tokens }}. Storing the token counts next to each result gives you a built-in cost log, because you can multiply by $0.15 and $0.50 per 1M tokens later.
Route B: OpenAI credentials with a custom base URL
Open Credentials, create a new OpenAI API credential and fill in two fields. Paste the key into the API Key field, and put https://api.unfilteredvideo.top/v1 into the Base URL field. The base URL ends at /v1; the node appends /chat/completions on its own, so adding it yourself produces a 404.
Then attach the credential to an OpenAI Chat Model node (used by AI Agent and chain nodes) or to the OpenAI node. For the model, pick uncensored from the dropdown. The dropdown is filled by calling GET /v1/models, which this service supports. If your n8n version shows a fixed list that omits it, switch the model field to the expression or by-ID option and type uncensored yourself.
Tool calling and JSON mode are part of the API, so agent workflows that depend on tools and tool_choice can use them. Test a small agent with one trivial tool before you wire in anything that sends email or writes to a database, since tool behaviour depends on the model and you want to see its habits first.
A practical workflow: batch rewriting from a spreadsheet
A common job for creators is cleaning up a long list of drafts: story hooks, character bios, product blurbs, scene summaries. Here is a layout that handles 500 rows without babysitting.
- Manual or Schedule trigger to start the run.
- Google Sheets (or any table source) reading the rows that have an empty Result column.
- HTTP Request with the settings from Route A. Open Options, add Batching, and set the batch size to 4 with an interval of 1000 ms. That keeps you well under 8 simultaneous calls even when other workflows share the key.
- Set node that extracts
choices[0].message.contentand the two usage numbers. - Google Sheets update writing the result and token counts back to the same row.
Cost check for this job. Suppose each row sends 700 tokens (instructions plus draft) and gets 300 tokens back. For 500 rows that is 350,000 input tokens and 150,000 output tokens. Input: 0.35 M x $0.15 = $0.0525. Output: 0.15 M x $0.50 = $0.075. Total $0.1275, about 13 cents for the entire batch. Even a trial balance of $0.50 covers it with room to spare, and failed or refused requests are not charged.
The pricing page shows how to scale this estimate to your own row sizes.
Concurrency, rate limits and retries
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 and 60. n8n will happily run items in parallel if a node is set up that way, so the limits are worth building in from the start.
- Use the HTTP Request batching option so the node sends a few items at a time with a pause between batches. On a trial key use a batch size of 1 or 2.
- Open the node Settings tab and enable Retry On Fail with 3 tries and a wait of 5000 ms. This matches the API's behaviour: on temporary overload it returns 429 with
Retry-After: 5, so a five-second wait is the right retry gap. - Tell the error codes apart.
rate_limitedmeans too many requests per minute and needs a slower pace.concurrencymeans too many at once and needs a smaller batch. - Set the workflow to continue on error for the HTTP node and branch failures to a separate path, so one bad row does not stop the other 499.
Streamed requests keep their concurrency slot until the stream ends, which matters if you proxy streams elsewhere. Inside n8n you rarely need them: the HTTP Request node waits for the finished response, so leave stream off there and keep the simple JSON answer.
Long context and streaming in n8n
The context window is 100,000 tokens, shared by prompt and completion. In n8n that opens a useful pattern: read a long document, such as a full draft or a transcript, and pass it in a single request instead of cutting it into chunks and stitching summaries together. The body limit is 8 MB, far more than a 100,000-token prompt needs, so the token window is the real ceiling.
Pay attention to cost per call rather than to the window itself. A 99,000-token prompt with a 1,000-token answer costs 99,000 x $0.15 / 1M = $0.01485 for input plus 1,000 x $0.50 / 1M = $0.0005 for output, so $0.01535 per call. Twenty such calls cost $0.307. That is cheap, but it is a hundred times the price of a short call, so avoid resending the same long text when a summary would do.
Real streaming makes sense when n8n sits behind a webhook that feeds a chat interface, with the stream handled by a service outside the workflow. For that, call the API directly from your front end or server code and use n8n for the surrounding automation. The API documentation covers the streaming format, including the usage block at the end of the stream.
Troubleshooting the usual failures
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 Unauthorized | Missing Bearer prefix or a stale key | Header value must be Bearer your-key |
| 404 Not Found | URL has a doubled path or lacks /v1 | Credential base URL ends at /v1; HTTP URL ends at /chat/completions |
| 429 on every run | Parallel items above the limit | Add batching, lower the batch size |
| Empty text downstream | Wrong expression path | Use choices[0].message.content |
| Model not found | Typo in model name | Type uncensored exactly, lowercase |
When something fails and you need help, note the X-Request-Id header from the failing call and send it through the support page. Turn on the HTTP node's option to include response headers if you want n8n to keep that value for you.
More guides
Questions and answers
Which n8n node should I use?
Use the HTTP Request node if you want full control and easy debugging. Use an OpenAI credential with a custom base URL if you rely on AI Agent or chain nodes.
What base URL do I enter in n8n?
Use https://api.unfilteredvideo.top/v1 in the OpenAI credential. In an HTTP Request node, add /chat/completions to the end of that URL.
How many requests can n8n send at once?
A full key allows 8 concurrent requests and 300 per minute, while a trial key allows 2 and 60. Use the batching option to stay below those numbers.
What happens when n8n hits a rate limit?
The API returns HTTP 429 with the code rate_limited or concurrency. On temporary overload it adds Retry-After: 5, so a retry after five seconds is the right setting.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.