Official Python SDK for Crazyrouter — One API key for 300+ AI models. Drop-in replacement for OpenAI Python SDK.
Project description
Crazyrouter Python SDK
One API key for 300+ AI models. Drop-in replacement for the OpenAI Python SDK.
Installation
pip install crazyrouter
Quick Start
from crazyrouter import Crazyrouter
client = Crazyrouter(api_key="sk-xxx")
# GPT-5.4
response = client.chat.completions.create(
model="gpt-5.4",
messages=[{"role": "user", "content": "Explain quantum computing"}]
)
# Claude Opus 4.6 — same API, just change the model name
response = client.chat.completions.create(
model="claude-opus-4-6",
messages=[{"role": "user", "content": "Explain quantum computing"}]
)
Migration from OpenAI SDK
- from openai import OpenAI
+ from crazyrouter import Crazyrouter
- client = OpenAI(api_key="sk-openai-xxx")
+ client = Crazyrouter(api_key="sk-crazyrouter-xxx")
# Everything else stays the same!
Links
License
MIT © Crazyrouter
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
crazyrouter-1.0.0.tar.gz
(2.8 kB
view details)
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 crazyrouter-1.0.0.tar.gz.
File metadata
- Download URL: crazyrouter-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ed30a5a7aa96864cb0c65e90acb50cdb9507d22e7d0da65d3bff73c4b13a2a5
|
|
| MD5 |
71b00e652c01dfc0224f60892a3b1e03
|
|
| BLAKE2b-256 |
5603dc50798604b6588cd45de436c93317a640d641278538d7bcb1487ee45a4a
|
File details
Details for the file crazyrouter-1.0.0-py3-none-any.whl.
File metadata
- Download URL: crazyrouter-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2e6c1ab33ac1cf472f3e72a82ed49ec4035d0e6c1d55769fbee78b47d78e0d4
|
|
| MD5 |
f0c2ac1189c129e4eed92aa190462d07
|
|
| BLAKE2b-256 |
2119442d063b281ad2d7edbd2c2e03c4bc8a1b795aed2cea4e1f07ac4b2767fe
|