Home / Compare / Claude API for Claude Code

Why route Claude Code through KissAPI

Claude Code can point at any Anthropic-compatible endpoint via environment variables. Route it through KissAPI and the exact same Opus 4.6 / Sonnet 4.6 workflow runs at up to 80% off, with no subscription.

Setup

  1. Set ANTHROPIC_BASE_URL=https://api.kissapi.ai (or the OpenAI base https://api.kissapi.ai/v1 for OpenAI-format tools).
  2. Set your KissAPI key as the API key env var.
  3. Launch Claude Code as usual.
  4. Use claude-sonnet-4-6 as your default and claude-opus-4-6 for the heavy lifts.
curl https://api.kissapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $KISSAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"hi"}]}'

Pricing you'll pay

ModelInput / 1MOutput / 1M
Claude Opus 4.6$15.00$3.00$75.00$15.00
Claude Sonnet 4.6$3.00$0.60$15.00$3.00
Claude Haiku 4.5$0.80$0.16$4.00$0.80
GPT-5$2.50$0.50$10.00$2.00
GPT-5.5$7.50$1.50$30.00$6.00

Strikethrough = official list price. Green = KissAPI price. No subscription, pay only for tokens you use.

Power Claude Code for less

Get a KissAPI key, drop it into Claude Code, and start with $1 free credit.

Start Free — $1 credit

FAQ

How do I use Claude in Claude Code cheaply?

Set Claude Code's OpenAI-compatible base URL to https://api.kissapi.ai/v1 and use your KissAPI key. You get the real Claude models at up to 80% off.

Does Claude Code work with KissAPI out of the box?

Yes. Claude Code supports custom OpenAI-compatible endpoints, so no plugin or patch is needed — just the base URL and key.

What will it cost?

Pay-as-you-go per token. Claude Sonnet 4.6 is $0.60/1M input, Opus 4.6 is $3.00/1M input. New accounts get $1 in free credit.

Related