RoutePlex Python SDK - Multi-model AI gateway. Route requests across OpenAI, Anthropic, and Google Gemini through a unified API.
Project description
RoutePlex Python SDK
Coming Soon - The official Python SDK for RoutePlex, the multi-model AI gateway.
What is RoutePlex?
RoutePlex is a unified API gateway that intelligently routes your AI requests across OpenAI, Anthropic, and Google Gemini — with smart routing, cost optimization, and built-in content moderation.
Coming Soon
from routeplex import RoutePlex
client = RoutePlex(api_key="rp_...")
# Auto-route to the best model
response = client.chat("Explain quantum computing")
# Or pick a strategy
response = client.chat(
"Write a Python function to sort a list",
strategy="quality", # cost | balanced | quality | speed
)
print(response.output)
print(f"Model: {response.model_used}")
print(f"Cost: ${response.usage.cost_usd:.6f}")
Features (Planned)
- Unified API - One SDK for OpenAI, Anthropic, and Gemini
- Smart Routing - Auto-select the best model based on your strategy
- Cost Tracking - Real-time cost estimation and tracking
- Content Moderation - Built-in 3-layer moderation pipeline
- OpenAI Compatible - Drop-in replacement with
base_urlswap - Type Safe - Full type hints and autocompletion
Get Notified
Star the GitHub repo or visit routeplex.com to get notified when the SDK launches.
Current Integration
While the SDK is being built, you can use RoutePlex today via the OpenAI SDK:
from openai import OpenAI
client = OpenAI(
api_key="rp_your_api_key",
base_url="https://api.routeplex.com/v1",
)
response = client.chat.completions.create(
model="routeplex-ai",
messages=[{"role": "user", "content": "Hello!"}],
)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file routeplex-0.0.1.tar.gz.
File metadata
- Download URL: routeplex-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21468c9d453a7c087d0d54496bee056d9903a943fbfb785a1d0124ced5d8bfd7
|
|
| MD5 |
af1a4394d735630f2a388f97f18549b7
|
|
| BLAKE2b-256 |
5272930f2b62f80113cc0a625e1f7e5b321dc79ab7bccb9a2589a7b115e53cb9
|
File details
Details for the file routeplex-0.0.1-py3-none-any.whl.
File metadata
- Download URL: routeplex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08c8206ddce56c57ad1d84c0f44e93be73b104ff34ad0f63ebbf50b39587c951
|
|
| MD5 |
d65ae5ef5ea19e7369a74c889f627a28
|
|
| BLAKE2b-256 |
e39e2bf3bc27eba202ed6052000453bad2aa8fb4ad028db4ed150642289cd899
|