Commit graph

1980 commits

Author SHA1 Message Date
superpoussin22
1d54c4502d
Add diarize model for openai (#18117)
* Add pricing and configuration for gpt-4o-transcribe-diarize

* Add GPT-4o transcription pricing and settings
2025-12-18 02:25:42 +05:30
Sameer Kankute
e3cf0110bb Rename: gemini-3-flash-preview 2025-12-17 21:48:15 +05:30
Sameer Kankute
ba90985300 Add reasoning effort mapping 2025-12-17 18:03:48 +05:30
Sameer Kankute
9e3f946a2e Add support for new flash model 2025-12-17 18:02:14 +05:30
Sameer Kankute
8f7ea945f1 add cached token pricing 2025-12-17 11:20:00 +05:30
Sameer Kankute
fabd832a39 Add gpt-image-1.5-2025-12-16 in model cost map 2025-12-17 11:16:22 +05:30
codgician
58e081b6e0
feat: add github_copilot model info (#17858) 2025-12-17 02:15:13 +04:00
Emerson Gomes
8df713b887
Add Azure DeepSeek V3.2 versions (#18019) 2025-12-17 01:01:57 +04:00
Chesars
7b6a00d3df fix: remove deprecated Groq models and update model registry
- Remove 20 deprecated/unavailable Groq models from registry
- Add groq/meta-llama/llama-guard-4-12b (new safety model)
- Add supports_vision to Llama 4 models (maverick, scout)
- Update Groq documentation with current model list
- Clean up test file references to deprecated models

Fixes #18043
2025-12-16 13:06:33 -03:00
Shivam Rawat
c754794bc3
[fix] add qwen3-embedding-8b input per token price (#18018)
* added embedding input token price

* added embedding input token price
2025-12-16 07:38:21 +05:30
Cesar Garcia
4fdbbdfe6d
fix(anthropic): correct claude-3-7-sonnet max_tokens to 64K default (#17979)
Claude 3.7 Sonnet's default max_output_tokens is 64000, not 128000.
The 128K output limit requires the beta header 'output-128k-2025-02-19'.

This fixes the integration test failure where requests with max_tokens=128000
were being rejected by the Anthropic API.

Fixes test_multiturn_tool_calls in test_anthropic_responses_api.py
2025-12-16 07:27:40 +05:30
Sameer Kankute
174ab1fc66
Merge pull request #17967 from BerriAI/litellm_fireworks_ai_reasoning_param_support
Add support for reasoning param for fireworks AI models
2025-12-15 22:04:04 +05:30
Sameer Kankute
8a6f6385ed
Merge pull request #17966 from BerriAI/litellm_fix_gpt-1_image_cost_1
fix: cost calculation of gpt-image 1 model
2025-12-15 22:03:58 +05:30
Sameer Kankute
57bf6f74e8
Merge pull request #17844 from SamAcctX/patch-2
OpenRouter GPT 5.2, Mistral 3, and Devstral 2
2025-12-15 18:32:50 +05:30
Sameer Kankute
858879919c Add support for ocr for vertex ai deepseek model 2025-12-15 11:45:04 +05:30
Sameer Kankute
57e75a3082 Add support for reasoning param 2025-12-15 09:12:35 +05:30
Sameer Kankute
4f82147746 fix: cost calculation of gpt-image 1 model 2025-12-15 08:16:23 +05:30
Emerson Gomes
d8fc5c3a37
Add Azure Cohere 4 reranking models (#17961) 2025-12-14 12:34:46 -08:00
Cesar Garcia
bd1a075a89
feat(stability): add Stability AI image generation support (#17894)
Add direct Stability AI REST API support for image generation endpoints.
This enables using Stability's SD3, SD3.5, and Stable Image models via
LiteLLM's OpenAI-compatible interface.

Changes:
- Add STABILITY provider to LlmProviders enum
- Create StabilityImageGenerationConfig with multipart/form-data support
- Add OpenAI size to Stability aspect_ratio mapping
- Register provider in ProviderConfigManager
- Add 9 Stability models to model_prices_and_context_window.json
- Add documentation at docs/providers/stability.md
- Add 25 unit tests

Supported models:
- stability/sd3, sd3-large, sd3-large-turbo, sd3-medium
- stability/sd3.5-large, sd3.5-large-turbo, sd3.5-medium
- stability/stable-image-ultra, stable-image-core
2025-12-14 08:29:45 +05:30
SamAcctX
7526fd1d9b
chore: Fix intentation 2025-12-13 11:35:31 -06:00
SamAcctX
cecffd335a
Merge branch 'BerriAI:main' into patch-2 2025-12-13 09:16:08 -06:00
Cesar Garcia
ed28818f76
feat(bedrock): add EU Claude Opus 4.5 model (#17897)
Add eu.anthropic.claude-opus-4-5-20251101-v1:0 to support
AWS Bedrock cross-region inference in EU regions.

Fixes #17867
2025-12-12 12:56:17 -08:00
Marty Sullivan
63df9392d4
add azure gpt-5.2 models (#17866) 2025-12-12 03:47:08 -08:00
SamAcctX
1d85242877
Merge branch 'BerriAI:main' into patch-2 2025-12-11 17:43:11 -06:00
jichmi
a13ee39da2
fix: update pricing for global.anthropic.claude-haiku-4-5-20251001-v1:0 (#17703)
* fix: update pricing for global.anthropic.claude-haiku-4-5-20251001-v1:0

* Update cache_creation_input_token_cost value
2025-12-11 15:29:46 -08:00
SamAcctX
8717f6f529
OpenRouter GPT 5.2, Mistral 3, and Devstral 2 2025-12-11 17:02:24 -06:00
Peter Dave Hello
70643a8b9c
Add support for OpenAI GPT-5.2 models (#17836)
References:
- https://openai.com/index/introducing-gpt-5-2/
- https://platform.openai.com/docs/models/gpt-5.2
2025-12-11 12:49:30 -08:00
Sameer Kankute
51065295ba Fix llm provider for azure_ai in model map 2025-12-11 11:36:56 +05:30
Cesar Garcia
b2e3f56f69
feat(models): add Mistral Codestral 2508, Devstral 2512, and Labs Devstral Small 2512 (#17801)
Add newly released Mistral coding models:
- mistral/codestral-2508: 256K context, $0.30/$0.90 per M tokens
- mistral/devstral-2512: 256K context, $0.40/$2.00 per M tokens
- mistral/labs-devstral-small-2512: 256K context, $0.10/$0.30 per M tokens
2025-12-10 19:14:02 -08:00
Sameer Kankute
ad45fc7cce
Merge pull request #17770 from BerriAI/litellm_deepseek_v3.2
Add DeepSeek-V3.2 model support
2025-12-10 22:28:50 +05:30
Sameer Kankute
05a82ae570 Add support for deepseek v3.2 2025-12-10 22:21:04 +05:30
Sameer Kankute
bcac9e41f6 Add support for computer use for gemini 2025-12-10 10:34:08 +05:30
Cesar Garcia
63a97db663
feat(voyage): add rerank API support (#17744)
* feat(voyage): add rerank API support

Add support for Voyage AI rerank models (rerank-2.5, rerank-2.5-lite,
rerank-2, rerank-2-lite) to the LiteLLM rerank API.

Changes:
- Add VoyageRerankConfig transformation class
- Register voyage provider in rerank_api/main.py
- Add voyage case in utils.py get_provider_rerank_config
- Add rerank-2.5 and rerank-2.5-lite models to pricing JSON
- Add unit tests for transformation logic
- Update documentation for voyage.md and rerank.md

Usage:
```python
from litellm import rerank

response = rerank(
    model="voyage/rerank-2.5",
    query="What is the capital of France?",
    documents=["Paris is...", "London is..."],
    top_n=3,
)
```

* refactor(voyage): simplify rerank transformation code

Remove verbose docstrings to align with other providers (jina_ai pattern).
No functional changes - 168 lines vs 169 for jina_ai.

* fix(voyage): remove incorrect input_cost_per_query from rerank models

Voyage AI charges per token, not per query. The input_cost_per_query
field was incorrectly set to the same value as input_cost_per_token
in the existing rerank-2 and rerank-2-lite models.

Removes input_cost_per_query from all Voyage rerank models:
- voyage/rerank-2
- voyage/rerank-2-lite
- voyage/rerank-2.5
- voyage/rerank-2.5-lite

Pricing source: https://docs.voyageai.com/docs/pricing
2025-12-09 17:34:09 -08:00
Ishaan Jaff
b673177b22
Add 227 new Fireworks AI models (#17692) 2025-12-08 18:57:43 -08:00
Ishaan Jaff
a904067d38
[Feat] New model - add bedrock writer models (#17685)
* add new bedrock models

* test bedrock writer models

* docs bedrock writer palmyra

* add palymra models

* add bedrock writer models

* docs fix
2025-12-08 17:49:06 -08:00
Cesar Garcia
e39ff3d022
feat: add Cerebras zai-glm-4.6 model support (#17683)
Add the new Z.ai GLM 4.6 reasoning model from Cerebras to the model
registry with pricing and capabilities configuration.
2025-12-08 17:43:11 -08:00
Ishaan Jaff
601da4a3d1
[Feat] New model - add nvidia nim llama-3.2-nv-rerankqa-1b-v2 (#17670)
* fix get_nvidia_nim_rerank_config

* add NvidiaNimRankingConfig

* add get_nvidia_nim_rerank_config

* add test_nvidia_nim_rerank_ranking_endpoint

* add /ranking model provider support

* feat: add nvidia/llama-3.2-nv-rerankqa-1b-v2
2025-12-08 15:25:23 -08:00
Emerson Gomes
b10cd13fd2
correct model type (#17635) 2025-12-07 23:18:54 -08:00
Marty Sullivan
d37f0b13f0
Add New Bedrock OSS Models to Model List (#17638)
* try adding new bedrock models to backup file

* add new models to main model list

* fix amazon.nova-2-lite pricing
2025-12-07 23:14:57 -08:00
Ishaan Jaffer
b4970f6033 amazon nova api fix 2025-12-06 16:09:27 -08:00
Anil Kodali
1a50a89cd3
[New Model] Add Amazon Nova as first party provider for chat completions (#17351)
* Add Amazon Nova as a first party provider

* Added new provider folder under llms/ to outline the openai supported params

* Updated supported endpoints on the documnetation
2025-12-06 14:43:55 -08:00
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
Cesar Garcia
7259de2f12
feat: add Mistral Large 3 model support (#17547)
Add Mistral Large 3 (675B MoE) to model catalog for both providers:
- mistral/mistral-large-3
- azure_ai/mistral-large-3

Specs:
- 256k context window
- $0.50/1M input, $1.50/1M output
- Supports vision (multimodal)
- Supports function calling

Closes #17527
2025-12-05 15:26:20 -08:00
Cesar Garcia
4eb9f8036f
Add gpt-5.1-codex-max model pricing and configuration (#17541)
Add support for OpenAI's gpt-5.1-codex-max model, their most intelligent
coding model optimized for long-horizon agentic coding tasks.

- 400k context window, 128k max output tokens
- $1.25/1M input, $10/1M output, $0.125/1M cached input
- Only available via /v1/responses endpoint
- Supports vision, function calling, reasoning, prompt caching
2025-12-05 12:46:14 -08:00
Ishaan Jaff
8ee8cad4f1
feat - new model amazon.titan-image-generator-v2:0 (#17488) 2025-12-04 09:26:55 -08:00
Cesar Garcia
664b384dce
fix(pricing): add missing Moonshot turbo models and fix incorrect pricing (#17432)
Fixes #17417

- Add moonshot/kimi-k2-turbo-preview ($1.15/$8.00 input/output)
- Add moonshot/kimi-k2-thinking-turbo ($1.15/$8.00 input/output)
- Add moonshot/kimi-k2-0905-preview ($0.60/$2.50 input/output, 262K context)
- Fix moonshot/kimi-thinking-preview pricing ($30/$30 -> $0.60/$2.50)
- Fix wandb/moonshotai/Kimi-K2-Instruct absurd pricing ($135K/$400K -> $0.60/$2.50)
2025-12-03 21:31:49 -08:00
Cesar Garcia
b05f6d3cfd
fix(groq): check supports_response_schema before using json_tool_call workaround (#17438)
Fixes issue where LiteLLM used the json_tool_call workaround for all Groq
models, even those that support native json_schema (e.g., gpt-oss-120b,
llama-4, kimi-k2). This caused errors when users passed their own tools
alongside structured outputs.

Changes:
- Check `supports_response_schema()` before using the workaround
- Only use json_tool_call workaround for models without native support
- Add clear error message when using workaround with user-provided tools
- Update model config to set `supports_response_schema: false` for models
  that don't support native json_schema
- Add unit tests for structured output handling
2025-12-03 21:31:13 -08:00
Mariano Hielpos
566adebdec
update model_prices_and_context_window.json (#17376)
* update model_prices_and_context_window.json

* update

* update
2025-12-02 22:06:51 -08:00
mossbanay
ae633184f7
Add model price & details for Bedrock model global.anthropic.claude-opus-4-5-20251101-v1:0 (#17380) 2025-12-02 22:02:57 -08:00
Matt Greathouse
f22bc0aab2
Support Deepseek 3.2 with Reasoning (#17384)
* Add openrouter/deepseek/deepseek-v3.2

* Added deepseek-provided v3.2

* Allow reasoning effort param for openrouter models that support it

* Added tests
2025-12-02 22:00:19 -08:00