Skip to main content

Crazyrouter Python SDK

One API key for 300+ AI models. Drop-in replacement for the OpenAI Python SDK.

PyPI version License: MIT

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!

License

MIT © Crazyrouter

Metadata

Release files for crazyrouter 1.0.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 crazyrouter 1.0.0
File Size Uploaded Provenance Actions
crazyrouter-1.0.0.tar.gz 2.8 kB Without provenance Details for crazyrouter-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crazyrouter 1.0.0
File Interpreter ABI Platform Actions
crazyrouter-1.0.0-py3-none-any.whl Python 3 none any Details for crazyrouter-1.0.0-py3-none-any.whl

Total release size: 5.9 kB

Release files / crazyrouter-1.0.0.tar.gz

Download URL crazyrouter-1.0.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7ed30a5a7aa96864cb0c65e90acb50cdb9507d22e7d0da65d3bff73c4b13a2a5
BLAKE2b-256 checksum
How to use checksums
5603dc50798604b6588cd45de436c93317a640d641278538d7bcb1487ee45a4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / crazyrouter-1.0.0-py3-none-any.whl

Download URL crazyrouter-1.0.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2e6c1ab33ac1cf472f3e72a82ed49ec4035d0e6c1d55769fbee78b47d78e0d4
BLAKE2b-256 checksum
How to use checksums
2119442d063b281ad2d7edbd2c2e03c4bc8a1b795aed2cea4e1f07ac4b2767fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for crazyrouter 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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