Anthropic Claude Haiku 4.5 (Global)

Anthropic API model Claude Haiku 4.5 (global endpoint, no region selection).

Provider: All Anthropic models | Anthropic Direct

API Endpoint

https://api.anthropic.com/v1/messages

Quick Start (Python)

Install: pip install anthropic

import anthropic

client = anthropic.Anthropic()

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

print(message.content[0].text)

Supported Parameters

ParameterTypeDescription
max_tokensintegerMaximum number of tokens to generate in the response. (≥1)
temperaturefloatControls randomness. Lower values make output more deterministic. (0–1) Default: 1.
top_pfloatNucleus sampling threshold. Considers tokens with cumulative probability up to this value. (0–1) Default: 1.
stop_sequencesstringUp to 4 sequences where the model will stop generating.
top_kintegerOnly sample from the top K most likely tokens at each step. (≥0)