Build with QbitRaw.
Everything you need to connect an app, an agent or your own code to the API.
Introduction
QbitRaw is one API for several uncensored language models. It speaks the OpenAI Chat Completions format and the Anthropic Messages format, so most tools work by changing a URL and a key.
| Item | Value |
|---|---|
| OpenAI base URL | https://api.qbitraw.com/v1 |
| Anthropic base URL | https://api.qbitraw.com (no /v1) |
| Auth | Authorization: Bearer sk-… |
| Models | see models and pricing |
Quickstart
- Create an account and add credit to your balance.
- Open the dashboard and generate an API key. It starts with
sk-. Copy it now. - Send your first request:
curl https://api.qbitraw.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-uncensored",
"max_tokens": 1000,
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.qbitraw.com/v1", api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
model="deepseek-v4.1-flash-uncensored",
max_tokens=1000,
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)The DeepSeek models reason before they answer, and the reasoning counts toward max_tokens. A tiny limit like 8 can end with an empty reply. Use 1,000 or more.
Authentication
Send your key as a bearer token on every request:
Authorization: Bearer sk-your-key
- Create, rename and delete keys in the dashboard. Deleting a key stops it immediately.
- Give each app its own key and set a spending cap on it.
- Never put a key in client-side code or a public repository. If one leaks, delete it and make a new one.
Chat completions
POST /v1/chat/completions sends a conversation and returns the model's reply.
| Parameter | Type | Description |
|---|---|---|
model | string | A model ID from the models page. Required. |
messages | array | Objects with role (system, user, assistant) and content. Required. |
max_tokens | integer | Output limit, including any hidden reasoning. Use 1,000 or more for DeepSeek. |
temperature | number | 0 to 2. Lower is more focused, higher is more creative. |
top_p | number | Nucleus sampling, 0 to 1. |
stream | boolean | Set true to receive the reply as it is written. |
tools | array | Function definitions for tool calling. Best supported on DeepSeek. |
user | string | Optional anonymous ID of your end user. See safety. |
Example response
{
"id": "chatcmpl-…",
"object": "chat.completion",
"model": "deepseek-v4.1-flash-uncensored",
"choices": [{
"index": 0,
"message": { "role": "assistant", "content": "Hello! How can I help?" },
"finish_reason": "stop"
}],
"usage": { "prompt_tokens": 9, "completion_tokens": 48, "total_tokens": 57 }
}usage is what you are billed for. For models that think, completion_tokens includes the hidden reasoning.
Streaming
Add "stream": true and the API sends server-sent events, one chunk per piece of text, ending with data: [DONE]. The OpenAI SDKs handle this for you.
stream = client.chat.completions.create(
model="deepseek-v4.1-flash-uncensored-fast",
messages=[{"role": "user", "content": "Write a haiku about rain."}],
max_tokens=500,
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")Images
Two image models, each at a flat $0.10 per image with no token fees. They use the OpenAI image endpoints, so the OpenAI SDKs work.
| Model | Endpoint | Use |
|---|---|---|
qwen-image-3-uncensored | POST /v1/images/generations | Make an image from a prompt |
qwen-edit-uncensored | POST /v1/images/edits | Edit up to 3 reference images with an instruction |
Generate an image
curl https://api.qbitraw.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-3-uncensored",
"prompt": "A lighthouse on a cliff at sunset, detailed oil painting",
"size": "1024x1024",
"n": 1
}'| Parameter | Description |
|---|---|
prompt | What to draw. Keep it under about 1,500 characters. |
n | How many images, 1 to 4. You pay $0.10 for each one. |
size | 1024x1024 (default), 1024x1536, 1536x1024, 1024x1792, 1792x1024, 512x512 or auto. |
response_format | b64_json (default) returns the image as base64 text. url returns it as a data URL. |
The picture is in data[0].b64_json. Decode it and save it as a PNG.
import base64
from openai import OpenAI
client = OpenAI(base_url="https://api.qbitraw.com/v1", api_key="YOUR_API_KEY")
img = client.images.generate(
model="qwen-image-3-uncensored",
prompt="A lighthouse on a cliff at sunset, detailed oil painting",
size="1024x1024",
)
open("lighthouse.png", "wb").write(base64.b64decode(img.data[0].b64_json))Edit an image
Send the picture or pictures as files, plus an instruction in prompt.
curl https://api.qbitraw.com/v1/images/edits \ -H "Authorization: Bearer YOUR_API_KEY" \ -F model=qwen-edit-uncensored \ -F "image[][email protected]" \ -F prompt="Make the sky a deep orange sunset"
The chat models take text only for now. To work with pictures, use the two image models above.
List models
GET /v1/models returns every model your key can use. Apps call this when you press refresh models.
curl https://api.qbitraw.com/v1/models \ -H "Authorization: Bearer YOUR_API_KEY"
Anthropic format
For tools that speak the Anthropic Messages API, such as Claude Code and the Anthropic SDKs. The base URL is https://api.qbitraw.com, and the endpoint is POST /v1/messages. Requests use the same models and the same balance. Claude model names are not served here. Always use a QbitRaw model ID.
curl https://api.qbitraw.com/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-uncensored",
"max_tokens": 1000,
"messages": [{"role": "user", "content": "Hello!"}]
}'Usage and billing
- Billing is prepaid. Each request deducts
tokens × pricefrom your balance, using the prices on the models page. - Input and output tokens are priced separately. Reasoning tokens count as output.
- Images are billed per picture: $0.10 each, with no token fees.
- The dashboard shows usage per request: time, key, model, tokens and cost.
- When your balance reaches zero, requests are refused until you add credit.
- Credit is non-refundable. See the refund policy.
Errors
| Status | Meaning | What to do |
|---|---|---|
400 | Bad request | Check the JSON and the parameter names. |
401 | Invalid key | The key is wrong or was deleted. Create a new one. |
402 / 403 | No balance or key blocked | Add credit, or check the key's spending cap and status. |
404 | Model not found | Copy the model ID exactly from the models page. |
429 | Rate limit | Wait a moment and retry. Use exponential backoff. |
5xx | Provider problem | Retry. If it continues, try another model. |
Hermes Agent
Hermes talks to any OpenAI-compatible endpoint, so QbitRaw works as a custom provider.
In the Hermes app
- Create a key in the dashboard and copy the
sk-…value. - Open Hermes, then Settings → Providers → add a Custom endpoint.
- Name:
QbitRaw. Base URL:https://api.qbitraw.com/v1. API key: your key. - Press refresh models and pick
deepseek-v4.1-flash-uncensored.
The base URL must end in /v1 with no trailing slash. The key must be the full sk-… string with no spaces. The model field must be a real model ID, not a placeholder.
Or edit the config file
Files live in %LOCALAPPDATA%\hermes\ on Windows and ~/.hermes/ on macOS and Linux. Add a provider to config.yaml and keep the key in .env.
providers:
qbitraw:
name: QbitRaw
base_url: https://api.qbitraw.com/v1
model: deepseek-v4.1-flash-uncensored
discover_models: true
models:
deepseek-v4.1-flash-uncensored: {}
key_env: HERMES_PROVIDER_QBITRAW_API_KEYHERMES_PROVIDER_QBITRAW_API_KEY=YOUR_API_KEY
Restart Hermes and choose QbitRaw from the provider list. For agent work, use a DeepSeek model, which handles tool calls best.
Claude Code
Claude Code uses the Anthropic format. Set these environment variables, then run claude. The base URL has no /v1.
$env:ANTHROPIC_BASE_URL = "https://api.qbitraw.com" $env:ANTHROPIC_AUTH_TOKEN = "YOUR_API_KEY" $env:ANTHROPIC_MODEL = "deepseek-v4.1-flash-uncensored" $env:ANTHROPIC_SMALL_FAST_MODEL = "deepseek-v4.1-flash-uncensored" claude
export ANTHROPIC_BASE_URL="https://api.qbitraw.com" export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY" export ANTHROPIC_MODEL="deepseek-v4.1-flash-uncensored" export ANTHROPIC_SMALL_FAST_MODEL="deepseek-v4.1-flash-uncensored" claude
Claude model names are not served here, so always use a QbitRaw model ID. Claude Code depends on tool calls, so pick a DeepSeek model.
Cursor
- Open Settings → Models.
- Under the OpenAI API key section, paste your
sk-…key. - Turn on Override OpenAI Base URL and enter
https://api.qbitraw.com/v1. - Click Add model and type a model ID, for example
deepseek-v4.1-flash-uncensored.
Cline, Roo Code and Kilo Code
- Open the extension settings in VS Code.
- Set API Provider to OpenAI Compatible.
- Base URL:
https://api.qbitraw.com/v1. API Key: your key. - Model ID:
deepseek-v4.1-flash-uncensored.
Continue
Add a model to your Continue config.yaml:
models:
- name: QbitRaw
provider: openai
model: deepseek-v4.1-flash-uncensored
apiBase: https://api.qbitraw.com/v1
apiKey: YOUR_API_KEYAider
$env:OPENAI_API_BASE = "https://api.qbitraw.com/v1" $env:OPENAI_API_KEY = "YOUR_API_KEY" aider --model openai/deepseek-v4.1-flash-uncensored
export OPENAI_API_BASE="https://api.qbitraw.com/v1" export OPENAI_API_KEY="YOUR_API_KEY" aider --model openai/deepseek-v4.1-flash-uncensored
The openai/ prefix tells Aider to use the OpenAI-compatible route. The part after it is the model ID.
Open WebUI
- Go to Admin Panel → Settings → Connections.
- Under OpenAI API, click + to add a connection.
- URL:
https://api.qbitraw.com/v1. Key: yoursk-…key. Save. - The models appear in the model picker.
SillyTavern
- Open API Connections (the plug icon).
- Set API to Chat Completion and Chat Completion Source to Custom (OpenAI-compatible).
- Custom Endpoint (Base URL):
https://api.qbitraw.com/v1. - Paste your key, choose a model or type its ID, then click Connect.
Any other app
LangChain, n8n, scripts or your own code: anything that supports a custom OpenAI base URL works. The values are always the same.
| Base URL | https://api.qbitraw.com/v1 |
| API key | your sk-… key |
| Model | any ID from the models page |
Safety and rules
You are responsible for what is sent through your keys. The full rules are in the acceptable use policy. In short, no illegal content, and especially nothing sexual involving minors.
- Building an app for other people? Send a stable, anonymous ID for each of your end users in the
userfield, such as a hash of your internal user ID. Never send a name, email or phone number. If one of your users breaks the rules, this lets us and the model provider act on that person instead of on your whole account. - Add your own terms and moderation. If you run a platform on top of the API, your users should agree to rules at least as strict as ours.
- Report a problem or abuse to [email protected].