Skip to content

Add claude-opus-4-8 to pricing matrix#469

Merged
willwashburn merged 3 commits into
mainfrom
claude/zen-volta-Pl6JG
May 31, 2026
Merged

Add claude-opus-4-8 to pricing matrix#469
willwashburn merged 3 commits into
mainfrom
claude/zen-volta-Pl6JG

Conversation

@willwashburn

Copy link
Copy Markdown
Member

Summary

Adds a claude-opus-4-8 entry to the vendored models.dev snapshot so cost reporting recognizes Claude Opus 4.8. The entry is added under the canonical anthropic provider (the snapshot compiled into the SDK via include_str!).

Pricing

Mirrors the claude-opus-4-7 entry, which matches the shared Opus 4.5/4.6/4.7 tier:

Field Value (per Mtok)
input $5
output $25
cache_read $0.5
cache_write $6.25
context 1,000,000
output limit 128,000

Why these numbers

Opus 4.5, 4.6, and 4.7 all share identical rates in the snapshot, so this follows the established pattern rather than guessing a new tier. There is no official models.dev data for 4.8 yet (pnpm run pricing:update pulls from models.dev, which doesn't list it), so the entry was added manually. The pricing table is keyed by model id with last-provider-wins, so a single canonical anthropic entry is enough to resolve claude-opus-4-8.

Note

If Opus 4.8's real list price differs from the 4.5–4.7 tier, the cost block should be updated with the correct numbers.

Verification

  • JSON round-trips and the entry lands only under the anthropic provider.
  • SDK + CLI build clean.
  • analyze:: test suite (pricing/cost) passes: 319 passed, 0 failed.

https://claude.ai/code/session_01X7HuKZV8ArVVeJBEkTW2L9


Generated by Claude Code

Add the Claude Opus 4.8 entry to the vendored models.dev snapshot under the
anthropic provider, mirroring the 4.7 entry: $5/$25 per Mtok input/output,
$0.5 cache-read, $6.25 cache-write, 1M context / 128k output. Matches the
shared Opus 4.5/4.6/4.7 pricing so cost reporting recognizes Opus 4.8.

https://claude.ai/code/session_01X7HuKZV8ArVVeJBEkTW2L9
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented May 31, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@agent-relay-bot[bot], we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 55 minutes and 19 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e595a232-16e7-47a5-9480-d71bd167d9a3

📥 Commits

Reviewing files that changed from the base of the PR and between d3b0e33 and ba790bf.

📒 Files selected for processing (1)
  • crates/relayburn-sdk/data/models.dev.json
📝 Walkthrough

Walkthrough

Updates the vendored models.dev pricing snapshot to include claude-opus-4-8 (documented in CHANGELOG) and adds test assertions verifying the bundled pricing table contains claude-opus-4-8 with expected input/output and cache rates.

Changes

Pricing Model Snapshot Documentation & Tests

Layer / File(s) Summary
Builtin pricing test assertions
crates/relayburn-sdk/src/analyze/pricing.rs
Test loads the built-in pricing snapshot and asserts claude-opus-4-8 has the expected input, output, cache_read, and cache_write rates.
Opus 4.8 pricing snapshot update changelog entry
CHANGELOG.md
Unreleased changelog documents that the vendored models.dev snapshot now includes claude-opus-4-8 with specified input/output token rates and cache read/write pricing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • AgentWorkforce/burn#390: Also updates bundled models.dev pricing snapshot and extends pricing assertions in pricing.rs.
  • AgentWorkforce/burn#304: Related changes to the bundled pricing snapshot/loader pipeline and snapshot vendoring.
  • AgentWorkforce/burn#388: Prior edits around load_builtin_pricing and snapshot parsing that touch the same test and snapshot areas.

Poem

🐰 A tiny hop, a price in sight,
Opus 4.8 joins the ledger bright.
Tests nod yes, the changelog sings,
Tokens counted, cache and things.
Rabbits cheer for tidy springs!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding a claude-opus-4-8 entry to the pricing matrix/models.dev snapshot.
Description check ✅ Passed The description is comprehensive and directly related to the changeset, explaining the rationale, pricing values, and verification steps taken.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/zen-volta-Pl6JG

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
CHANGELOG.md (1)

9-9: 💤 Low value

Consider condensing the pricing details.

The entry includes specific pricing numbers ($5/$25 per Mtok input/output, $0.5 cache-read, $6.25 cache-write, 1M context) that could be considered implementation backstory. As per coding guidelines, changelog entries should prefer concise, impact-first bullets that name what was touched and the practical effect.

♻️ Suggested condensed version
-- Pricing: added `claude-opus-4-8` to the vendored models.dev snapshot ($5/$25 per Mtok input/output, $0.5 cache-read, $6.25 cache-write, 1M context) so cost reporting recognizes Claude Opus 4.8.
+- Pricing: added `claude-opus-4-8` to the vendored models.dev snapshot so cost reporting recognizes Claude Opus 4.8.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` at line 9, Replace the verbose pricing breakdown with a
concise, impact-first changelog bullet: keep the subject "claude-opus-4-8" and
the action ("added to the vendored models.dev snapshot") and the practical
effect ("cost reporting recognizes Claude Opus 4.8"), but remove the specific
dollar amounts and technical backstory (e.g., "$5/$25 per Mtok",
cache-read/write fees, "1M context"); update the line referencing
claude-opus-4-8 accordingly so the entry is short and focused on impact.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@CHANGELOG.md`:
- Line 9: Replace the verbose pricing breakdown with a concise, impact-first
changelog bullet: keep the subject "claude-opus-4-8" and the action ("added to
the vendored models.dev snapshot") and the practical effect ("cost reporting
recognizes Claude Opus 4.8"), but remove the specific dollar amounts and
technical backstory (e.g., "$5/$25 per Mtok", cache-read/write fees, "1M
context"); update the line referencing claude-opus-4-8 accordingly so the entry
is short and focused on impact.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f292ee5a-f230-4d1e-a647-f1aea4149963

📥 Commits

Reviewing files that changed from the base of the PR and between e2598a7 and da107b4.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • crates/relayburn-sdk/data/models.dev.json

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 2 files

You’re at about 93% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Re-trigger cubic

@willwashburn willwashburn merged commit 39e4686 into main May 31, 2026
12 checks passed
@willwashburn willwashburn deleted the claude/zen-volta-Pl6JG branch May 31, 2026 18:38
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