Hiway SDK (Python) — OpenAI-compatible client for the Hiway router. Placeholder, real SDK in public beta.
Project description
hiway2llm
🚧 Placeholder package — the real Python SDK is in public beta.
Official Python SDK for Hiway — one API, every model, save 60-90%. OpenAI-compatible interface.
Current status
This package reserves the hiway2llm name on PyPI while the SDK stabilizes. Instantiating Hiway() currently raises NotImplementedError.
Use the API today (OpenAI-compatible)
The Hiway API is fully OpenAI-compatible. Until this SDK lands, use the openai library pointed at https://app.hiway2llm.com/v1:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["HIWAY_API_KEY"], # hw_live_...
base_url="https://app.hiway2llm.com/v1",
)
response = client.chat.completions.create(
model="auto", # smart routing — Hiway picks the cheapest capable model
messages=[{"role": "user", "content": "hello"}],
)
print(response.choices[0].message.content)
Change two lines, save up to 90%.
Install (the real thing, when it lands)
pip install hiway2llm # v0.1.0+
Or with uv:
uv add hiway2llm
Links
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 hiway2llm-0.0.1a1.tar.gz.
File metadata
- Download URL: hiway2llm-0.0.1a1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e812c702d2f82aca1a596a29d25d9f7a01c3f3a705341993c8bd3a139b8db36d
|
|
| MD5 |
d31a745815445c7eaeb27bd0245d3de2
|
|
| BLAKE2b-256 |
de5d9d72caf1e6f2d50984e73974628c67674166efbee80099666f5d9c3bb93b
|
File details
Details for the file hiway2llm-0.0.1a1-py3-none-any.whl.
File metadata
- Download URL: hiway2llm-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
a7be22367d41a359622671ea004adcfb56b5838e4e727feaf01d3f2a13c58de4
|
|
| MD5 |
c962fd0f58301c2aceac0c5d2c9d3a8b
|
|
| BLAKE2b-256 |
b3487ece8523a0a963dffaa86dce5f83d48f1441c7847cdebf3cc8daaa0c4441
|