Skip to main content

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://api.hiway2llm.com/v1:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["HIWAY_API_KEY"],
    base_url="https://api.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


Download files

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

Source Distribution

hiway2llm-0.0.1a0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

hiway2llm-0.0.1a0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file hiway2llm-0.0.1a0.tar.gz.

File metadata

  • Download URL: hiway2llm-0.0.1a0.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

Hashes for hiway2llm-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 d39b7f1096e003b0ecd775ae427779d37d9f720d307771b95281dba2d6cbc8c2
MD5 edcd33460630d9880e3f8d6e45787137
BLAKE2b-256 c31eadd5e84aca865302432e80302996fd2fbbb9c1a1f447f6bb039f82d82e9d

See more details on using hashes here.

File details

Details for the file hiway2llm-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: hiway2llm-0.0.1a0-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

Hashes for hiway2llm-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 58dcdf21231fa95003f7242dd512e75bfd403e57b3e05abf744a5994d7ced240
MD5 93a86a395918adc6f94cbc12ce20d86c
BLAKE2b-256 aa6a28d282639364bffb0c02a77b18c8c482d82eebb3c68596674420520dcbab

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