caveira API
caveira’s models from your own code. The API speaks the OpenAI chat completions format, so anything that takes an OpenAI base URL and key works with it: your scripts, and tools like Cursor, Cline, OpenCode and Aider.
Start
- Sign in and open Settings → API. Any account can use the API, a free one too.
- Add credits: $10, $25, and $100, or another amount from $10. The API is paid by the token from these, apart from any plan.
- Create a key. It starts with
sk-cav-and is shown once, so copy it then. - Send requests to
https://api.caveira.app/v1with the key as a Bearer token.
curl https://api.caveira.app/v1/chat/completions \
-H "Authorization: Bearer $CAVEIRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "caveira",
"messages": [{"role": "user", "content": "Write a TCP port scanner in Go."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.caveira.app/v1", api_key="sk-cav-...")
stream = client.chat.completions.create(
model="caveira",
messages=[{"role": "user", "content": "Explain this crash dump."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.caveira.app/v1', apiKey: process.env.CAVEIRA_API_KEY });
const reply = await client.chat.completions.create({
model: 'caveira',
messages: [{ role: 'user', content: 'Review this function for memory bugs.' }],
});
console.log(reply.choices[0].message.content);Endpoints
GET /v1/modelslists the models, each with its context window and its price.POST /v1/chat/completionsanswers a conversation, whole or streamed (stream: true), with tool calls.
A request takes model, messages (text and, on models that read them, images), tools, tool_choice, parallel_tool_calls, stream, max_tokens, temperature, top_p, stop, seed, presence_penalty, frequency_penalty, response_format and reasoning_effort. Any other field is ignored. One reply is at most 65,536 tokens. A streamed reply always ends with its token counts.
There are no embeddings, images, audio or batch endpoints.
Models and prices
Model names are caveira’s own. Every model is an uncensored build of an open-weight model, and each is open to every key. Prices are in US dollars per million tokens: what the model costs us to run, plus 20%. Input the provider read from its cache is charged at the lower cached price.
caveira, the model that picks for you
Ask for caveira and caveira picks one of GLM-5.3 Flash, Inkling 2 Mini Cyber, Qwen3.8 27B, GLM-5.3, and Kimi K3.1 Pro Cyber for each conversation: the cheapest that can do the job, and a stronger one when it gets hard. The request is charged at the price of the model it picked, and your usage history shows which one that was. To keep a conversation on one pick, and on one provider’s cache, send the same x-caveira-session-id header with each of its requests.
| Model | Name to send | Context | Input | Cached input | Output |
|---|---|---|---|---|---|
| caveira | caveira | 262K | the price of the model it picks | ||
| Kimi K3.1 Pro Cyberimages | kimi-k3.1-pro-cyber | 1M | $2.40 | $0.42 | $6.00 |
| GLM-5.3 | glm-5.3 | 1M | $0.864 | $0.1296 | $1.728 |
| Inkling 2 Mini Cyberimages | inkling-2-mini-cyber | 1M | $0.24 | $0.06 | $0.60 |
| Qwen3.8 27Bimages | qwen-3.8-27b | 262K | $1.20 | $0.264 | $3.60 |
| GLM-5.3 Flashimages | qwen-3.5 | 262K | $0.0938 | $0.0094 | $0.3284 |
| GLM-5.3 Flash Abliterated | glm-5.3-flash-alt | 262K | $0.0938 | $0.0094 | $0.3284 |
| DeepSeek V4.1 Flashimages | deepseek-v4.1-flash | 1M | $0.396 | $0.0099 | $1.584 |
| DeepSeek V4.1 Flash Hereticimages | deepseek-v4.1-flash-heretic | 512K | $0.2376 | $0.0158 | $0.9504 |
| MiMo V2.6 Flashimages | mimo-v2.6-flash | 1M | $0.60 | $0.2394 | $1.80 |
| GLM-5.3 Cyber Abliterated | glm-5.3-cyber | 1M | $0.864 | $0.1296 | $1.728 |
| Gemma 4 26Bimages | gemma-4-26b | 256K | $0.144 | $0.072 | $0.456 |
| Cyber Zero 1.5 | cyber-zero-1.5 | 999K | $3.60 | $0.90 | $9.00 |
| Abliteration Modelimages | abliteration-model | 262K | $1.20 | $0.12 | $3.60 |
| Abliteration Large | abliteration-large | 1M | $3.60 | $0.36 | $6.00 |
| Abliteration Large V2 | abliteration-large-v2 | 1M | $3.60 | $0.36 | $6.00 |
| Abliteration Large Flashimages | abliteration-large-flash | 1M | $1.20 | $0.12 | $2.40 |
| CyberHeabsy | cyberheabsy | 1M | $1.80 | $0.33 | $5.40 |
| DeepSeek R1 Distill Llama 70B Abliterated | deepseek-r1-llama-70b-abliterated | 16K | $0.84 | $0.42 | $0.84 |
| DeepSeek R1 Distill Qwen 32B Abliterated | deepseek-r1-qwen-32b-abliterated | 16K | $1.68 | $0.84 | $1.68 |
| DeepSeek V4.1 Flash 0910 Uncensoredimages | deepseek-v4.1-flash-0910 | 524K | $0.396 | $0.0099 | $1.584 |
| DeepSeek V4.1 Flash 1017 Abliterated | deepseek-v4.1-flash-abliterated-1017 | 1M | $0.45 | $0.009 | $1.80 |
| DeepSeek V4.1 Flash Abliterated CSF | deepseek-v4.1-flash-csf | 1M | $0.378 | $0.0252 | $1.26 |
| DeepSeek V4.1 Flash Abliterated | deepseek-v4.1-flash-abliterated | 262K | $0.3564 | $0.0792 | $1.254 |
| DeepSeek V4.1 Flash Uncensoredimages | deepseek-v4.1-flash-uncensored | 1M | $0.396 | $0.0099 | $1.584 |
| Qwen3.5 9B Heretic | qwen-3.5-9b-heretic | 33K | $0.336 | $0.168 | $0.336 |
| Gemma 4 26B Cybersecurityimages | gemma-4-26b-cybersecurity | 262K | $0.1267 | $0.0634 | $0.4013 |
| Gemma 4 26B Uncensored TEE | gemma-4-26b-tee | 66K | $0.18 | $0.06 | $0.84 |
| Gemma 4 31B Gembrain Hereticimages | gemma-4-31b-gembrain | 262K | $0.3672 | $0.1836 | $0.3672 |
| Gemma 4 Uncensoredimages | gemma-4-26b-uncensored | 256K | $0.195 | $0.195 | $0.60 |
| GLM-4.6 Derestricted | glm-4.6-derestricted | 131K | $0.48 | $0.24 | $1.80 |
| GLM-5.3 Abliterated | glm-5.3-abliterated | 262K | $0.5148 | $0.198 | $1.7424 |
| Apex Flash 1 Abliteratedimages | apex-flash-1 | 1M | $0.18 | $0.09 | $0.60 |
| GLM-5.3 Flash Cybersecurityimages | glm-5.3-flash-cybersecurity | 1M | $0.18 | $0.09 | $0.60 |
| Kimi K3.1 Pro Abliterated | kimi-k3.1-pro-abliterated | 1M | $4.80 | $4.80 | $18.00 |
| Llama 3.3 70B Abliterated | llama-3.3-70b-abliterated | 33K | $0.84 | $0.42 | $0.84 |
| Llama 3 70B Abliterated | llama-3-70b-abliterated | 8K | $0.84 | $0.42 | $0.84 |
| MiMo V2.6 Flash Abliteratedimages | mimo-v2.6-flash-abliterated | 1M | $0.60 | $0.33 | $1.80 |
| NeuralDaredevil 8B Abliterated | neuraldaredevil-8b | 8K | $0.528 | $0.264 | $0.528 |
| GLM-4.7 Flash Heretic | glm-4.7-flash-heretic | 200K | $0.084 | $0.042 | $0.48 |
| DeepSeek V4.1 Flash Cyberimages | deepseek-v4.1-flash-cyber | 1M | $0.96 | $0.18 | $1.92 |
| GLM-5.3 Cyber | glm-5.3-orcacyber | 999K | $3.60 | $0.36 | $6.00 |
| GLM-5.3 Flash Cyberimages | glm-5.3-flash-cyber | 1M | $0.96 | $0.18 | $1.92 |
| Hy4 Cyber | hy4-cyber | 1M | $0.96 | $0.18 | $1.92 |
| Hy4 Flash Cyberimages | hy4-flash-cyber | 1M | $0.084 | $0.0036 | $0.3372 |
| Ling 3.2 Flash Cyberimages | ling-3.2-flash-cyber | 1M | $0.72 | $0.144 | $2.16 |
| MiMo V2.6 Flash Cyber | mimo-v2.6-flash-cyber | 1M | $0.96 | $0.18 | $1.92 |
| MiniMax M3.1 Flash Cyber | minimax-m3.1-flash-cyber | 262K | $0.96 | $0.18 | $1.92 |
| Qwen3.8 Flash Next Cyberimages | qwen-3.8-flash-next-cyber | 262K | $0.96 | $0.18 | $1.92 |
| Step 5 Preview Cyberimages | step-5-preview-cyber | 999K | $2.40 | $0.24 | $6.48 |
| Cyber Ultra 1.0 | cyber-ultra-1.0 | 1M | $6.00 | $0.90 | $12.00 |
| Cyber Zero 1.0 | cyber-zero-1.0 | 999K | $3.60 | $0.90 | $9.00 |
| Qwen3.8 27B Cybersecurityimages | qwen-3.8-27b-cybersecurity | 262K | $0.12 | $0.06 | $0.72 |
| Qwen3.8 27B Uncensored Fastimages | qwen-3.8-27b-fast | 1M | $1.20 | $0.264 | $3.60 |
| Qwen2.5 32B Abliterated | qwen-2.5-32b-abliterated | 33K | $0.84 | $0.42 | $0.84 |
| Qwen3.5 27B Blossom Derestrictedimages | qwen-3.5-27b-blossom | 262K | $0.3672 | $0.1836 | $0.3672 |
| Qwen3.5 27B BlueStar Derestrictedimages | qwen-3.5-27b-bluestar | 262K | $0.3672 | $0.1836 | $0.3672 |
| Qwen3.5 27B Reasoning Distill Derestrictedimages | qwen-3.5-27b-reasoning | 262K | $0.3672 | $0.0367 | $0.3672 |
| Qwen3.5 27B Reasoning Distill Liteimages | qwen-3.5-27b-reasoning-lite | 262K | $0.3672 | $0.0367 | $0.3672 |
| Qwen3.5 27B Queen Derestrictedimages | qwen-3.5-27b-queen | 262K | $0.3672 | $0.1836 | $0.3672 |
| Venice Uncensored 1.2images | venice-1.2 | 128K | $0.24 | $0.24 | $1.08 |
A model can run on more than one provider. The table shows the one it usually runs on; when that one is down and another answers, the request is charged at that provider’s price, which your usage history shows. GET /v1/models has the same prices as data.
Credits
- Credits are prepaid, in US dollars, through Stripe. They are apart from the plans: a key never spends a plan’s usage, and the apps never spend credits.
- They don’t expire, and nothing renews or is charged on its own.
- There is no borrowing. While a request runs, the most it can cost (its prompt, and a reply as long as its
max_tokens) is set aside from the balance, and what it didn’t use goes back when it ends. When the credits not set aside can’t pay for the reply asked for,max_tokensis cut down to what they can pay for, and the reply may end withfinish_reason: "length". When they can’t pay for even a short reply, the request gets a402with the codeinsufficient_creditsbefore anything is sent to a model. - A top-up that is refunded or disputed takes its credits back, even ones already spent, and a balance under zero is refused until it is topped up again. A dispute also switches the account’s API access off.
- Settings → API shows the balance and each request: its time, key, model, tokens and cost.
Limits
Each key takes 60 requests a minute and 4 running at once. Past either, a request gets a 429 with a Retry-After header. If you need more, write to contact@caveira.app.
Errors
Errors come in the OpenAI shape, {"error": {"message", "type", "code"}}, and the message says what to do.
| Status | Code | What it means |
|---|---|---|
| 401 | invalid_api_key | The key is wrong or was revoked. Make a new one in Settings. |
| 402 | insufficient_credits | The account’s credits not set aside for its running requests can’t pay for this prompt and a short reply. Add credits in Settings, or ask for a smaller max_tokens. |
| 403 | api_disabled | API access is switched off for the account. Write to us. |
| 403 | email_unverified | The account’s email isn’t verified yet. Open the link we sent. |
| 404 | model_not_found | caveira doesn’t serve that model. List the ones it does with /v1/models. |
| 429 | rate_limit_exceeded | The key began more than 60 requests this minute, or the model is rate limited. Wait for Retry-After. |
| 429 | too_many_running | The key already has 4 requests running. Wait for one to finish. |
| 503 | overloaded | The model is busy on every route. Try again after Retry-After. |
Use it in your tools
Cursor
In Cursor Settings → Models, turn on Override OpenAI Base URL and set it to https://api.caveira.app/v1, put your key in OpenAI API Key, then add a custom model named caveira (or any name from the table) and pick it in the chat.
Cline
In Cline’s settings choose the API provider OpenAI Compatible, then set Base URL to https://api.caveira.app/v1, API Key to your key and Model ID to caveira.
OpenCode
Add caveira as a provider in opencode.json, set CAVEIRA_API_KEY in your shell, and pick the model with /models.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"caveira": {
"npm": "@ai-sdk/openai-compatible",
"name": "caveira",
"options": {
"baseURL": "https://api.caveira.app/v1",
"apiKey": "{env:CAVEIRA_API_KEY}"
},
"models": {
"caveira": { "name": "caveira" }
}
}
}
}Aider
export OPENAI_API_BASE=https://api.caveira.app/v1
export OPENAI_API_KEY=sk-cav-...
aider --model openai/caveiraThese tools change their settings often. If a name above has moved, look for where the tool takes an OpenAI-compatible base URL, key and model name: those three are all it needs.
Privacy and rules
- Nothing you send is kept. Prompts and replies pass through to the model and are not stored, and API traffic is never used for chat sharing. We keep each request’s time, key, model, token counts and cost for your usage history, and anonymous counts with no account on them. See Privacy.
- Two things are refused. As in the apps, every request starts with a short instruction from caveira that the models refuse sexual content involving minors and real help with weapons meant to kill many people (biological, chemical, nuclear, radiological, mass-casualty explosives). Your own system prompt comes after it. Security work, including exploits and malware analysis, is what caveira is for.
- Authorized use only. Test systems you own or are allowed to test. The Terms apply to the API, and we can switch off a key or an account that breaks them.
- Keep keys out of code you publish and out of browsers. Revoke one in Settings the moment it leaks; revoking is instant.