Guides

Use Claude Code with a different API provider

Claude Code reads its endpoint and credential from environment variables, so any gateway that speaks the Anthropic Messages API can stand in for the default provider.

Short answer. Set ANTHROPIC_BASE_URL to the gateway address (for Ezkielyna: https://api.ezkielyna.store, without /v1), set ANTHROPIC_AUTH_TOKEN to your key and start claude --model claude-sonnet-5. Payment is by QRIS, USDT or Binance Pay from $0.50, so no credit card is needed.

Steps

  1. Get a keyTop up API credit in the store, check your balance in Wallet (or enter the redeem code shown on your order) and create a key under API Keys. Use the Auto group if you want Claude, GPT and low-cost models on one key.
  2. Set the two variablesDo it in a new terminal first, before changing any shared configuration. The base URL has no /v1 because Claude Code adds the path itself.
  3. Pick a model your key group can usePass it with --model. The catalog lists the exact names; a model outside your key's group returns an error that names the group.
  4. Send one small requestAsk Claude Code to reply with one word, then open the usage log in the API console and confirm the request and its cost.
  5. Keep it out of shared filesPut the key in your shell profile or a secrets manager, not in a project file that is committed.

macOS and Linux

bash

export ANTHROPIC_BASE_URL="https://api.ezkielyna.store"
export ANTHROPIC_AUTH_TOKEN="$EZK_API_KEY"
claude --model claude-sonnet-5

Windows PowerShell

PowerShell

$env:ANTHROPIC_BASE_URL = "https://api.ezkielyna.store"
$env:ANTHROPIC_AUTH_TOKEN = $env:EZK_API_KEY
claude --model claude-sonnet-5

Check the connection without Claude Code

If something fails, test the endpoint directly. A 200 with text means the gateway and key are fine and the problem is in the client configuration.

curl, Anthropic format

curl https://api.ezkielyna.store/v1/messages \
  -H "x-api-key: $EZK_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-5",
  "max_tokens": 64,
  "messages": [{"role": "user", "content": "Reply with one word."}]
}'

What to verify before a real project

Prices of popular models

Prices and model count are read from the live price list (255).

ModelMakerInputOutputGroup
deepseek-v4.1-flashDeepSeek$0.0468$0.4178Standard
deepseek-v4-proDeepSeek$2.234$6.703Standard
glm-5.3-flashZhipu AI$0.15$0.50Standard
kimi-k3Moonshot AI$2.607$13.03Premium
qwen3.8-maxAlibaba$0.1613$0.4838Premium
claude-haiku-4.5Anthropic$0.0911$0.4556Premium
claude-sonnet-5Anthropic$0.2739$1.37Premium
claude-opus-5.5Anthropic$0.9206$4.603Premium
gpt-5.6-solOpenAI$0.2219$1.11Premium
gpt-6-solOpenAI$0.1952$0.976Premium
gemini-3.5-flashGoogle$0.3413$2.062Standard
grok-4.7xAI$0.0669$0.2008Premium

USD per 1M tokens · Updated 5 Dec 2026.

Pricing · Models · Docs

Questions

Why does the base URL have no /v1?

Claude Code appends the Messages path itself, so the address is only https://api.ezkielyna.store. The OpenAI-compatible address, https://api.ezkielyna.store/v1, is for OpenAI SDKs and tools.

ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY?

Use ANTHROPIC_AUTH_TOKEN for a gateway key, as in the example. Set it in the same terminal where you start claude.

Do I need a credit card?

No. Ezkielyna accepts QRIS, USDT (BEP-20, Solana, TRON TRC-20) and Binance Pay, from $0.50.

Which models work?

Any chat model your key group allows. The model catalog shows live prices and uptime; Claude models need the Premium or Auto group.

I get 401 or 404.

401: check the key and that it is exported in this terminal. 404: the base URL probably includes /v1 or a trailing path; remove it.

Ezkielyna is an independent gateway and is not affiliated with OpenAI, Anthropic, Google or xAI. "Works with Claude Code" means the Anthropic Messages format is supported.