Charge Grok Imagine images by official per-image tiers - #1089
Open
think-back wants to merge 1 commit into
Open
think-back wants to merge 1 commit into
think-back wants to merge 1 commit into
Conversation
Align Grok Imagine billing with xAI per-image pricing and keep higher resolution and quality tiers request-aware.\n\nConstraint: xAI bills generated images per image, with resolution and quality tiers for Imagine 2.0 and Pro.\nRejected: Token multipliers for Grok image generation | They do not match the upstream billing contract.\nConfidence: high\nScope-risk: narrow\nDirective: Keep model_price at each model's lowest official tier; derive only documented request tiers.\nTested: go test ./dto ./relay/helper ./pkg/billingexpr -count=1\nNot-tested: Live Flatkey settings update pending authenticated admin session.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Official tiers
grok-imagine-image: $0.02/image for 1K and 2Kgrok-imagine-image-2.0: $0.04 (1K low), $0.06 (2K low / 1K medium), $0.08 (2K medium)grok-imagine-image-pro/grok-imagine-image-quality: $0.05 (1K), $0.07 (2K)Verification
go test ./dto -count=1go test ./pkg/billingexpr -count=1go test ./relay/helper -count=1(one existing timing-sensitive stream scanner test was flaky in this run; no code path from this change is involved)