The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Feature] Add Gemini 3.1 Flash Image Preview input and output cost details
David Velarde29d1d0479f3e
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.jsonindex 5a43447e2c2..f785fbbbb6e 100644--- a/model_prices_and_context_window.json+++ b/model_prices_and_context_window.json@@ -16422,8 +16422,8 @@"supports_web_search": true},"gemini/gemini-3.1-flash-image-preview": {- "input_cost_per_image": 0.0001375,"input_cost_per_token": 2.5e-07,+ "input_cost_per_token_batches": 1.25e-07,"litellm_provider": "gemini","max_input_tokens": 65536,"max_output_tokens": 32768,@@ -16431,13 +16431,16 @@"mode": "image_generation","output_cost_per_image": 0.045,"output_cost_per_image_token": 6e-05,+ "output_cost_per_image_token_batches": 3e-05,"output_cost_per_token": 1.5e-06,+ "output_cost_per_token_batches": 7.5e-07,"rpm": 1000,"tpm": 4000000,"source": "https://ai.google.dev/gemini-api/docs/pricing#gemini-3.1-flash-image-preview","supported_endpoints": ["/v1/chat/completions",- "/v1/completions"+ "/v1/completions",+ "/v1/batch"],"supported_modalities": ["text",