Claude Haiku 5.5 API pricing and access

Run Claude Haiku 5.5 (model ID claude-haiku-5-5) through Code By AI for $0.025 per 1M input tokens and $0.125 per 1M output tokens, with no monthly subscription.

What Claude Haiku 5.5 is for

Use this model through Claude Code to explain unfamiliar code, investigate errors and draft tests for changes. Review generated code and run your own tests before using it.

claude-haiku-5-5Top up & try
Official priceYour price
≤ 100,000 prompt tokens
Input$0.10$0.025
Cache read$0.01$0.0025
Cache write (5 min)$0.125$0.03125
Cache write (1 hour)$0.20$0.05
Output$0.50$0.125
> 100,000 prompt tokens
Input$0.50$0.125
Cache read$0.05$0.0125
Cache write (5 min)$0.625$0.15625
Cache write (1 hour)$1.00$0.25
Output$2.50$0.625

Prompt length includes uncached input and cache reads and writes. The selected tier applies to the whole request.

Claude cache writes cost 1.25× the input rate for 5-minute entries or 2× for 1-hour entries. These rates replace the normal input rate for those tokens; the cache-read price applies only to reads.

How to use claude-haiku-5-5

Export ANTHROPIC_BASE_URL=https://www.codebyai.net/api/agent and ANTHROPIC_AUTH_TOKEN=sk-proj-xxxx, then launch the CLI, and use the model ID claude-haiku-5-5. The Claude Code guide walks through the full configuration.

export ANTHROPIC_BASE_URL="https://www.codebyai.net/api/agent"
export ANTHROPIC_AUTH_TOKEN="sk-proj-xxxx"
Read the Claude Code setup guideCompare plans and monthly costs

No key yet? Create one

Claude Code, Codex and Gemini CLI compatibility

A client can call claude-haiku-5-5 only when it speaks the endpoint that serves this model. The table shows what works and the minimum configuration.

  • Claude CodeAvailable

    Set ANTHROPIC_BASE_URL="https://www.codebyai.net/api/agent" and ANTHROPIC_AUTH_TOKEN, then use model claude-haiku-5-5.

    Open the Claude Code guide
  • CodexAvailable

    Available through the Responses endpoint: it accepts Claude models, so claude-haiku-5-5 is forwarded to the Claude channel and billed at Claude rates.

    Open the Codex guide
  • Gemini CLINot applicable

    Not applicable: the Gemini generateContent endpoint serves the Gemini family only.

    Open the Gemini CLI guide

Compare other Claude Code models

Your price /1M

Claude Haiku 5.5 FAQ

Claude Haiku 5.5 API pricing on Code By AI by prompt length, in USD per million tokens. Prompt length includes uncached input and cache reads and writes. The selected tier applies to the whole request.

No. Requests to Claude Code without a model parameter use the default model instead; set the model parameter to claude-haiku-5-5 to select this one.

Export ANTHROPIC_BASE_URL=https://www.codebyai.net/api/agent and ANTHROPIC_AUTH_TOKEN in your shell, pass the model ID claude-haiku-5-5, then launch the CLI. The Claude Code guide covers the full configuration.

Yes with Claude Code. Codex also works because the Responses endpoint accepts Claude models and bills them at Claude rates. Gemini CLI does not work: its endpoint serves only Gemini models.

Cache reads cost $0.0025 per 1M tokens. Cache writes cost $0.03125 per 1M tokens for 5-minute entries or $0.05 for 1-hour entries; the write rate replaces the normal input rate for those tokens.

Get started

Four steps to your first request

  1. 01

    Create a free account

    Sign up with Google, GitHub or email and set a password. No card is required.

  2. 02

    Generate an API key

    Create a key in one click from the dashboard. It lets your CLI authenticate with Code By AI.

  3. 03

    Top up your balance

    Add credit before your first request; usage is charged per token from your balance.

  4. 04

    Point your CLI at Code By AI

    Export one base-URL variable, or add a model provider block to config.toml. The setup guides list the exact lines for each agent.

Use it nowTop up to send a requestWhat a working month costs

No card required to sign up · API usage requires a top-up