Base URL and Authentication
The API is hosted at https://api.unfilteredvideo.cc/v1. It follows the standard OpenAI chat completions interface. You authenticate by including your API key in the Authorization header as a Bearer token. Your key is generated immediately upon signup via Google or email. Ensure you pass the exact key string; typos will result in 401 errors.
Sending Your First Request
Make a POST request to /v1/chat/completions with your model ID uncensored. The model generates text without refusals for lawful adult content. You can specify parameters like temperature to control creativity. This endpoint handles prompt writing, script generation, and metadata extraction for your video assets.
curl https://api.unfilteredvideo.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."}]
}'
Python SDK Integration
Use the official OpenAI Python client. Set the base URL to our endpoint and provide your API key. This allows you to use familiar methods like chat.completions.create(). The client handles JSON serialization and HTTP requests. Configure the model ID to uncensored to ensure you are using our specific uncensored LLM.
from openai import OpenAI
client = OpenAI(base_url="https://api.unfilteredvideo.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)
Node.js SDK Usage
Initialize the OpenAI Node.js client with our base URL. Pass your API key for authentication. Use the chat.completions.create method with the uncensored model. This approach works well for server-side script generation or post-processing tasks in your video pipeline. Ensure your Node environment supports the required fetch API.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unfilteredvideo.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);
Streaming Responses
Enable streaming by setting stream: true in your request. The API returns Server-Sent Events (SSE). You receive chunks of text as they are generated. The final chunk contains token usage statistics. This is useful for displaying real-time script drafts or progress indicators in your application interface.
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)
Rate Limits and Errors
Each API key is limited to 300 requests per minute. The maximum concurrent requests per key is 8. If you exceed this, you will receive a 429 error. Use a 401 error to indicate an invalid key. A 402 error means your prepaid credit is exhausted. The context window is 100,000 tokens total, and the response can run to the end of the window. Errors and refusals do not consume credit.