EN ▾
Get API key

Uncensored Video Generator API Quickstart Guide

This quickstart guide covers the uncensored text API layer for NSFW video pipelines, enabling prompt engineering and script generation without content filters.

Authentication & Headers

The API is hosted at https://api.uncensoredvideogenerator.com/v1 and uses standard OpenAI-compatible authentication. You must include your API key in the Authorization header as a bearer token. The model ID for all requests is uncensored. This model is an open-weight solution tuned for lawful adult use and does not refuse controversial or NSFW topics, though it blocks sexual content involving minors.

  • Base URL: https://api.uncensoredvideogenerator.com/v1
  • Header: Authorization: Bearer YOUR_API_KEY
  • Model: uncensored

Ensure your key is active; one key per account is allowed. New keys replace old ones immediately.

Basic Text Completion Request

Send a POST request to /v1/chat/completions with a system prompt defining your video pipeline role and a user message containing your script instructions. The API returns structured text output. This is ideal for generating scene descriptions or dialogue scripts.

The context window supports 100,000 tokens total (input + output). If you do not set max_tokens, the response can run to the end of the window.

Use the following curl command to test the endpoint:

curl https://api.uncensoredvideogenerator.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
  }'

Verify the response includes the generated text in the choices array. The uncensored llm api ensures your NSFW prompts are processed without unexpected refusals.

Python SDK Integration

For developers using Python, the official OpenAI SDK works seamlessly by pointing to our base URL. Initialize the client with your API key and the correct base URL to access the uncensored video generator text capabilities.

This approach is efficient for batch processing scripts or extracting metadata from video descriptions. The SDK handles JSON serialization automatically.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredvideogenerator.com/v1", api_key="YOUR_KEY")

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

Set model="uncensored" to ensure you are using the correct uncensored LLM. Adjust temperature for creative variance or seed for reproducibility in your video generation pipeline.

Node SDK Implementation

Node.js developers can use the OpenAI npm package with a custom base URL. This is useful for server-side script generation within Node applications.

Configure the client to point to https://api.uncensoredvideogenerator.com/v1. The chat completions api supports standard parameters like top_p and stop sequences.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredvideogenerator.com/v1", apiKey: process.env.API_KEY });

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);

Handle the response to extract the generated content. Since this is an api for nsfw video pipelines, ensure your Node environment handles the text output correctly for downstream video generation tools.

Streaming Responses for Real-Time Scripting

Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Each chunk contains partial text updates.

The final chunk includes token usage details for billing. This allows real-time display of generated scripts or prompts.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Parse the SSE stream to assemble the complete text. Token usage is provided in the last chunk, indicating the cost of the request. Errors during streaming may interrupt the flow, so implement reconnection logic if needed.

Rate Limits & Error Handling

Each API key is limited to 300 requests per minute and 8 concurrent requests. The maximum request body size is 8 MB. If you exceed these limits, the API returns a 429 status code.

Common errors include:

  • 401: Invalid or missing API key.
  • 402: Insufficient funds (credit exhausted).
  • 429: Rate limit exceeded.

Errors are free, so you are not charged for failed requests. For other errors, check the error.message field in the JSON response. Ensure your client handles retries appropriately for 429 errors.

Under the hood: specs

Everything the endpoint can and cannot do, in one place — check it before you top up.

FeatureSupport
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
MethodsPOST /v1/chat/completions · GET /v1/models
Model IDuncensored
Base URLhttps://api.uncensoredvideogenerator.com/v1
API keyBearer token in the Authorization header
Other parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Max context100,000 tokens, input and output combined
Structured outputresponse_format: {"type": "json_object"}
SSE streamingSupported (stream: true), usage included at the end
Requests per minute300 requests per minute per key
Max body8 MB request body
Parallel requests8 requests at the same time per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Bonus credit+5% from $50, +10% from $100, +15% from $200
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
How you payprepaid credit, charged by real token usage; errors and refusals are free
Credit expirypaid credit never expires, no subscription
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Trial credit$0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Contentadult content allowed; sexual content involving minors is refused
Keysone active key per account; a new key replaces the old one
Sign-inGoogle or e-mail and password

Errors and what to do

Errors come back as JSON with a stable type; failed and refused requests are not billed.

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditbalance is empty — top up, requests resume at once
403content_blockedsexual content involving minors — refused, not billed
404not_foundonly /v1/chat/completions and /v1/models exist
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

How do I top up my credit?

You can top up using crypto only: USDT (TRC20) or USDC (Base). Minimum top-up is $20, maximum is $500. You receive a 5% bonus for $50+ and a 10% bonus for $100+.

Is there a free trial?

Yes, new accounts receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page. No credit card is required to sign up via Google or email.

What is the context window size?

The model supports a 100,000 token context window, combining both input and output tokens. There is no separate output cap.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key