API Quickstart for Video Text Generation
Integrate the uncensored text-completion engine into your video generation pipeline with standard OpenAI-compatible endpoints. This quickstart covers authentication, structured outputs, and streaming for prompt engineering and script generation.
Base URL and Authentication
Connect to the API using the standard OpenAI-compatible base URL: https://api.unrestrictedvideogenerator.com/v1. Pass your API key in the Authorization header. The model identifier is uncensored. This endpoint handles all text-in, text-out requests for your video pipeline's creative layer.
Authentication: Use a Bearer token. If the key is invalid, the API returns a 401 error. If your prepaid credit is exhausted, you receive a 402 error. Requests are charged based on actual token usage; errors do not consume credit.
First Request
Send a standard chat completion request to generate prompts or scripts. The system accepts standard parameters like temperature and top_p. The model does not refuse lawful adult, fictional, or controversial topics, ensuring your automated pipeline proceeds without unexpected content blocks.
Note: The model is not GPT, Claude, or any other vendor's model. It is an open-weight model tuned for uncensored output.
curl https://api.unrestrictedvideogenerator.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 structure matches the OpenAI SDK format. You can use any OpenAI-compatible client by updating the base URL and API key.
Python SDK Integration
Use the official OpenAI Python library to interact with the API. Point the client to our base URL and supply your API key. This approach allows you to leverage existing ecosystem tools for prompt engineering and script generation.
Configuration: Set base_url to https://api.unrestrictedvideogenerator.com/v1 and api_key to your key from the dashboard. The model name is uncensored.
from openai import OpenAI
client = OpenAI(base_url="https://api.unrestrictedvideogenerator.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)This code snippet demonstrates a basic text completion request. Adjust parameters like max_tokens to control output length within your context window limits.
Node SDK Integration
Integrate with Node.js applications by configuring the OpenAI SDK to point to our endpoint. This is ideal for backend services that process video metadata or generate captions.
Setup: Initialize the OpenAI client with the correct base URL and API key. The model field should be set to uncensored.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unrestrictedvideogenerator.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 responses as standard JSON objects. The API supports standard error codes for authentication and billing issues, making debugging straightforward.
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE) for real-time token delivery. This is useful for displaying generated scripts or prompts progressively in your application interface.
Usage: The last chunk contains the total token usage for billing. Ensure your client handles SSE streams correctly to avoid memory leaks.
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)Streaming does not affect pricing or limits; tokens are charged based on actual output. Use this for better user experience in web-based video tools.
Rate Limits and Constraints
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 error. Implement exponential backoff in your client to handle rate limits gracefully.
Context Window: The total context window is 100,000 tokens (input + output). There is no separate output cap, so output can use the rest of the window. If max_tokens is not set, the response can run to the end of the window.
Account Limits: One active key per account. A new key replaces the old one. Errors and refusals (except for the hard content limit) are free. Prepaid credit never expires.
What the API supports
Before you integrate, here is exactly what you get with a key.
| Item | Value |
|---|---|
| Protocol | OpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key |
| Base URL | https://api.unrestrictedvideogenerator.com/v1 |
| Model | uncensored |
| Authentication | Bearer token in the Authorization header |
| Methods | POST /v1/chat/completions · GET /v1/models |
| Structured output | JSON object mode via response_format json_object |
| SSE streaming | Yes — server-sent events; the last chunk carries token usage |
| Max context | 100,000 tokens (prompt + completion together) |
| Other parameters | temperature, top_p, stop, seed, presence_penalty, frequency_penalty |
| Function calling | Supported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages |
| Max output | prompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap |
| Parallel requests | up to 8 in parallel per key |
| Headers | X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency |
| Rate limit | 300 requests per minute per key |
| Max body | 8 MB request body |
| 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 |
| Billing | pay as you go from prepaid credit; nothing is charged for failed or refused requests |
| Subscription | no monthly fee; paid credit does not expire |
| Token prices | input $0.15 / 1M tokens, output $0.50 / 1M tokens |
| Volume bonus | +5% from $50, +10% from $100, +15% from $200 |
| Top-up | USDT (TRC20) or USDC (Base), any whole amount from $20 to $500 |
| Content policy | uncensored for adults; the only hard rule: no sexual content involving minors |
| Keys | one active key per account; a new key replaces the old one |
| Account | Google or e-mail and password |
When a request fails
The type field is stable, the message is for humans. Errors cost nothing.
| Status | Type | Reason |
|---|---|---|
400 | bad_request | malformed request or too long for the context window |
401 | missing_key · invalid_key · key_revoked | check the Authorization header or use your current key |
402 | no_credit | out of credit; add credit and retry |
403 | content_blocked | refused by the content policy |
404 | not_found | only /v1/chat/completions and /v1/models exist |
413 | request_too_large | body over 8 MB |
429 | rate_limited · concurrency | slow down: rate or parallel limit reached |
503 | upstream_busy | temporary overload, retry shortly |
Questions and answers
What happens if I run out of credit?
The API returns a 402 error. You can top up using crypto (USDT on TRC20 or USDC on Base) to continue using the service. Credit is charged by real token usage, and errors do not consume credit.
Is the model GPT-4 or another vendor model?
No. The model is an open-weight model run on our own servers, tuned for uncensored output. It is not GPT, Claude, Gemini, or any other vendor's model. It is compatible with their API format but is a distinct model.
How do I handle streaming responses in Node.js?
Set stream: true in your request. The API returns Server-Sent Events (SSE). Use a standard SSE parser in your Node.js client to handle the stream. The last chunk contains the token usage for billing.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.