Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat(model-bank): add Claude Haiku 5.5 (#20517)

Bryan9ea9e95ef9af
diff --git a/packages/model-bank/src/aiModels/aihubmix.ts b/packages/model-bank/src/aiModels/aihubmix.ts
index 3d59c5b0c75..5c84e1f2899 100644
--- a/packages/model-bank/src/aiModels/aihubmix.ts
+++ b/packages/model-bank/src/aiModels/aihubmix.ts
@@ -1174,6 +1174,72 @@ const aihubmixChatModels: AIChatModelCard[] = [
},
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_000_000,
+ description:
+ "Claude Haiku 5.5 is Anthropic's fastest and most cost-efficient model, built for high-volume, latency-sensitive work such as classification, extraction, routing, and subagent tasks, with adaptive thinking and adjustable effort.",
+ displayName: 'Claude Haiku 5.5',
+ enabled: true,
+ family: 'claude-haiku',
+ generation: 'claude-5.5',
+ id: 'claude-haiku-5-5',
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.01, upTo: 100_000 },
+ { rate: 0.05, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.1, upTo: 100_000 },
+ { rate: 0.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.5, upTo: 100_000 },
+ { rate: 2.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.125, upTo: 100_000 },
+ { rate: 0.625, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-10-07',
+ settings: {
+ disabledParams: ['temperature', 'top_p'],
+ extendParams: ['disableContextCaching', 'enableAdaptiveThinking', 'opus47Effort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/anthropic.ts b/packages/model-bank/src/aiModels/anthropic.ts
index 1a1015e070c..d797985444b 100644
--- a/packages/model-bank/src/aiModels/anthropic.ts
+++ b/packages/model-bank/src/aiModels/anthropic.ts
@@ -1,6 +1,78 @@
import { type AIChatModelCard } from '../types/aiModel';
const anthropicChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_000_000,
+ description:
+ "Claude Haiku 5.5 is Anthropic's fastest and most cost-efficient model, built for high-volume, latency-sensitive work such as classification, extraction, routing, and subagent tasks, with adaptive thinking and adjustable effort.",
+ displayName: 'Claude Haiku 5.5',
+ enabled: true,
+ family: 'claude-haiku',
+ generation: 'claude-5.5',
+ id: 'claude-haiku-5-5',
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ // Priced by prompt length: once a prompt (cache reads and writes included) exceeds 100K
+ // tokens, every unit of the request is billed at the higher tier.
+ // https://platform.claude.com/docs/en/about-claude/pricing#long-context-pricing
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.01, upTo: 100_000 },
+ { rate: 0.05, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.1, upTo: 100_000 },
+ { rate: 0.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.5, upTo: 100_000 },
+ { rate: 2.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.125, upTo: 100_000 },
+ { rate: 0.625, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-10-07',
+ // Unlike Opus 5.5 / Sonnet 5.5, thinking can still be disabled (at effort `high` or below),
+ // so the `enableAdaptiveThinking` toggle stays.
+ // https://platform.claude.com/docs/en/models/haiku-5-5/whats-new-haiku-5-5
+ settings: {
+ disabledParams: ['temperature', 'top_p'],
+ extendParams: ['disableContextCaching', 'enableAdaptiveThinking', 'opus47Effort'],
+ searchImpl: 'params',
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/bedrock.ts b/packages/model-bank/src/aiModels/bedrock.ts
index acd7c2dd897..dae8221bcaf 100644
--- a/packages/model-bank/src/aiModels/bedrock.ts
+++ b/packages/model-bank/src/aiModels/bedrock.ts
@@ -1,6 +1,71 @@
import type { AIChatModelCard } from '../types/aiModel';
const bedrockChatModels: AIChatModelCard[] = [
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_000_000,
+ description:
+ "Claude Haiku 5.5 is Anthropic's fastest and most cost-efficient model, built for high-volume, latency-sensitive work such as classification, extraction, routing, and subagent tasks, with adaptive thinking and adjustable effort.",
+ displayName: 'Claude Haiku 5.5',
+ enabled: true,
+ family: 'claude-haiku',
+ generation: 'claude-5.5',
+ id: 'global.anthropic.claude-haiku-5-5',
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.01, upTo: 100_000 },
+ { rate: 0.05, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.1, upTo: 100_000 },
+ { rate: 0.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.5, upTo: 100_000 },
+ { rate: 2.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.125, upTo: 100_000 },
+ { rate: 0.625, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-10-07',
+ // Thinking can still be disabled on Haiku 5.5 (at effort `high` or below), so the toggle stays.
+ settings: {
+ disabledParams: ['temperature', 'top_p'],
+ extendParams: ['disableContextCaching', 'enableAdaptiveThinking', 'opus47Effort'],
+ },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-bank/src/aiModels/openrouter.ts b/packages/model-bank/src/aiModels/openrouter.ts
index 20d9e4e0eee..cfc15c4ecd9 100644
--- a/packages/model-bank/src/aiModels/openrouter.ts
+++ b/packages/model-bank/src/aiModels/openrouter.ts
@@ -11,6 +11,69 @@ const openrouterChatModels: AIChatModelCard[] = [
id: 'openrouter/auto',
type: 'chat',
},
+ {
+ abilities: {
+ functionCall: true,
+ reasoning: true,
+ search: true,
+ structuredOutput: true,
+ vision: true,
+ },
+ contextWindowTokens: 1_000_000,
+ description:
+ "Claude Haiku 5.5 is Anthropic's fastest and most cost-efficient model, built for high-volume, latency-sensitive work such as classification, extraction, routing, and subagent tasks, with adaptive thinking and adjustable effort.",
+ displayName: 'Claude Haiku 5.5',
+ enabled: true,
+ family: 'claude-haiku',
+ generation: 'claude-5.5',
+ id: 'anthropic/claude-haiku-5.5',
+ knowledgeCutoff: '2026-06',
+ maxOutput: 128_000,
+ pricing: {
+ units: [
+ {
+ name: 'textInput_cacheRead',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.01, upTo: 100_000 },
+ { rate: 0.05, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.1, upTo: 100_000 },
+ { rate: 0.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textOutput',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.5, upTo: 100_000 },
+ { rate: 2.5, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ {
+ name: 'textInput_cacheWrite',
+ strategy: 'tiered',
+ tiers: [
+ { rate: 0.125, upTo: 100_000 },
+ { rate: 0.625, upTo: 'infinity' },
+ ],
+ unit: 'millionTokens',
+ },
+ ],
+ },
+ releasedAt: '2026-10-07',
+ // Budget tokens are rejected on Haiku 5.5, so no `reasoningBudgetToken` toggle.
+ settings: { extendParams: ['disableContextCaching'], searchImpl: 'params' },
+ type: 'chat',
+ },
{
abilities: {
functionCall: true,
diff --git a/packages/model-runtime/src/core/usageConverters/utils/computeChatCost.test.ts b/packages/model-runtime/src/core/usageConverters/utils/computeChatCost.test.ts
index d527ab7bb19..f801dac7faf 100644
--- a/packages/model-runtime/src/core/usageConverters/utils/computeChatCost.test.ts
+++ b/packages/model-runtime/src/core/usageConverters/utils/computeChatCost.test.ts
@@ -1361,6 +1361,42 @@ describe('computeChatPricing', () => {
);
expect(cacheWrite?.credits).toBe(0); // No credits when lookup params undefined
});
+
+ describe('Claude Haiku 5.5 prompt-length pricing', () => {
+ const pricing = anthropicChatModels.find(
+ (model: { id: string }) => model.id === 'claude-haiku-5-5',
+ )?.pricing;
+
+ it('bills a prompt of exactly 100K tokens at the base tier', () => {
+ const usage: ModelTokensUsage = {
+ inputCacheMissTokens: 60_000,
+ inputCachedTokens: 30_000,
+ inputWriteCacheTokens: 10_000,
+ outputTextTokens: 2_000,
+ totalInputTokens: 100_000,
+ };
+
+ const result = computeChatCost(pricing, usage);
+ expect(result?.issues).toHaveLength(0);
+ // 60K × $0.10 + 30K × $0.01 + 10K × $0.125 + 2K × $0.50 (per million tokens)
+ expect(result?.totalCredits).toBe(8_550);
+ });
+
+ it('bills every unit at the higher tier once the prompt, cache included, exceeds 100K', () => {
+ const usage: ModelTokensUsage = {
+ inputCacheMissTokens: 60_000,
+ inputCachedTokens: 30_000,
+ inputWriteCacheTokens: 20_000,
+ outputTextTokens: 2_000,
+ totalInputTokens: 110_000,
+ };
+
+ const result = computeChatCost(pricing, usage);
+ expect(result?.issues).toHaveLength(0);
+ // 60K × $0.50 + 30K × $0.05 + 20K × $0.625 + 2K × $2.50 (per million tokens)
+ expect(result?.totalCredits).toBe(49_000);
+ });
+ });
});
describe('Edge Cases', () => {
diff --git a/packages/model-runtime/src/providers/anthropic/modelId.test.ts b/packages/model-runtime/src/providers/anthropic/modelId.test.ts
index b10eca5f96c..dec3b1b7a89 100644
--- a/packages/model-runtime/src/providers/anthropic/modelId.test.ts
+++ b/packages/model-runtime/src/providers/anthropic/modelId.test.ts
@@ -174,6 +174,8 @@ describe('isAlwaysThinkingClaudeModel', () => {
it('should return false for models that accept disabled thinking', () => {
expect(isAlwaysThinkingClaudeModel('claude-opus-5')).toBe(false);
expect(isAlwaysThinkingClaudeModel('claude-sonnet-5')).toBe(false);
+ // Haiku 5.5 still accepts `disabled` at effort `high` or below.
+ expect(isAlwaysThinkingClaudeModel('claude-haiku-5-5')).toBe(false);
expect(isAlwaysThinkingClaudeModel('claude-opus-4-8')).toBe(false);
expect(isAlwaysThinkingClaudeModel('claude-sonnet-4-6')).toBe(false);
expect(isAlwaysThinkingClaudeModel('gpt-5')).toBe(false);
@@ -212,6 +214,10 @@ describe('supportsClaudeEffortLevel', () => {
['claude-fable-5-1', 'xhigh', true],
['claude-mythos-preview', 'max', true],
['claude-mythos-preview', 'xhigh', false],
+ ['claude-haiku-5-5', 'low', true],
+ ['claude-haiku-5-5', 'xhigh', true],
+ ['global.anthropic.claude-haiku-5-5', 'max', true],
+ ['anthropic/claude-haiku-5.5', 'medium', true],
['gpt-5', 'high', false],
])('should report model %s effort %s support as %s', (model, effort, expected) => {
expect(supportsClaudeEffortLevel(model, effort)).toBe(expected);
@@ -242,6 +248,7 @@ describe('rejectsForcedToolChoice', () => {
expect(rejectsForcedToolChoice('claude-mythos-5')).toBe(false);
expect(rejectsForcedToolChoice('claude-opus-5')).toBe(false);
expect(rejectsForcedToolChoice('claude-sonnet-5')).toBe(false);
+ expect(rejectsForcedToolChoice('claude-haiku-5-5')).toBe(false);
expect(rejectsForcedToolChoice('claude-opus-4-8')).toBe(false);
expect(rejectsForcedToolChoice('gpt-5')).toBe(false);
});
@@ -252,6 +259,7 @@ describe('rejectsDisabledThinkingAtEffort', () => {
expect(rejectsDisabledThinkingAtEffort('claude-opus-5', 'xhigh')).toBe(true);
expect(rejectsDisabledThinkingAtEffort('claude-opus-5', 'max')).toBe(true);
expect(rejectsDisabledThinkingAtEffort('global.anthropic.claude-sonnet-5', 'max')).toBe(true);
+ expect(rejectsDisabledThinkingAtEffort('claude-haiku-5-5', 'xhigh')).toBe(true);
});
it('should keep every lower effort level valid alongside disabled thinking', () => {
diff --git a/packages/model-runtime/src/providers/anthropic/modelId.ts b/packages/model-runtime/src/providers/anthropic/modelId.ts
index e3afa3f6444..4a9fd2bf6f1 100644
--- a/packages/model-runtime/src/providers/anthropic/modelId.ts
+++ b/packages/model-runtime/src/providers/anthropic/modelId.ts
@@ -208,7 +208,10 @@ export const supportsClaudeEffortLevel = (
if (!parsed) return false;
const isSupportedModel =
- (parsed.majorVersion === 5 && isClaudeFamily(parsed, CLAUDE_5_EFFORT_FAMILIES)) ||
+ (parsed.majorVersion === 5 &&
+ (isClaudeFamily(parsed, CLAUDE_5_EFFORT_FAMILIES) ||
+ // Haiku 5.5 is the first Haiku with effort, and it supports all five levels.
+ (parsed.family === 'haiku' && hasMinorVersionAtLeast(parsed, 5)))) ||
(parsed.majorVersion === 4 &&
((parsed.family === 'opus' &&
parsed.minorVersion !== undefined &&