DeepInfra vs Ghost
Ghost costs more on shared base models but serves refusal-removed builds, our own Ghost X1 and X2, and a chat app on a monthly plan. DeepInfra is one of the cheapest places to run standard open models by the token, and it has a much bigger catalog.
DeepInfra
Ghost- DeepInfra was cheaper than Ghost on GLM 5.3, GLM 5.3 Flash, DeepSeek V4.1 Flash, Kimi K3.1 Pro and Gemma 4 26B when we read its pricing page on 2026-12-01, and several of its prices carried listed discounts.16
- On Qwen 3.8 27B, DeepInfra's input price is lower and Ghost's output price is lower.16
- DeepInfra's catalog lists standard releases; we found none labeled uncensored or abliterated.2
- Both offer an OpenAI-compatible API and an Anthropic-compatible endpoint for Claude Code.34
- Ghost publishes Free, Pro ($20) and Max plans. DeepInfra is pay as you go with no subscription.17
DeepInfra is a pay-as-you-go inference cloud with over 100 language models, a chat playground and dedicated GPUs billed by the minute. Ghost is a chat app and API for open models with their refusals removed, plus our own Ghost X1 and Ghost X2. If cost per token on standard GLM, DeepSeek, Kimi, Qwen or Gemma releases is what matters, DeepInfra wins clearly; if the standard model refuses work you are entitled to do, or you want a chat app on a flat monthly plan, Ghost is the fit.
At a glance
| DeepInfra | Ghost | |
|---|---|---|
| What it is | Pay-as-you-go inference cloud with dedicated GPUs | Chat app and API for refusal-removed open models plus Ghost X1 and X2 |
| Models (count and kind) | 100+ LLMs, standard releases, plus resold Claude and Gemini13 | 16 models, refusal-removed builds and our own6 |
| Chat app | Chat playground, login required5 | Yes, web chat |
| OpenAI-compatible API | Yes, https://api.deepinfra.com/v1/openai3 | Yes, https://api.thesapientdirective.com/v1 |
| Anthropic Messages API (Claude Code with no proxy) | Yes, https://api.deepinfra.com/anthropic4 | Yes, https://api.thesapientdirective.com |
| Pay per token | Yes, with Priority and Flex tiers | Yes, credits never expire, reload from $5 |
| Subscription plans | Not published | Free, Pro $20, Max $50 / $100 / $200 |
| Published content policy | Restrictions in the Terms, last modified October 15, 20268 | Content policy with six prohibited categories9 |
| Coding agents tested end to end | Not published | Ten tools tested against production on 2026-11-30 |
Pricing side by side
Standard-tier prices per 1M tokens, input / output, read from DeepInfra's pricing page on 2026-12-01.1 DeepInfra marks several of these as discounted, noted in brackets, so they may change. The Ghost column is the refusal-removed build of the same base model.
| Base model | DeepInfra | Ghost |
|---|---|---|
| GLM 5.3 | $0.5625 / $2.50 (38% off) | $3 / $5 (GLM 5.3 Uncensored) |
| GLM 5.3 Flash | $0.09 / $0.30 (40% off) | $0.20 / $0.80 (GLM 5.3 Flash Uncensored) |
| DeepSeek V4.1 Flash | $0.14 / $0.42 (30% off) | $0.60 / $2.25 (DeepSeek V4.1 Flash Uncensored) |
| Kimi K3.1 Pro | $1.90 / $9.50 (5% off) | $7.50 / $22.50 (Kimi K3.1 Pro Uncensored) |
| Qwen 3.8 27B | $0.15 / $1.875 (25% off) | $0.20 / $0.80 (Qwen 3.8 Abliterated) |
| Gemma 4 26B | $0.07 / $0.34 | $0.60 / $1.25 (Gemma 4 Uncensored) |
The honest read: DeepInfra is far cheaper on five of six. GLM 5.3 costs about a fifth of our input price there, and DeepSeek V4.1 Flash under a quarter. Qwen 3.8 27B is the one split: DeepInfra charges less for input, Ghost charges less than half as much for output, so output-heavy work such as long code generation can cost less on Ghost. DeepInfra also offers a Flex tier at 0.8 times the standard price.1
DeepInfra has no subscription; you add a card or prepay, and it bills usage. Ghost's Free plan gives 3 messages with no card, Pro is $20 a month for every model, and Max is $50, $100 or $200 a month for 5x, 10x or 20x the usage.7
Where Ghost leads
- Refusal-removed models. DeepInfra lists the standard releases.2 Ghost serves uncensored, abliterated and obliterated builds, made so that legitimate requests, such as reviewing exploit code for your own systems or a direct answer to a medical question, get answered rather than declined.
- Our own models. Ghost X1 and Ghost X2 are 125B models at $0.20 / $0.80, available only on Ghost.6
- A chat app on a flat plan, so non-developers can use every model for $20 a month.
- Cheaper Qwen 3.8 27B output at $0.80 per 1M tokens.
- Tested tools. Claude Code, Codex, OpenCode, Kilo Code, Cline, Aider, Hermes Agent, OpenClaw, SillyTavern and Open WebUI were each installed from the official package and run on a real task against production on 2026-11-30.
- The Connect page creates a key and writes the command or settings for your tool, and API credits never expire.
Where DeepInfra leads
- Price on almost every shared base model, often by two to five times.1
- Breadth. Over 100 LLMs, including MoE and vision variants Ghost does not carry, plus resold Claude and Gemini models.1
- Dedicated GPUs from $1.49 an hour for an A100 up to $5.89 for a B300, billed by the minute.1
- Longer context on some models. DeepInfra lists 1024K context for DeepSeek V4.1 Flash and Kimi K3.1 Pro; Ghost's builds of those run at 256K.16
Which should you pick
- Cost-sensitive production on standard open models: DeepInfra.
- Your own GPU deployments: DeepInfra.
- Security work, medical or legal questions, or research the standard model refuses: Ghost.
- Long code generation on Qwen 3.8 27B: compare your input-to-output ratio; Ghost's output price is lower.
- A chat app with every model for one monthly price: Ghost.
Switching to Ghost
Swap the base URL, key and model in your OpenAI client:
from openai import OpenAI
client = OpenAI(base_url="https://api.thesapientdirective.com/v1", api_key="YOUR_GHOST_KEY")
client.chat.completions.create(model="ghost-x2", messages=[{"role": "user", "content": "Hello"}])
For Claude Code, replace DeepInfra's Anthropic URL with https://api.thesapientdirective.com, set your Ghost key as ANTHROPIC_AUTH_TOKEN, and set the model variables to a Ghost model id. Get a key on the API page, or let Connect write it for you.
FAQ
Is DeepInfra cheaper than Ghost?
On most shared base models, yes, and by a lot. On 2026-12-01 DeepInfra listed GLM-5.3 at $0.5625 / $2.50 per 1M tokens against Ghost's $3 / $5. Ghost's Qwen 3.8 Abliterated has the lower output price of the two.1
Does DeepInfra work with Claude Code?
Yes. DeepInfra documents an Anthropic-compatible Messages API at https://api.deepinfra.com/anthropic and shows how to map Claude Code's model slots to its models.4
Does DeepInfra have a chat interface?
It has a chat playground at deepinfra.com/chat that requires a login.5 It does not publish a monthly chat plan.
Does DeepInfra host uncensored models?
We found no model in its text-generation catalog labeled uncensored or abliterated on 2026-12-01.2 Ghost's whole lineup is refusal-removed, under a content policy that still prohibits six categories, including sexual content.9
Sources
- DeepInfra pricing
- DeepInfra text-generation models
- DeepInfra documentation
- DeepInfra Anthropic integration
- DeepInfra chat
- Ghost models
- Ghost plans and limits
- DeepInfra Terms of Service
- Ghost content policy
Authors
Ghost research. Written by the Ghost team at The Sapient Directive. Ghost prices and model details are checked against the live Models page; if they ever differ, that page is right.
Keep reading
abliteration.ai
Ghost
Ghost
Ghost