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

  1. Sign in and open Settings → API. Any account can use the API, a free one too.
  2. Add credits: $10, $25, and $100, or another amount from $10. The API is paid by the token from these, apart from any plan.
  3. Create a key. It starts with sk-cav- and is shown once, so copy it then.
  4. Send requests to https://api.caveira.app/v1 with the key as a Bearer token.
curl
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."}]
  }'
Python, with the openai package
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="")
JavaScript, with the openai package
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/models lists the models, each with its context window and its price.
  • POST /v1/chat/completions answers 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.

ModelName to sendContextInputCached inputOutput
caveiracaveira262Kthe price of the model it picks
Kimi K3.1 Pro Cyberimageskimi-k3.1-pro-cyber1M$2.40$0.42$6.00
GLM-5.3glm-5.31M$0.864$0.1296$1.728
Inkling 2 Mini Cyberimagesinkling-2-mini-cyber1M$0.24$0.06$0.60
Qwen3.8 27Bimagesqwen-3.8-27b262K$1.20$0.264$3.60
GLM-5.3 Flashimagesqwen-3.5262K$0.0938$0.0094$0.3284
GLM-5.3 Flash Abliteratedglm-5.3-flash-alt262K$0.0938$0.0094$0.3284
DeepSeek V4.1 Flashimagesdeepseek-v4.1-flash1M$0.396$0.0099$1.584
DeepSeek V4.1 Flash Hereticimagesdeepseek-v4.1-flash-heretic512K$0.2376$0.0158$0.9504
MiMo V2.6 Flashimagesmimo-v2.6-flash1M$0.60$0.2394$1.80
GLM-5.3 Cyber Abliteratedglm-5.3-cyber1M$0.864$0.1296$1.728
Gemma 4 26Bimagesgemma-4-26b256K$0.144$0.072$0.456
Cyber Zero 1.5cyber-zero-1.5999K$3.60$0.90$9.00
Abliteration Modelimagesabliteration-model262K$1.20$0.12$3.60
Abliteration Largeabliteration-large1M$3.60$0.36$6.00
Abliteration Large V2abliteration-large-v21M$3.60$0.36$6.00
Abliteration Large Flashimagesabliteration-large-flash1M$1.20$0.12$2.40
CyberHeabsycyberheabsy1M$1.80$0.33$5.40
DeepSeek R1 Distill Llama 70B Abliterateddeepseek-r1-llama-70b-abliterated16K$0.84$0.42$0.84
DeepSeek R1 Distill Qwen 32B Abliterateddeepseek-r1-qwen-32b-abliterated16K$1.68$0.84$1.68
DeepSeek V4.1 Flash 0910 Uncensoredimagesdeepseek-v4.1-flash-0910524K$0.396$0.0099$1.584
DeepSeek V4.1 Flash 1017 Abliterateddeepseek-v4.1-flash-abliterated-10171M$0.45$0.009$1.80
DeepSeek V4.1 Flash Abliterated CSFdeepseek-v4.1-flash-csf1M$0.378$0.0252$1.26
DeepSeek V4.1 Flash Abliterateddeepseek-v4.1-flash-abliterated262K$0.3564$0.0792$1.254
DeepSeek V4.1 Flash Uncensoredimagesdeepseek-v4.1-flash-uncensored1M$0.396$0.0099$1.584
Qwen3.5 9B Hereticqwen-3.5-9b-heretic33K$0.336$0.168$0.336
Gemma 4 26B Cybersecurityimagesgemma-4-26b-cybersecurity262K$0.1267$0.0634$0.4013
Gemma 4 26B Uncensored TEEgemma-4-26b-tee66K$0.18$0.06$0.84
Gemma 4 31B Gembrain Hereticimagesgemma-4-31b-gembrain262K$0.3672$0.1836$0.3672
Gemma 4 Uncensoredimagesgemma-4-26b-uncensored256K$0.195$0.195$0.60
GLM-4.6 Derestrictedglm-4.6-derestricted131K$0.48$0.24$1.80
GLM-5.3 Abliteratedglm-5.3-abliterated262K$0.5148$0.198$1.7424
Apex Flash 1 Abliteratedimagesapex-flash-11M$0.18$0.09$0.60
GLM-5.3 Flash Cybersecurityimagesglm-5.3-flash-cybersecurity1M$0.18$0.09$0.60
Kimi K3.1 Pro Abliteratedkimi-k3.1-pro-abliterated1M$4.80$4.80$18.00
Llama 3.3 70B Abliteratedllama-3.3-70b-abliterated33K$0.84$0.42$0.84
Llama 3 70B Abliteratedllama-3-70b-abliterated8K$0.84$0.42$0.84
MiMo V2.6 Flash Abliteratedimagesmimo-v2.6-flash-abliterated1M$0.60$0.33$1.80
NeuralDaredevil 8B Abliteratedneuraldaredevil-8b8K$0.528$0.264$0.528
GLM-4.7 Flash Hereticglm-4.7-flash-heretic200K$0.084$0.042$0.48
DeepSeek V4.1 Flash Cyberimagesdeepseek-v4.1-flash-cyber1M$0.96$0.18$1.92
GLM-5.3 Cyberglm-5.3-orcacyber999K$3.60$0.36$6.00
GLM-5.3 Flash Cyberimagesglm-5.3-flash-cyber1M$0.96$0.18$1.92
Hy4 Cyberhy4-cyber1M$0.96$0.18$1.92
Hy4 Flash Cyberimageshy4-flash-cyber1M$0.084$0.0036$0.3372
Ling 3.2 Flash Cyberimagesling-3.2-flash-cyber1M$0.72$0.144$2.16
MiMo V2.6 Flash Cybermimo-v2.6-flash-cyber1M$0.96$0.18$1.92
MiniMax M3.1 Flash Cyberminimax-m3.1-flash-cyber262K$0.96$0.18$1.92
Qwen3.8 Flash Next Cyberimagesqwen-3.8-flash-next-cyber262K$0.96$0.18$1.92
Step 5 Preview Cyberimagesstep-5-preview-cyber999K$2.40$0.24$6.48
Cyber Ultra 1.0cyber-ultra-1.01M$6.00$0.90$12.00
Cyber Zero 1.0cyber-zero-1.0999K$3.60$0.90$9.00
Qwen3.8 27B Cybersecurityimagesqwen-3.8-27b-cybersecurity262K$0.12$0.06$0.72
Qwen3.8 27B Uncensored Fastimagesqwen-3.8-27b-fast1M$1.20$0.264$3.60
Qwen2.5 32B Abliteratedqwen-2.5-32b-abliterated33K$0.84$0.42$0.84
Qwen3.5 27B Blossom Derestrictedimagesqwen-3.5-27b-blossom262K$0.3672$0.1836$0.3672
Qwen3.5 27B BlueStar Derestrictedimagesqwen-3.5-27b-bluestar262K$0.3672$0.1836$0.3672
Qwen3.5 27B Reasoning Distill Derestrictedimagesqwen-3.5-27b-reasoning262K$0.3672$0.0367$0.3672
Qwen3.5 27B Reasoning Distill Liteimagesqwen-3.5-27b-reasoning-lite262K$0.3672$0.0367$0.3672
Qwen3.5 27B Queen Derestrictedimagesqwen-3.5-27b-queen262K$0.3672$0.1836$0.3672
Venice Uncensored 1.2imagesvenice-1.2128K$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_tokens is cut down to what they can pay for, and the reply may end with finish_reason: "length". When they can’t pay for even a short reply, the request gets a 402 with the code insufficient_credits before 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.

StatusCodeWhat it means
401invalid_api_keyThe key is wrong or was revoked. Make a new one in Settings.
402insufficient_creditsThe 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.
403api_disabledAPI access is switched off for the account. Write to us.
403email_unverifiedThe account’s email isn’t verified yet. Open the link we sent.
404model_not_foundcaveira doesn’t serve that model. List the ones it does with /v1/models.
429rate_limit_exceededThe key began more than 60 requests this minute, or the model is rate limited. Wait for Retry-After.
429too_many_runningThe key already has 4 requests running. Wait for one to finish.
503overloadedThe 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.

opencode.json
{
  "$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

shell
export OPENAI_API_BASE=https://api.caveira.app/v1
export OPENAI_API_KEY=sk-cav-...
aider --model openai/caveira

These 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.