EN ▾
Get API key

API Documentation: Chat Completions for Video Pipelines

Get started with the uncensored video generator API in minutes. This guide covers authentication, core endpoints, and streaming for prompt engineering and script generation in your video pipeline.

Base URL and Authentication

The API is hosted at https://api.uncensoredvideogenerator.cc/v1. It uses standard OpenAI-compatible authentication via an API key. You generate this key on the Get API key page by continuing with Google or using an email and password. The key is shown immediately upon creation.

One active key is allowed per account; generating a new key replaces the old one. There is no phone number requirement for signup, and credit never expires. Pass the key in the Authorization header as a Bearer token. This setup ensures your text layer integrates directly with existing video generation stacks without subscription locks.

First Request

Send a POST request to /v1/chat/completions to generate prompts or scripts. The model ID is uncensored. This endpoint handles the intelligent text layer for your uncensored video generator workflow, allowing you to write detailed scene descriptions without content filters blocking lawful adult or controversial topics.

Below is a basic example using cURL to initiate a chat completion.

curl https://api.uncensoredvideogenerator.cc/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."}]
  }'

The response returns structured text ready for your video rendering pipeline.

Python SDK Integration

Use the official OpenAI Python SDK to interact with the API. Configure the base_url to point to our endpoint and set your API key. This approach is ideal for backend services or automated script generation tools.

The following snippet demonstrates initializing the client and sending a request to generate an NSFW video prompt.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredvideogenerator.cc/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)

Ensure you handle the response object to extract the generated text for your pipeline.

Node SDK Integration

For JavaScript or TypeScript environments, use the OpenAI Node SDK. Set the baseURL to our base URL and provide your API key. This is useful for web-based video pipelines or serverless functions.

Here is how to initialize the client and request a script.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.uncensoredvideogenerator.cc/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);

The response contains the generated text, which you can then pass to your video rendering engine.

Streaming Responses

Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE), allowing you to process tokens as they are generated. This is critical for long script writing or metadata extraction where latency matters.

The following example shows how to handle streaming responses in code.

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)

Note that token usage statistics are included in the last chunk of the stream.

Rate Limits, Errors, and Context

Your 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, you will receive a 429 error.

Authentication failures return a 401 error if the key is invalid. The context window supports 100,000 tokens total (prompt + completion), with no separate output cap. Errors and refusals are free, so you are only charged for successful token usage. Credit never expires, and you can top up via crypto at any time.

What the API supports

The numbers below are the real limits of this API, not marketing. Compare them with what your app needs.

ParameterDetails
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Modeluncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.uncensoredvideogenerator.cc/v1
API keyBearer token in the Authorization header
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Structured outputresponse_format: {"type": "json_object"}
Max context100,000 tokens, input and output combined
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
SSE streamingYes — server-sent events; the last chunk carries token usage
Rate limit300/min per key
Request size8 MB request body
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requests8 requests at the same time per key
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Credit expirypaid credit never expires, no subscription
Billingpay as you go from prepaid credit; nothing is charged for failed or refused requests
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Accountsign in with Google or with e-mail + password
Key managementone active key per account; a new key replaces the old one
Content policyuncensored for adults; the only hard rule: no sexual content involving minors

Error codes

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

StatusTypeReason
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largerequest body larger than 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

Does the API support image or video generation?

No. The API is a text chat-completions endpoint only. It provides the intelligent text layer for your video pipeline, such as prompt writing and script generation, but does not render images or video itself.

What happens if I make a request that is refused due to content?

Refusals are free. You are only charged for tokens in successful responses. The only hard content limit is sexual content involving minors, which is always blocked.

Can I use multiple API keys?

No. Each account allows only one active key. Generating a new key replaces the old one immediately. If you need a new key, simply generate one from the dashboard.

Your key is one form away

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

Get API key