- Model
claude-3-5-haiku- Provider
cloudflare-ai-gateway- API
anthropic-messages- Base URL
https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic- Input
- text, image
- Reasoning
- No
- Context window
- 200,000
- Max tokens
- 8,192
- Cost / million input
- $0.8
- Cost / million output
- $4
- Cost / million cache read
- $0.08
- Cost / million cache write
- $1
Model config JSON
{
"providers": {
"cloudflare-ai-gateway": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "claude-3-5-haiku",
"name": "Claude Haiku 3.5 (latest)",
"reasoning": false,
"input": [
"text",
"image"
],
"contextWindow": 200000,
"maxTokens": 8192,
"cost": {
"input": 0.8,
"output": 4,
"cacheRead": 0.08,
"cacheWrite": 1
}
}
],
"api": "anthropic-messages",
"baseUrl": "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/anthropic"
}
}
}