Claude Haiku 4.5
Anthropic logo

Claude Haiku 4.5

claude-haiku-4-5
Anthropic
Claude Haiku 4.5 is a fast, affordable, and highly capable AI model, excelling at coding and agentic tasks. Its combination of speed and low cost makes it ideal for powering real-time applications like chatbots, high-volume free services, and specialized "sub-agents" for complex tasks in coding, finance, and research. It can also handle common business tasks like creating office documents and assisting with strategy and analysis. ⚠️ The minimum cache token for claude-haiku-4-5 has been increased from 1,024 to 4,096 tokens.

Pricing

PricingCache ReadWeb SearchCache WriteCache Write 5 MinutesCache Write 1 Hour
$1.100$5.500
$0.11/M tokens$0.01/request$1.375/M tokens$1.375/M tokens$2.2/M tokens

Input Modalities

  • Text
  • Vision
  • PDF

Output Modalities

  • Text

Context length

  • 200K tokens

Max output

  • 64K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="claude-haiku-4-5",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is Claude Haiku 4.5?

Claude Haiku 4.5 is a fast, affordable, and highly capable AI model, excelling at coding and agentic tasks. Its combination of speed and low cost makes it ideal for powering real-time applications like chatbots, high-volume free services, and specialized "sub-agents" for complex tasks in coding, finance, and research. It can also handle common business tasks like creating office documents and assisting with strategy and analysis. ⚠️ The minimum cache token for claude-haiku-4-5 has been increased from 1,024 to 4,096 tokens.