Skip to content

[Chore] Update aiml model pricing - #22139

Merged
Sameerlite merged 1 commit into
mainfrom
litellm_fix_aiml_pricing
Feb 26, 2026
Merged

[Chore] Update aiml model pricing#22139
Sameerlite merged 1 commit into
mainfrom
litellm_fix_aiml_pricing

Conversation

@Sameerlite

@Sameerlite Sameerlite commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Relevant issues

Prices of aiml were updated: https://aimlapi.com/ai-ml-api-pricing

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem
  • I have requested a Greptile review by commenting @greptileai and received a Confidence Score of at least 4/5 before requesting a maintainer review

CI (LiteLLM team)

CI status guideline:

  • 50-55 passing tests: main is stable with minor issues.
  • 45-49 passing tests: acceptable but needs attention
  • <= 40 passing tests: unstable; be careful with your merges and assess the risk.
  • Branch creation CI run
    Link:

  • CI run for the last commit
    Link:

  • Merge / cherry-pick CI run
    Links:

Type

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test

Changes

@vercel

vercel Bot commented Feb 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Building Building Preview, Comment Feb 26, 2026 3:24am

Request Review

@greptile-apps

greptile-apps Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates output_cost_per_image pricing for 11 AIML image generation models across both model_prices_and_context_window.json and its backup file. All changes are price increases (~24% on average). Both files remain in sync and valid JSON.

  • Updated pricing for DALL-E 2, DALL-E 3, Flux Pro, Flux Dev, Flux Schnell, Flux Realism, Flux Kontext Max/Pro, Imagen 4.0 Ultra, and Nano Banana Pro
  • aiml/flux-pro/v1.1-ultra is the only AIML image model not updated — may be an oversight
  • No code logic changes; data-only PR

Confidence Score: 4/5

  • This PR is safe to merge — it only updates pricing values in JSON config files with no code logic changes.
  • Data-only changes to pricing JSON files. Both files stay in sync. One model (aiml/flux-pro/v1.1-ultra) may have been unintentionally skipped, but this is not a breaking issue.
  • Verify that aiml/flux-pro/v1.1-ultra in model_prices_and_context_window.json (line 184) was intentionally left unchanged.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Updated output_cost_per_image for 11 AIML image generation models. One model (aiml/flux-pro/v1.1-ultra) may have been missed.
litellm/model_prices_and_context_window_backup.json Backup copy, identical changes to the main pricing file. Both files remain in sync.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[AIML Pricing Update PR] --> B[model_prices_and_context_window.json]
    A --> C[litellm/model_prices_and_context_window_backup.json]
    B --> D[11 Image Models Updated]
    C --> E[11 Image Models Updated - Identical]
    D --> F[dall-e-2: $0.021 → $0.026]
    D --> G[dall-e-3: $0.042 → $0.052]
    D --> H[flux-pro: $0.053 → $0.065]
    D --> I[flux-pro/v1.1: $0.042 → $0.052]
    D --> J[flux-realism: $0.037 → $0.046]
    D --> K[flux/dev: $0.026 → $0.033]
    D --> L[flux/schnell: $0.003 → $0.004]
    D --> M[kontext-max: $0.084 → $0.104]
    D --> N[kontext-pro: $0.042 → $0.052]
    D --> O[imagen-4.0-ultra: $0.063 → $0.078]
    D --> P[nano-banana-pro: $0.1575 → $0.195]
    style A fill:#4CAF50,color:white
Loading

Last reviewed commit: c845bdc

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

@greptile-apps

greptile-apps Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (1)

model_prices_and_context_window.json
Possible missed pricing update

aiml/flux-pro/v1.1-ultra is the only AIML image generation model whose output_cost_per_image was not updated in this PR. All other 11 AIML image models received price increases (~24% on average). Was this intentionally left unchanged, or is this an oversight?

@Sameerlite
Sameerlite merged commit 573969a into main Feb 26, 2026
53 of 82 checks passed
@ishaan-berri
ishaan-berri deleted the litellm_fix_aiml_pricing branch March 26, 2026 22:29
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
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