{ "model_id": "anthropic/claude-haiku-5.5", "provider_id": "anthropic", "name": "Claude Haiku 5.5", "description": "Claude Haiku 5.5 is a fast, cost-efficient model for high-volume, latency-sensitive tasks such as classification, extraction, routing, and subagent work.", "task": "Text Generation", "tags": [ "LLM", "Fast", "Cost-Efficient", "Classification" ], "context_length": 1000000, "max_output_tokens": 128000, "schema_version": "1.0.0", "pricing": { "Short-context input (per 1M)": 0.1, "Short-context cached input (per 1M)": 0.01, "Short-context cache write (per 1M)": 0.125, "Short-context output (per 1M)": 0.5, "Long-context input (per 1M)": 0.5, "Long-context cached input (per 1M)": 0.05, "Long-context cache write (per 1M)": 0.625, "Long-context output (per 1M)": 2.5 }, "examples": [ { "name": "Classification", "description": "Classify a high-volume support task with a short response.", "input": { "max_tokens": 256, "messages": [ { "content": "Classify this support ticket as billing, technical, or account: My invoice shows an unexpected charge.", "role": "user" } ] }, "output": { "text": "**Billing**\n\nThe ticket is about an invoice showing an unexpected charge, which falls under billing." }, "raw_response": { "id": "msg_011CfoNwxiMXWCayWiWZRotX", "type": "message", "role": "assistant", "content": [ { "type": "text", "text": "**Billing**\n\nThe ticket is about an invoice showing an unexpected charge, which falls under billing." } ], "model": "claude-haiku-5-5", "stop_reason": "end_turn", "usage": { "input_tokens": 40, "output_tokens": 35 }, "container": null, "stop_sequence": null, "stop_details": null, "diagnostics": null }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'anthropic/claude-haiku-5.5',\n {\n max_tokens: 256,\n messages: [{ content: 'Classify this support ticket as billing, technical, or account: My invoice shows an unexpected charge.', role: 'user' }],\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"anthropic/claude-haiku-5.5\",\n \"max_tokens\": 256,\n \"messages\": [\n {\n \"content\": \"Classify this support ticket as billing, technical, or account: My invoice shows an unexpected charge.\",\n \"role\": \"user\"\n }\n ]\n}'" } ] }, { "name": "Structured Extraction", "description": "Use adaptive thinking for structured extraction.", "input": { "max_tokens": 1024, "messages": [ { "content": "Extract the order ID and requested action from: Please cancel order #A-1042 before it ships.", "role": "user" } ], "output_config": { "effort": "medium" }, "thinking": { "type": "adaptive" } }, "output": { "text": "**Order ID:** A-1042\n**Requested action:** Cancel the order before it ships" }, "raw_response": { "id": "msg_011CfoNx2fFMc8rnUuBBgE3A", "type": "message", "role": "assistant", "content": [ { "type": "text", "text": "**Order ID:** A-1042\n**Requested action:** Cancel the order before it ships" } ], "model": "claude-haiku-5-5", "stop_reason": "end_turn", "usage": { "input_tokens": 38, "output_tokens": 31 }, "container": null, "stop_sequence": null, "stop_details": null, "diagnostics": null }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'anthropic/claude-haiku-5.5',\n {\n max_tokens: 1024,\n messages: [{ content: 'Extract the order ID and requested action from: Please cancel order #A-1042 before it ships.', role: 'user' }],\n output_config: { effort: 'medium' },\n thinking: { type: 'adaptive' },\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"anthropic/claude-haiku-5.5\",\n \"max_tokens\": 1024,\n \"messages\": [\n {\n \"content\": \"Extract the order ID and requested action from: Please cancel order #A-1042 before it ships.\",\n \"role\": \"user\"\n }\n ],\n \"output_config\": {\"effort\": \"medium\"},\n \"thinking\": {\"type\": \"adaptive\"}\n}'" } ] }, { "name": "Streaming Response", "description": "Stream a low-latency response incrementally.", "input": { "max_tokens": 512, "messages": [ { "content": "Return a concise three-step deployment checklist.", "role": "user" } ], "stream": true }, "output": { "text": [ "**", "Three", "-Step Deployment", " Checklist**\n\n1. **", "Pre-deployment**", "\n - Conf", "irm all tests pass and", " code", " is", " reviewed and", " approved.\n - Ver", "ify config", "uration, environment variables,", " and secrets are set", " for the target environ", "ment.\n - Back up", " the current production", " state and", " pr", "epare a rollback plan", ".\n\n2. **Deplo", "y**\n - Release", " to", " production", " using", " the", " appro", "ved pipeline or", " process", ",", " av", "oiding manual chang", "es where", " possible.\n - Run", " database", " migrations or", " other", " required", " schema chang", "es, if any", ".\n - Monitor", " the r", "ollout in st", "ages if", " sup", "ported (", "e.g., canary or", " g", "radual release).\n\n3. **", "Post", "-deployment**", "\n - Run", " smoke tests on", " critical paths.", "\n - Check log", "s, error", " rates, and perform", "ance metrics against", " ba", "seline.\n - Not", "ify stakeholders of", " completion and ke", "ep the r", "ollback plan ", "ready for", " a def", "ined mon", "itoring window." ] }, "raw_response": [ { "type": "message_start", "message": { "model": "claude-haiku-5-5", "id": "msg_011CfoNx62eTigAN2u1rkUKg", "type": "message", "role": "assistant", "content": [], "container": null, "stop_reason": null, "stop_sequence": null, "stop_details": null, "usage": { "input_tokens": 23, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "cache_creation": { "ephemeral_5m_input_tokens": 0, "ephemeral_1h_input_tokens": 0 }, "output_tokens": 4, "service_tier": "standard", "inference_geo": "global" }, "diagnostics": null } }, { "type": "content_block_start", "index": 0, "content_block": { "type": "thinking", "thinking": "", "signature": "" } }, { "type": "ping" }, { "type": "content_block_delta", "index": 0, "delta": { "type": "thinking_delta", "thinking": "" } }, { "type": "content_block_delta", "index": 0, "delta": { "type": "signature_delta", "signature": "CAQS9AUKEAgSGAI4AUIIdGhpbmtpbmcSDPzqoxogD+QA0os+UBoM+QVfZN0e3ywz13HCIjAV6GBTLGVDWnPqCOYAnjRm7GYzPBKRllF0ooHPZuVt0hp7y0XbLfxI7m5Yf2Hl8OwqkQU+Qf2rhk54QF2E5ZFxoJbL58HIMueQkg4fC1r8BgSXH/TMoYfjMAE42xS9ozbY/Gm0p6+2XbjVqcoXFVSzfIiR01TEg2qpNyTU1SAzO9qTuK1nKrQ8SAg/MHbCnhd1Pslm8RJECI0mEscXYdVMqa9/H4WkjYLWFJzvD11gkBA5iFKyuiWHzwAPOWjzfUbtm9Gl4flrd0xkIr58sDFA+VjMVWCMZOyWbXaeeAae7Szax4Fo4AZ0wOd2s3aWZvDNaBq7dONc0YzxGe2+0LQNnC3G0kWstVIZRfArKMv/5ncXNQ23t2GzyoPSYu6i9/agal02UnZe1dxR+bDiju+e3DlJ74Eku5kGAi6HydfbiKaCwibF4Y5HnpftZu6ZiFeA3kCc/63euML3neKEKZXhrUrOc01esLDlskLDdboDEYfL7nw9np4Jk/iZWnRMVDoAN/k+KjrhU2MUn2Cf3na0cLiFjiWrfFiql7yi+FkD1jxsnimawVvD2jQ4UHBW0XQHu12HnS2CNwayP30gLsYH/Rvt401GKXeZMm+ezSCz3ox8fsA0jrFI8SVxiwJ/jtLJ7a91zNwah3EDs9q/23HMy3Dp4o6pKNVFpLlu0LZtCxaAD3BT3/tqHGjajIwGmyo0gh6ayporLoxzU6ul841XCuEAVF/fuZdn0TEoNxjDCrpGjl82PJ49hsMU5grF2SnBCgDnjnha+97X28KZfaP0AWqUNJQapnFx6mTZ4Pt9TsqaW3wYfA0pGL2vRN9ns0d0ihohwJAGy94ocs6xph+ds+jTBCvYKraNWpYmusxHVufWyW80AgCZbvcfn1i/PawiWifR7UHLXt2GvulPJts+MiNRYGsSsX+nFpcd5WGGsaoUhfcYAQ==" } }, { "type": "content_block_stop", "index": 0 }, { "type": "content_block_start", "index": 1, "content_block": { "type": "text", "text": "" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "**" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "Three" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "-Step Deployment" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " Checklist**\n\n1. **" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "Pre-deployment**" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "\n - Conf" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "irm all tests pass and" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " code" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " is" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " reviewed and" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " approved.\n - Ver" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ify config" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "uration, environment variables," } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " and secrets are set" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " for the target environ" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ment.\n - Back up" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " the current production" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " state and" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " pr" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "epare a rollback plan" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": ".\n\n2. **Deplo" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "y**\n - Release" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " to" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " production" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " using" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " the" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " appro" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ved pipeline or" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " process" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "," } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " av" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "oiding manual chang" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "es where" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " possible.\n - Run" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " database" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " migrations or" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " other" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " required" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " schema chang" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "es, if any" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": ".\n - Monitor" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " the r" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ollout in st" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ages if" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " sup" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ported (" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "e.g., canary or" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " g" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "radual release).\n\n3. **" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "Post" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "-deployment**" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "\n - Run" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " smoke tests on" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " critical paths." } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "\n - Check log" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "s, error" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " rates, and perform" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ance metrics against" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " ba" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "seline.\n - Not" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ify stakeholders of" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " completion and ke" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ep the r" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ollback plan " } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ready for" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": " a def" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "ined mon" } }, { "type": "content_block_delta", "index": 1, "delta": { "type": "text_delta", "text": "itoring window." } }, { "type": "content_block_stop", "index": 1 }, { "type": "message_delta", "delta": { "stop_reason": "end_turn", "stop_sequence": null, "stop_details": null, "container": null }, "usage": { "input_tokens": 23, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "output_tokens": 325, "output_tokens_details": { "thinking_tokens": 51 } } }, { "type": "message_stop" } ], "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'anthropic/claude-haiku-5.5',\n {\n max_tokens: 512,\n messages: [{ content: 'Return a concise three-step deployment checklist.', role: 'user' }],\n stream: true,\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"anthropic/claude-haiku-5.5\",\n \"max_tokens\": 512,\n \"messages\": [{\"content\": \"Return a concise three-step deployment checklist.\", \"role\": \"user\"}],\n \"stream\": true\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://platform.claude.com/docs/en/models/haiku-5-5/overview", "terms": "https://www.anthropic.com/legal/commercial-terms", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/anthropic/claude-haiku-5.5.png", "metadata": { "Adaptive Thinking": "Yes", "Architecture": "Transformer", "Input Price": "From $0.10 / MTok", "Output Price": "From $0.50 / MTok", "fedrampAvailable": "true" }, "request_formats": [ "anthropic-messages" ], "providers": null, "provider_details": [ { "id": "anthropic", "pricing": { "long_context_threshold_tokens": 100000, "short_context_input_tokens": 0.1, "short_context_input_cached_tokens": 0.01, "short_context_input_cache_creation_tokens": 0.125, "short_context_output_tokens": 0.5, "long_context_input_tokens": 0.5, "long_context_input_cached_tokens": 0.05, "long_context_input_cache_creation_tokens": 0.625, "long_context_output_tokens": 2.5 } } ], "banner": null, "created_at": "2026-10-12 14:30:47", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "messages": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": [ "user", "assistant", "system" ] }, "content": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "text": { "type": "string" }, "source": {}, "cache_control": { "type": "object", "properties": { "type": { "type": "string", "const": "ephemeral" }, "ttl": { "type": "string", "enum": [ "5m", "1h" ] } }, "required": [ "type" ], "additionalProperties": false } }, "required": [ "type" ], "additionalProperties": {} } } ] } }, "required": [ "role", "content" ], "additionalProperties": false } }, "max_tokens": { "type": "number", "exclusiveMinimum": 0 }, "system": { "anyOf": [ { "type": "string" }, { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "const": "text" }, "text": { "type": "string" }, "cache_control": { "type": "object", "properties": { "type": { "type": "string", "const": "ephemeral" }, "ttl": { "type": "string", "enum": [ "5m", "1h" ] } }, "required": [ "type" ], "additionalProperties": false } }, "required": [ "type", "text" ], "additionalProperties": {} } } ] }, "stream": { "type": "boolean" }, "metadata": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, "required": [ "messages", "max_tokens" ], "additionalProperties": {} }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "const": "message" }, "role": { "type": "string", "const": "assistant" }, "content": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "text": { "type": "string" } }, "required": [ "type" ], "additionalProperties": {} } }, "model": { "type": "string" }, "stop_reason": { "type": [ "string", "null" ] }, "usage": { "type": "object", "properties": { "input_tokens": { "type": "number" }, "output_tokens": { "type": "number" }, "cache_creation_input_tokens": { "type": [ "number", "null" ] }, "cache_read_input_tokens": { "type": [ "number", "null" ] }, "speed": { "type": [ "string", "null" ] } }, "required": [ "input_tokens", "output_tokens" ], "additionalProperties": {} } }, "required": [ "id", "type", "role", "content", "model", "stop_reason", "usage" ], "additionalProperties": {} } } }