Skip to content

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]

feat(provider): add AIHubMix as an OpenAI-compatible provider (#24294)

xinrui44ab016743c9
diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.json
index 275c352b39e..5dd1247001e 100644
--- a/litellm/llms/openai_like/providers.json
+++ b/litellm/llms/openai_like/providers.json
@@ -101,5 +101,10 @@
"param_mappings": {
"max_completion_tokens": "max_tokens"
}
+ },
+ "aihubmix": {
+ "base_url": "https://aihubmix.com/v1",
+ "api_key_env": "AIHUBMIX_API_KEY",
+ "api_base_env": "AIHUBMIX_API_BASE"
}
}
diff --git a/provider_endpoints_support.json b/provider_endpoints_support.json
index 6f23c87f911..ed49c146210 100644
--- a/provider_endpoints_support.json
+++ b/provider_endpoints_support.json
@@ -193,6 +193,23 @@
"a2a": false
}
},
+ "aihubmix": {
+ "display_name": "AIHubMix (`aihubmix`)",
+ "url": "https://docs.litellm.ai/docs/providers/aihubmix",
+ "endpoints": {
+ "chat_completions": true,
+ "messages": true,
+ "responses": true,
+ "embeddings": true,
+ "image_generations": true,
+ "audio_transcriptions": true,
+ "audio_speech": true,
+ "moderations": true,
+ "batches": false,
+ "rerank": true,
+ "a2a": false
+ }
+ },
"assemblyai": {
"display_name": "AssemblyAI (`assemblyai`)",
"url": "https://docs.litellm.ai/docs/pass_through/assembly_ai",