Skip to content

feat(models): add GPT-6 Sol and Luna API pricing - #264

Merged
mike1858 merged 1 commit into
Piebald-AI:mainfrom
jimyag:feat/gpt-6-pricing
Sep 24, 2026
Merged

mike1858 merged 1 commit into
Piebald-AI:mainfrom
jimyag:feat/gpt-6-pricing

Conversation

@jimyag

@jimyag jimyag commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add official API pricing for GPT-6 Sol and GPT-6 Luna so their usage no longer falls back to an unknown-model cost of zero.

Changes

  • Register standard short- and long-context input, output, cache-read, and cache-write rates for both models from the OpenAI pricing page.
  • Add Fast (Priority), Flex, and Batch rates using the existing service-tier representation. Prompts above 272K input tokens use the long-context rates for the whole request.
  • Add model aliases and a cost test covering both context brackets and all four service tiers.

Verification

  • cargo fmt --all --quiet
  • cargo build --quiet
  • cargo test --quiet (477 passed)
  • cargo clippy --quiet -- -D warnings
  • cargo doc --quiet
  • git diff --check

Notes

  • Review focus: the 272K whole-request bracket and the Fast/Flex/Batch cache-write rates.
  • Regional processing's 10% uplift is not modeled because the existing cost input has no region field.

Summary by CodeRabbit

  • New Features
    • Added pricing information for GPT-6 Sol and GPT-6 Luna, including separate rates for cached reads and writes and context-length pricing based on the whole request.
    • Listed Priority rates at twice the standard rate and Flex and Batch rates at half the standard rate.
  • Updates
    • Updated GPT-6 Astra’s pricing note to clarify that cached tokens count toward the prompt threshold.

Add official standard, Fast, Flex, and Batch rates for both models, including cache writes and whole-request long-context pricing. Cover the published rates across service tiers and context brackets.

Signed-off-by: jimyag <git@jimyag.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 84f93c14-b3eb-41cb-9a76-8b08ec7850ac

📥 Commits

Reviewing files that changed from the base of the PR and between 3822147 and 81adb32.

📒 Files selected for processing (1)
  • src/models.rs

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The model registry adds GPT-6 Sol and Luna with standard and service-tier pricing, aliases, and tests for short and long context requests.

Changes

GPT-6 Sol and Luna pricing

Layer / File(s) Summary
Model pricing definitions
src/models.rs
Adds standard pricing for Sol and Luna, including doubled rates above the 272,000-token whole-request threshold. Updates the GPT-6 pricing note to include cached tokens in the prompt threshold.
Tier rates and validation
src/models.rs
Adds Priority, Flex, and Batch rates, model aliases, and tests of standard and tier costs across short and long contexts.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: mike1858

Merge Risk: ⚪ Minimal · up to 81adb

The GPT-6 Sol and Luna IDs and rates match the provider’s dedicated documentation; this change is mergeable after normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the addition of GPT-6 Sol and Luna API pricing, which is the main change.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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

A rabbit checks the rate cards bright,
Sol and Luna price things right.
Priority doubles as they hop,
Flex and Batch take half the crop.
Cached tokens join the prompt’s array,
Tests check each bracket on the way.

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

@mike1858 mike1858 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM; thank you!

@mike1858
mike1858 merged commit f66530b into Piebald-AI:main Sep 24, 2026
8 checks passed
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