Skip to main content

Official Python SDK for BrainRouter

Project description

BrainRouter Python SDK

Official Python SDK for BrainRouter - The intelligent model gateway.

Installation

pip install brainrouter

Quick Start

from brainrouter import BrainRouter

client = BrainRouter(api_key="your_key")
response = client.chat.ask(prompt="Hello!", strategy="quality")
print(response.content)

Features

  • Intelligent Routing: Automatically select the best model based on quality, cost, or speed.
  • Sync & Async: Supports both synchronous and asynchronous workflows.
  • Streaming: Built-in support for SSE streaming.
  • Thread Management: Easy conversation and policy management.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainrouter-1.0.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainrouter-1.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file brainrouter-1.0.4.tar.gz.

File metadata

  • Download URL: brainrouter-1.0.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for brainrouter-1.0.4.tar.gz
Algorithm Hash digest
SHA256 82e1de1b3b6585cdfe82106f44cabb1b78959afc3d0288adcf2df2a564220933
MD5 aca959e6ff37cf9c0001d82e0632a840
BLAKE2b-256 92941171d989d886a46f14867e2fb0ea53b973b3bcc000d566253e0168a91d64

See more details on using hashes here.

File details

Details for the file brainrouter-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: brainrouter-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for brainrouter-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 901ff65fc46f26ffdc97833b7eff11c98be271969fe2fb286c155bd6d0b41578
MD5 f11d3b4235168bc25dc727f8ce6e53f6
BLAKE2b-256 931c124aab33049309f80b700f1590c92236a1b51e926751970452c9a854f444

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page