NewHow we catch a seller listing the wrong model, and refund you if one does.

How do I use Claude Code with an API key?

Claude Code takes an API key in place of a subscription login: ANTHROPIC_API_KEY for a key from the Claude Console, or ANTHROPIC_BASE_URL with ANTHROPIC_AUTH_TOKEN (or an apiKeyHelper script) for another endpoint. MartLLM is such an endpoint: on November 20, 2026, one MartLLM key reached 16 Claude models, billed per token from prepaid credit. The installer at martllm.com/claude-code writes the settings and stores the key in a file readable only by you. A request that fails is not billed.

Prices as of November 20, 2026, 11:00 UTC. This page is rebuilt every hour.

ModelInput / 1M tokensOutput / 1M tokensBelow list price
Claude Haiku 5.5$0.018$0.0982%
Claude Sonnet 4.6$0.3087$1.543489.7%
Claude Sonnet 5$0.35$1.7582.5%
Claude Sonnet 5.5$0.36$1.8082%
Claude Haiku 4.5$0.3608$1.804263.9%
Claude Opus 4.6$0.518$2.5989.6%
Claude Opus 4.5$0.5645$2.822388.7%
Claude Opus 5.5$0.678$3.3983.1%
Claude Opus 4.7$0.8056$4.028183.9%
Claude Opus 5$0.8991$4.495582%
Claude Opus 4.8$0.90$4.5082%
Claude Sonnet 4.5$2.10$10.5030%
Claude Fable 5$2.2277$11.138777.7%
Claude Fable 5.1$2.40$12.0076%
Claude Fable 5.2$2.8484$14.241864.4%
Claude Opus 5 (Fast)$5.3397$26.698546.6%

MartLLM: the price a request is billed at now, no fee added. Other prices from each provider's public price list: Claude Code authentication · every model and price →

More questions

Which setting wins if several are set?

Claude Code’s docs give the order: ANTHROPIC_AUTH_TOKEN, then ANTHROPIC_API_KEY, then apiKeyHelper, then the subscription login.

Can I see what a session costs?

Yes. Every request is listed with its cost in Dashboard → Activity, and the status line can show your balance.