Observed since 21 Oct, 11:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Intelligent routing of LLM API calls across multiple providers with automatic fallbacks, cost optimization, and monitoring
Intelligent routing of LLM API calls across multiple providers with automatic fallbacks, cost optimization, caching, health monitoring, and retry logic.
pip install ai-llm-router
from llm_router import LLMRouter, RouterConfig
from llm_router.providers import OpenAIProvider, AnthropicProvider
# Configure providers
config = RouterConfig(
providers=[
OpenAIProvider(api_key="your-openai-key"),
AnthropicProvider(api_key="your-anthropic-key")
],
strategy="priority"
)
# Create router
router = LLMRouter(config)
# Make a request
response = await router.chat_completion(
messages=[{"role": "user", "content": "Hello, world!"}],
model="gpt-4"
)
After installation, you can use the CLI:
ai-llm-router chat --provider openai --model gpt-4 --message "Hello, world!"
For detailed documentation, examples, and API reference, visit our GitHub repository.
Sherin Joseph - LinkedIn
MIT License - see LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 30 Jun 2025 | 17 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:16a9781fde63d50b2aa2f9c2c900b88bf7742c4712c6765c396ff4f7805b3ad8