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.
| Feature | Support |
|---|---|
| API format | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.unrestrictedvideo.top/v1 |
| Model | uncensored |
| API key | Authorization: Bearer YOUR_KEY |
| Endpoints | POST /v1/chat/completions · GET /v1/models |
| Structured output | JSON object mode via response_format json_object |
| Other parameters | temperature, top_p, stop, seed and the two penalties are passed through |
| Tools / tool calls | Yes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool |
| SSE streaming | Supported (stream: true), usage included at the end |
| Completion length | up to the rest of the 100,000-token window; max_tokens optional (no separate cap) |
| Max context | 100,000 tokens (prompt + completion together) |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Parallel requests | 8 requests at the same time per key |
| Requests per minute | 300/min per key |
| Max body | 8 MB request body |
| Subscription | paid 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-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Bonus credit | +5% on $50+, +10% on $100+, +15% on $200+ |
| Billing | prepaid credit, charged by real token usage; errors and refusals are free |
| Content | uncensored for adults; the only hard rule: no sexual content involving minors |
| Key management | one key per account, regenerate any time (the old one stops working) |
| Account | sign 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.
| Code | Type | Meaning |
|---|---|---|
400 | bad_request | invalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend |
401 | missing_key · invalid_key · key_revoked | no key, wrong key, or a key replaced by a newer one |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | sexual content involving minors — refused, not billed |
404 | not_found | unknown endpoint |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | model 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