# Ghost API: every model that never says no

Ghost API: connect to any open model in the world that never says no, with one API key. Uncensored and abliterated models (no refusals) for coding, writing and research, priced per million tokens. Works with Claude Code, Codex and any OpenAI-compatible or Anthropic-compatible client. Pay as you go from $5, or use a Pro plan ($20 a month). A few things are always blocked: child sexual abuse material; chemical, biological, radiological and nuclear weapons; terrorism and mass violence; human trafficking; and instructions for self-harm.

## Use it
- Base URL (OpenAI-compatible): `https://api.thesapientdirective.com/v1`
- Base URL (Anthropic-compatible, Claude Code): `https://api.thesapientdirective.com`
- Auth: your Ghost API key as a Bearer token (`Authorization: Bearer <key>`), from https://thesapientdirective.com/ghost/api/
- Model id: the `id` column below.
- Claude Code: `ANTHROPIC_BASE_URL=https://api.thesapientdirective.com ANTHROPIC_AUTH_TOKEN=<key> ANTHROPIC_MODEL=ghost-x2 claude`
- Codex: set a provider with `base_url = "https://api.thesapientdirective.com/v1"` and `OPENAI_API_KEY=<key>`, then `codex --profile ghost`.
- curl: `curl https://api.thesapientdirective.com/v1/chat/completions -H "Authorization: Bearer <key>" -H "Content-Type: application/json" -d '{"model":"ghost-x2","messages":[{"role":"user","content":"Hello"}]}'`

## Billing
- Reload any account with $5, $10, $25, $50 or $100 (no plan needed). Auto-reload is in Billing.
- Each request is charged for the tokens it uses at the prices below. An empty balance returns HTTP 402 `api_balance_empty`.
- Plans (Pro $20 a month, Max from $50) include usage on every model: https://thesapientdirective.com/ghost/pricing/

## Models and prices (USD per 1M tokens)

| Model | id | Size | Context | Best for | Input per 1M | Output per 1M |
|---|---|---|---|---|---|---|
| Ghost X2 | `ghost-x2` | 125B | 256K | Coding, Text, Research | $0.20 | $0.80 |
| Ghost X1 | `ghost-x1` | 125B | 256K | Coding, Text | $0.20 | $0.80 |
| GLM 5.3 Uncensored | `glm-5-3-uncensored` | 753B | 1M | Research, Coding, Text | $3 | $5 |
| GLM 5.3 Flash Uncensored | `glm-5-3-flash-uncensored` | Flash | 1M | Text, Research | $0.20 | $0.80 |
| DeepSeek V4.1 Flash Uncensored | `deepseek-v4-1-flash-uncensored` | Flash | 256K | Coding, Research | $0.60 | $2.25 |
| Kimi K3.1 Pro Uncensored | `kimi-k3-1-pro-uncensored` | 2.8T | 256K | Research, Coding | $7.50 | $22.50 |
| Hy4 Uncensored | `hy4-uncensored` | 770B | 256K | Research, Coding | $2.50 | $5 |
| MiMo V2.6 Flash Uncensored | `mimo-v2-6-flash-uncensored` | Flash | 256K | Text, Research | $0.70 | $2.25 |
| MiMo V2.6 Flash Abliterated | `mimo-v2-6-flash-abliterated` | Flash | 256K | Text, Research, Coding | $0.80 | $2.25 |
| Qwen 3.8 27B Obliterated | `qwen3-8-27b-obliterated` | 27B | 256K | Coding, Text | $0.40 | $2.25 |
| Qwen 3.8 27B Queen | `qwen3-8-27b-queen` | 27B | 256K | Text | $0.20 | $1 |
| Qwen 3.8 27B Uncensored | `qwen3-8-27b-uncensored` | 27B | 256K | Text, Coding | $0.80 | $3.50 |
| Qwen 3.8 27B Uncensored Fast | `qwen3-8-27b-uncensored-fast` | 27B | 256K | Text | $1.25 | $4 |
| CyberHeabsy | `cyberheabsy` | Hosted | 256K | Coding | $2.25 | $6.75 |
| Qwen 3.8 Abliterated | `qwen3.8-abliterated` | 27B | 256K | Coding, Text | $0.20 | $0.80 |
| Gemma 4 Uncensored | `gemma4-26b` | 26B | 32K | Text, Images | $0.60 | $1.25 |
| Gemma 4 31B Heretic | `gemma4-31b-heretic` | 31B | 32K | Text, Images | $0.80 | $2.25 |
| Qwen 3 VL Abliterated | `qwen3-vl-32b` | 32B | 32K | Text, Research, Images | $0.70 | $2.50 |
| MedGemma 1.5 | `medgemma-1-5-4b` | 4B | 32K | Research, Images | $0.30 | $0.60 |

Live list with prices: `GET https://api.thesapientdirective.com/v1/models`
