A3M Router - Python Package
Intelligent LLM routing for Python applications.
Why A3M Router?
| Problem | Solution |
|---|---|
| GPT-4o is $15/1M tokens | A3M routes to $0.001 providers |
| Managing 80+ API keys | One endpoint, A3M handles the rest |
| Provider goes down | Automatic failover to next best option |
| Need best answer, cost doesn't matter | Parallel ensemble calls |
Installation
pip install a3m-router
Quick Start
from a3m.router import A3MRouter
router = A3MRouter(model="auto")
result = router.route("Explain quantum entanglement")
print(result.content)
Features
- 80+ Providers - OpenAI, Anthropic, Groq, Mistral, DeepSeek, and more
- 14% Faster - Optimized routing vs OpenRouter
- 92% Cheaper - Routes to cheapest capable provider
- OpenAI Compatible - Use existing OpenAI SDK code
- Adaptive Memory - Learns from routing patterns
Performance
| Metric | A3M Router | OpenRouter |
|---|---|---|
| Latency | 162ms | 189ms |
| Cost/1K | $0.00012 | $0.0015 |
| Quality | 94% | 92% |
Documentation
Full documentation: https://github.com/Das-rebel/a3m-router#readme
License
MIT License
Metadata
Release files for a3m-router 2.16.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| a3m_router-2.16.0.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| a3m_router-2.16.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / a3m_router-2.16.0.tar.gz
| Download URL | a3m_router-2.16.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7dace908d41e5d2a26b708a58fa9b0d2024cc0da5a35b0f7a6996dc9e2c20f14
|
|
BLAKE2b-256 checksum How to use checksums |
7335168797f1c36b5b7c183821993d27e581efaeabb300d2d4d0b76218de2f39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / a3m_router-2.16.0-py3-none-any.whl
| Download URL | a3m_router-2.16.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c18b2a1bb01c6e195a94e8ca1c20207c05b700a07fd8fb1196ef83045f9f7f9
|
|
BLAKE2b-256 checksum How to use checksums |
7f0be95a00d07299e8fb16794ca1cb2b0947d097da06abbaab8785d91cedd2d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|