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.1
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.1.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| a3m_router-2.16.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / a3m_router-2.16.1.tar.gz
| Download URL | a3m_router-2.16.1.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eda1204d097b3ada71471f3b89c4c5e940e9f90093c2e7bc85cf86ba702c12c
|
|
BLAKE2b-256 checksum How to use checksums |
0de9e2ce40b67dcaed413531bd1530eecea85c527ffa403ab9b4897715d4bd95
|
| 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.1-py3-none-any.whl
| Download URL | a3m_router-2.16.1-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
940d90da73305f39673ce2e869f81ef263191e6393a29813a1ca91b00cf7716a
|
|
BLAKE2b-256 checksum How to use checksums |
d6c789c5c8047e1cd09ccc4a18df2e1f9a2799baf989367c2c18d54efe4812bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|