Skip to content

[AI GATEWAY] ADD BEDROCK MODEL PRICES #2771

Open
Aakashwije wants to merge 4 commits into
wso2:multi-provider-routingfrom
Aakashwije:bedrock_model_prices
Open

[AI GATEWAY] ADD BEDROCK MODEL PRICES #2771
Aakashwije wants to merge 4 commits into
wso2:multi-provider-routingfrom
Aakashwije:bedrock_model_prices

Conversation

@Aakashwije

Copy link
Copy Markdown
Contributor

Purpose

Add AWS Bedrock model pricing so the gateway can calculate LLM usage costs for Bedrock and Bedrock Converse models.

Goals

  • Support cost calculation for Bedrock model requests.
  • Keep Docker Compose and Helm deployments aligned with the same pricing data.

Approach

  • Imported 418 Bedrock pricing entries from the LiteLLM model-pricing source.
  • Added the entries to both gateway pricing files:
    • gateway/configs/llm-pricing/model_prices.json
    • kubernetes/helm/gateway-helm-chart/files/llm-pricing/model_prices.json
  • Preserved the platform pricing schema by mapping LiteLLM’s litellm_provider field to provider.

User stories

As an API platform user routing requests to AWS Bedrock models, I need the gateway to calculate request costs using the corresponding model pricing.

Documentation

N/A this is an internal pricing-data update and does not change product-facing configuration or user workflows.

Automation tests

  • Unit tests

    N/A - configuration-only JSON change.

  • Integration tests

    N/A - no runtime behavior changes were introduced.

  • Validation performed

    • Validated both JSON files parse successfully.
    • Confirmed all 418 Bedrock entries were added to both files.
    • Confirmed the imported entries exactly match the transformed LiteLLM source data.
    • Ran whitespace validation with git diff --check.

Security checks

  • Followed secure coding standards: Yes - configuration-only data update.
  • Ran FindSecurityBugs plugin and verified report: No - no Java code changes.
  • Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets: Yes.

Samples

N/A - no samples were added or changed.

Related PRs

N/A

Test environment

  • macOS
  • No JDK, database, or browser testing required for this JSON-only change.

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c8f45a8f-9b95-4afa-9766-ff5649d6556c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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.

1 participant