繁中 ▾
Try with trial credit

Uncensored API Documentation

Start generating with our uncensored LLM API in seconds. This guide covers the OpenAI-compatible base URL, authentication, and core SDK examples for your BYOK workflows.

https://api.githubcopilotapikey.com/v1uncensored

Base URL and Authentication

Our API endpoint is HTTPS://api.githubcopilotapikey.com/v1, designed to work directly with standard OpenAI SDKs.

You authenticate by passing your unique API key in the Authorization header. This key is generated instantly upon signup via Google or email, with no phone number required. Each account holds one active key; generating a new one replaces the previous key immediately. We support streaming via SSE and standard JSON responses for all requests.

  • Base URL: https://api.githubcopilotapikey.com/v1
  • Header: Authorization: Bearer YOUR_API_KEY

This setup ensures compatibility with tools like Cursor and VS Code extensions that rely on standard OpenAI protocols.

First Request

Send your first prompt to the POST /v1/chat/completions endpoint to verify connectivity.

Use the model ID uncensored to access our large language model tuned for minimal content refusals. The base URL is HTTPS://api.githubcopilotapikey.com/v1, and you must include your API key in the authorization header. This endpoint accepts text input and returns text output, supporting up to 16,000 tokens per response.

curl https://api.githubcopilotapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Generate a python script to parse the provided log file"}]
  }'

If you receive a 401 error, your key is invalid or expired. A 402 error indicates insufficient prepaid credit. We charge $0.15 per 1M input tokens and $0.50 per 1M output tokens, with no hidden fees for errors.

Python SDK Integration

Integrate our API into your Python applications using the official OpenAI library.

Set the base_url to our endpoint and provide your API key. This approach works seamlessly with existing codebases that target OpenAI. The model ID remains uncensored, ensuring you interact with our specific uncensored model rather than GPT or Claude. Streaming is supported for real-time token generation.

from openai import OpenAI

client = OpenAI(base_url="https://api.githubcopilotapikey.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 method is ideal for developers building backend services or automating content generation pipelines without managing complex routing logic.

Node.js SDK Usage

Connect your Node.js applications to our API by configuring the base URL.

Use the uncensored model ID for all chat completions. Our API handles function calling and JSON mode, allowing you to structure responses effectively. The base URL is HTTPS://api.githubcopilotapikey.com/v1, and authentication requires your unique API key. This setup is compatible with tools like Cursor and other AI-enhanced IDEs.

import OpenAI from "openai";

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

Ensure your environment variables securely store the API key to prevent unauthorized usage of your prepaid credit.

Streaming and Token Usage

Enable streaming by setting stream: true in your request parameters.

The API returns chunks of text as they are generated, allowing for lower latency in user-facing applications. Token usage details, including input and output counts, are provided in the final chunk of the stream. This feature is crucial for applications requiring real-time feedback, such as chat interfaces or code assistants.

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 works with all standard parameters, including temperature and top-p, ensuring consistent behavior whether you are processing short prompts or long documents.

Limits, Errors, and Context

Our API enforces a 100,000-token context window for each request.

You can send up to 16,000 tokens in the completion, with a maximum request body size of 8 MB. Rate limits allow 300 requests per minute and 8 concurrent requests per key. Common errors include 401 for invalid keys, 402 for insufficient credit, and 429 for rate limiting. Prepaid credit never expires, and errors are free, ensuring you only pay for actual token usage.

Frequently asked questions

What is the base URL for the uncensored API?

The base URL is HTTPS://api.githubcopilotapikey.com/v1. It is compatible with standard OpenAI SDKs and requires your API key in the Authorization header.

How do I authenticate my requests?

Include your API key in the <code>Authorization: Bearer YOUR_API_KEY</code> header. Keys are generated instantly upon signup and replace any previous key for that account.

What happens if I run out of credit?

You will receive a 402 error indicating insufficient funds. Credit is prepaid via crypto and never expires, so you can top up at any time without losing your balance.

Get your key in one step

Sign up, copy the key, update your base URL. That’s it.