API Reference

Documentation API

Base URL: https://gwarden.su - 28 models, one API

Agents

Choose your tool

1

Get a key

Open the bot and press «Get API» - the key looks like GWAR-XXXX. Your free 7-day trial starts on signup (balance refills every 5h).

Cabinet Bot
2

CLI coding agents

Works with every major CLI agent. Install for your OS, then pick your tool. All of them speak the OpenAI- or Anthropic-compatible protocol - point them at https://gwarden.su.

# macOS
brew install node
# Linux (Debian / Ubuntu)
sudo apt install -y nodejs npm
# Windows (PowerShell, admin)
winget install OpenJS.NodeJS.LTS

# all OS: Claude Code + Codex + opencode
npm install -g @anthropic-ai/claude-code @openai/codex opencode-ai

# aider (Python)
python -m pip install aider-install && aider-install

Replace GWAR-XXXX with your key and MODEL with any model id - the full list is via /v1/models and in the table on the main page. Examples: claude-fable-5-1, gpt-5.6-sol, grok-4.6, kimi-k3, glm-5.3. Tools / agentic loops are fully supported.

cli

Claude Code

One command - works out of the box

# macOS / Linux
export ANTHROPIC_BASE_URL="https://gwarden.su"
export ANTHROPIC_AUTH_TOKEN="GWAR-XXXX"
export ANTHROPIC_MODEL="MODEL"
claude
# Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://gwarden.su"
$env:ANTHROPIC_AUTH_TOKEN = "GWAR-XXXX"
$env:ANTHROPIC_MODEL = "MODEL"
claude
cli

Codex CLI (OpenAI)

~/.codex/config.toml
(Windows: C:/Users/you/.codex/config.toml)

model = "MODEL"
model_provider = "gwarden"

[model_providers.gwarden]
name = "Gwarden AI"
base_url = "https://gwarden.su/v1"
env_key = "GWARDEN_API_KEY"
wire_api = "responses"
export GWARDEN_API_KEY="GWAR-XXXX"   # Windows: setx GWARDEN_API_KEY "GWAR-XXXX"
codex
cli

opencode

~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "gwarden": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Gwarden AI",
      "options": { "baseURL": "https://gwarden.su/v1", "apiKey": "GWAR-XXXX" },
      "models": { "MODEL": { "name": "Gwarden AI" } }
    }
  }
}
opencode --model gwarden/MODEL
cli

aider

# macOS / Linux
export OPENAI_API_BASE="https://gwarden.su/v1"
export OPENAI_API_KEY="GWAR-XXXX"
aider --model openai/MODEL
# Windows PowerShell
$env:OPENAI_API_BASE = "https://gwarden.su/v1"
$env:OPENAI_API_KEY = "GWAR-XXXX"
aider --model openai/MODEL
3

Chat Completions

curl https://gwarden.su/v1/chat/completions \
  -H "Authorization: Bearer KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "MODEL",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": false}'

Models list

curl https://gwarden.su/v1/models -H "Authorization: Bearer KEY"

Streaming

Set stream: true. Chunks carry reasoning_content (thoughts) and content (answer) separately.

Old requests with thinking: {{"type": "disabled"}} are rewritten to {{"type": "enabled"}} + reasoning_effort: "low".

4

Claude Code / Anthropic compat

The same API is exposed in the Anthropic Messages format, so Claude Code, Cursor and Cline work out of the box. Point the base URL here and use your key.

curl https://gwarden.su/v1/messages \
  -H "x-api-key: GWAR-XXXX" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MODEL",
    "max_tokens": 4096,
    "messages": [{"role": "user", "content": "Hello"}]
  }'
5

Subscriptions

Free
Free
Up to $7$ credits
Refills every 5 h to $7$
7-day trial
Startupper
$5
Up to $7$ credits
Refills every 5 h to $7$
30-day subscription
Agent
$8
Up to $12$ credits
Refills every 5 h to $12$
30-day subscription
Orchestrator
$15
Up to $20$ credits
Refills every 5 h to $20$
30-day subscription
Neuron
$19.99 $25-20%
Up to $35$ credits
Refills every 5 h to $35$
30-day subscription
Emperor
$20 $35-43%
Up to $50$ credits
Refills every 5 h to $50$
30-day subscription
Developer
$60 $89-33%
Unlimited - balance is not limited
No limits
30-day subscription

Every 5 hours your balance refills to the plan limit. Per 1M tokens: Input 0.15 / Output 0.5 / Cache 0.03. Top-up: 1$ = 10.0$.

Chat Completions / models

ModelInput / 1MOutput / 1MCache / 1MQuality
claude-fable-5-1200k / 128k out$3.50$13.00$4.0065.7%
claude-opus-5200k / 64k out$2.00$10.00$2.0063.1%
claude-fable-5200k / 128k out$3.50$13.00$4.0062.1%
gpt-5.6-sol200k / 128k out$3.50$18.00$0.3560.9%
grok-4.6200k / 64k out$1.70$5.00$0.4060.9%
kimi-k31M / 64k out$2.60$13.00$0.5559.7%
glm-5.3200k / 128k out$0.15$0.50$0.0359.5%
gemini-3.8-flash200k / 64k out$1.00$4.50$0.2558.7%
qwen3.8-max200k / 64k out$1.70$5.20$0.4058.1%
qwen3.8-2.4t-a95b200k / 64k out$0.80$1.70$0.1557.7%
gpt-5.6-terra200k / 128k out$1.70$10.00$0.1856.5%
claude-sonnet-5200k / 64k out$1.70$8.50$0.1756.4%
Qwen3.8-Flash-Next200k / 64k out$0.15$0.50$0.0356.0%
gpt-5.5200k / 128k out$4.50$27.00$0.4555.8%
muse-spark-1.3-contributor1M / 64k out$0.40$1.60$0.0855.1%
mercury-2.5200k / 32k out$0.15$0.50$0.0355.0%
deepseek-v4-pro200k / 64k out$0.80$2.20$0.2054.5%
glm-5.2200k / 128k out$1.20$3.90$0.2553.5%
gpt-5.6-luna200k / 128k out$0.18$1.05$0.0152.1%
deepseek-v4-flash200k / 32k out$0.30$0.90$0.0852.0%
qwen3.8-27b200k / 32k out$0.22$0.80$0.0552.0%
gemini-3.1-pro200k / 64k out$1.75$10.50$0.4551.2%
gpt-oss-120b1M / 64k out$0.45$1.80$0.0950.6%
agnes-2.5-flash1M / 64k out$0.35$1.40$0.0749.8%
mimo-v2.5-pro200k / 64k out$0.60$2.20$0.1547.5%
minimax-m3200k / 64k out$0.27$1.05$0.0847.5%
deepseek-r1-0528-qwen3-8b1M / 32k out$0.12$0.45$0.0344.2%
claude-opus-4-8200k / 64k out$2.00$10.00$2.00-