litellm/docs/my-website
Cesar Garcia 829b06f53f
Fix: Gemini image_tokens incorrectly treated as text tokens in cost calculation (#17554)
When Gemini image generation models return `text_tokens=0` with `image_tokens > 0`,
the cost calculator was assuming no token breakdown existed and treating all
completion tokens as text tokens, resulting in ~10x underestimation of costs.

Changes:
- Fix cost calculation logic to respect token breakdown when image/audio/reasoning
  tokens are present, even if text_tokens=0
- Add `output_cost_per_image_token` pricing for gemini-3-pro-image-preview models
- Add test case reproducing the issue
- Add documentation explaining image token pricing

Fixes #17410
2025-12-05 15:55:38 -08:00
..
blog docs: document azure ai provider for anthropic 2025-12-01 14:05:54 -08:00
docs Fix: Gemini image_tokens incorrectly treated as text tokens in cost calculation (#17554) 2025-12-05 15:55:38 -08:00
img [Docs] A2a - Permission management (#17515) 2025-12-04 17:29:47 -08:00
release_notes docs fix stable 2025-12-03 14:12:50 -08:00
src Cleanup: Remove orphan docs pages and Docusaurus template files (#17356) 2025-12-02 22:25:26 -08:00
static Change favicon (#16837) 2025-11-19 20:38:22 -08:00
.gitignore Inkeep searchbar and chat added to the Docs (#12030) 2025-06-26 10:13:42 -07:00
.trivyignore security fix 2025-11-14 18:43:41 -08:00
babel.config.js updating docs 2023-08-12 11:30:32 -07:00
Dockerfile fix docs warning (#7419) 2024-12-25 16:42:14 -08:00
docusaurus.config.js docs: add initial blog post for Gemini 3 on LiteLLM 2025-11-19 20:22:24 -08:00
index.md fix keys 2023-08-17 16:13:52 -07:00
package-lock.json sec fix 2025-11-26 18:23:18 -08:00
package.json sec fix 2025-11-26 18:23:18 -08:00
README.md updating docs 2023-08-12 11:30:32 -07:00
sidebars.js Merge pull request #17519 from BerriAI/litellm_cursor_integration 2025-12-05 22:23:45 +05:30

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

$ USE_SSH=true yarn deploy

Not using SSH:

$ GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.