Skip to main content

A3M Router - Python Package

Intelligent LLM routing for Python applications.

PyPI Version PyPI Downloads npm Version

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)

Source distribution for a3m-router 2.16.0
File Size Uploaded
a3m_router-2.16.0.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for a3m-router 2.16.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

2.16.3

2 release files

2.16.1

2 release files

This release

2.16.0 This release

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page