EN ▾

Integrate the Uncensored Text API into Your Video Pipeline

Connect the uncensored text API to your video generation workflow. Use our OpenAI-compatible endpoint to write prompts, generate scripts, and structure metadata without content refusals.

Base URL and Authentication

Start by pointing your client to https://api.unrestrictedvideo.top/v1. The service accepts standard headers. Include your API key in the Authorization header as a bearer token. Every request must include this header. The system validates the key against your account. If the key is missing or invalid, the API returns a 401 error. If your prepaid credit is exhausted, it returns a 402 error. This ensures you only pay for actual token usage.

Sending Your First Request

Send a POST request to /v1/chat/completions. Define the model as uncensored and provide a messages array. The model processes text input and returns text output. It does not generate video files or images. Use this endpoint to draft scripts or refine prompts for your video pipeline. The context window supports 100,000 tokens total. There is no separate output cap.

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

Python SDK Integration

Use the official OpenAI Python library. Configure the base URL to point to our server. Set the model to uncensored. This allows you to use familiar methods like client.chat.completions.create. The library handles the JSON formatting automatically. Pass your API key via environment variables or directly in the client initialization. This approach simplifies integration into existing Python-based video tools.

from openai import OpenAI

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

Node.js SDK Integration

Initialize the OpenAI Node.js client with the custom base URL. Specify the model ID as uncensored. This setup works with any OpenAI-compatible client. You can send prompts for script generation or caption writing. The SDK manages the request lifecycle. Ensure you handle the response data to extract the generated text. This method is ideal for server-side logic in Node.js environments.

import OpenAI from "openai";

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

Streaming Responses for Real-Time Scripting

Enable streaming by setting stream to true. The API returns data via Server-Sent Events (SSE). You receive chunks of text as they are generated. This reduces perceived latency for long scripts. The final chunk includes token usage statistics. Use this for live preview features in your pipeline. It ensures smooth user experiences when generating lengthy content.

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)

Parameters: Temperature and Top P

Control creativity with temperature and top_p. Higher values increase randomness. Lower values make outputs more deterministic. Use these to fine-tune script tone or metadata accuracy. You can also set stop sequences to halt generation at specific points. Adjust seed for reproducible results. These parameters give you precise control over the text output.

API facts in one table

One table with every limit, feature and price that applies to your key.

FeatureSupport
API formatOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
Base URLhttps://api.unrestrictedvideo.top/v1
Modeluncensored
API keyAuthorization: Bearer YOUR_KEY
EndpointsPOST /v1/chat/completions · GET /v1/models
Structured outputJSON object mode via response_format json_object
Other parameterstemperature, top_p, stop, seed and the two penalties are passed through
Tools / tool callsYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
SSE streamingSupported (stream: true), usage included at the end
Completion lengthup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Max context100,000 tokens (prompt + completion together)
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requests8 requests at the same time per key
Requests per minute300/min per key
Max body8 MB request body
Subscriptionpaid credit never expires, no subscription
Trial credit$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Token prices$0.15 per 1M input tokens · $0.50 per 1M output tokens
Top-upUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Bonus credit+5% on $50+, +10% on $100+, +15% on $200+
Billingprepaid credit, charged by real token usage; errors and refusals are free
Contentuncensored for adults; the only hard rule: no sexual content involving minors
Key managementone key per account, regenerate any time (the old one stops working)
Accountsign in with Google or with e-mail + password

When a request fails

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

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busymodel busy — retry in a few seconds

Questions and answers

What happens if my API key is invalid or expired?

The API returns a 401 Unauthorized error. You must check your account dashboard to verify the key status. Generate a new key if the old one is revoked.

Why do I get a 402 error?

This indicates your prepaid credit is exhausted. Tokens are charged per request. Top up via crypto to resume service. Errors and refusals do not consume credit.

Is there a rate limit?

Yes, you are limited to 300 requests per minute and 8 concurrent requests per key. Exceeding this triggers a 429 Too Many Requests error. Use a single key per account for simplicity.

Your key is one form away

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

Get API key