Skip to content

feat(cost): add Claude Sonnet 4.6 model support#5579

Merged
chitalian merged 2 commits intoHelicone:mainfrom
ink-the-squid:ink/add-claude-sonnet-4-6
Feb 18, 2026
Merged

feat(cost): add Claude Sonnet 4.6 model support#5579
chitalian merged 2 commits intoHelicone:mainfrom
ink-the-squid:ink/add-claude-sonnet-4-6

Conversation

@ink-the-squid
Copy link
Contributor

Summary

Add Claude Sonnet 4.6 (released Feb 17, 2026) with support for Anthropic, Vertex, and Bedrock providers.

Pricing

  • ≤ 200K tokens: $3/MTok input, $15/MTok output
  • > 200K tokens: $6/MTok input, $22.50/MTok output
  • Cache write (5m): $3.75/MTok, Cache read: $0.30/MTok

Model Details

  • Context window: 1M tokens
  • Max output: 64K tokens
  • API model name: claude-sonnet-4-6-20260217

Changes

New files:

  • packages/cost/models/authors/anthropic/claude-4.6-sonnet/model.ts — model metadata
  • packages/cost/models/authors/anthropic/claude-4.6-sonnet/endpoints.ts — provider endpoints (anthropic, vertex, bedrock)

Modified files:

  • packages/cost/models/authors/anthropic/index.ts — register model + endpoints
  • packages/cost/providers/anthropic/index.ts — legacy ModelRow entry
  • packages/cost/unified/models.ts — unified model mapping
  • valhalla/jawn/src/lib/handlers/StripeIntegrationHandler.ts — Stripe billing model list

Notes

  • Pricing structure identical to Sonnet 4 / Sonnet 4.5 (same dollar amounts, same >200K tier)
  • OpenRouter and Helicone gateway endpoints not included yet — can add as follow-up
  • Versioned model ID claude-sonnet-4-6-20260217 based on naming convention — verify against actual API response

Add Claude Sonnet 4.6 (claude-sonnet-4-6-20260217) with support for
Anthropic, Vertex, and Bedrock providers.

Pricing: / per MTok (≤200K), /.50 per MTok (>200K)
Context: 1M tokens, Max output: 64K tokens

Files added:
- packages/cost/models/authors/anthropic/claude-4.6-sonnet/model.ts
- packages/cost/models/authors/anthropic/claude-4.6-sonnet/endpoints.ts

Files modified:
- packages/cost/models/authors/anthropic/index.ts
- packages/cost/providers/anthropic/index.ts
- packages/cost/unified/models.ts
- valhalla/jawn/src/lib/handlers/StripeIntegrationHandler.ts
@vercel
Copy link

vercel bot commented Feb 17, 2026

@ink-the-squid is attempting to deploy a commit to the Helicone Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

…able yet)

Verified against Anthropic API - the dated version claude-sonnet-4-6-20260217
returns not_found. Only the alias 'claude-sonnet-4-6' works currently.
@chitalian chitalian merged commit e922884 into Helicone:main Feb 18, 2026
4 of 9 checks passed
colegottdank added a commit that referenced this pull request Feb 19, 2026
PR #5579 added `claude-sonnet-4-6` but the Anthropic API returns
the dated version `claude-sonnet-4-6-20260217`. This caused $0 cost
calculations since the exact string match failed.

Adds the dated model ID to both the legacy cost lookup and unified
models mapping.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
H2Shami pushed a commit that referenced this pull request Feb 20, 2026
PR #5579 added `claude-sonnet-4-6` but the Anthropic API returns
the dated version `claude-sonnet-4-6-20260217`. This caused $0 cost
calculations since the exact string match failed.

Adds the dated model ID to both the legacy cost lookup and unified
models mapping.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants