Skip to main content

byokit for Python

Add BYOK with a model list and one simple call. Keep your model choices fresh.

Installation

pip install byokit

Quick Start

import byokit

models = byokit.get_models()
print([{"id": m["id"], "name": m["name"]} for m in models])

Returns provider/model metadata, limits, price, features, tags, logos and contributor verification reports. byokit.Catalog(custom_data).get_models(query) uses a custom snapshot. Pure Python, with no runtime dependencies. Use client = byokit.OpenAI(base_url=..., api_key=...) and client.chat.completions.create(model=model["apiModelId"], messages=...). Use byokit.Anthropic(...) and client.messages.create(...) for Claude format. Keys stay in client memory and are never persisted. Responses support attribute and dictionary access. Stateless byokit.call(model, prompt, key) remains supported.

See the SDK guide for examples, protocol adapters, official SDK integration, validation, and migration.

Discovery and call support

Defaults are reviewed offering recommendations. COMPLETE includes every upstream provider and output modality, including retired and uncertain entries. GLOBAL and CHINA remain editorial collections. Filter output for image/audio/video generation and callable for reviewed text-call compatibility. Input arrays require all listed modalities; output arrays require the exact set. Newly discovered providers may have no connection adapter.

callSupport.textGeneration is adapter compatibility; availability uses separate provider evidence. Catalog observation never establishes LIVE availability. Explicit lifecycle filters override includeDeprecated. Token prices are per million tokens; media prices may be unknown. See the repository README for migration details and examples.

The default list contains OpenAI Terra/Luna, Gemini Flash, Claude Haiku, and DeepSeek Flash/Chat, plus a local setup entry. Pass local: false in JavaScript or "local": False in Python for the six hosted choices. The shortlist uses reviewed offering IDs rather than release-age or tier guesses; COMPLETE still provides full discovery.

Array filters remain supported. Input arrays require all listed modalities; output arrays match the exact output set. Composable exact, contain, any, exclude and boolean expressions preserve these distinctions when nested. filters.releaseChannel accepts stable, preview, experimental, and unknown; missing status stays unknown. Release channel, availability, adapter support, and successful call verification are separate facts.

Metadata

Release files for byokit 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for byokit 0.0.2
File Size Uploaded Provenance
byokit-0.0.2.tar.gz 790.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 1.6 MB

Release files / byokit-0.0.2.tar.gz

Download URL byokit-0.0.2.tar.gz
Size 790.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b6ac8deeb1e4ef5a1723ccd09813ae288834a2c69b4dc888e1aa1af9044d993c
BLAKE2b-256 checksum
How to use checksums
a8f1b2569530f718f31f97f6d0d0f7928e924cc17b9f1edc7c0c284461394e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / byokit-0.0.2-py3-none-any.whl

Download URL byokit-0.0.2-py3-none-any.whl
Size 821.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db5cbf6afccc2bf19d91420ab4016f0877535dd3c8419952133bd2520e013fb2
BLAKE2b-256 checksum
How to use checksums
9ac57243ec0c75473b4c2d8b4ecd1799304ca5d6d6101ec0aa385609dcc31822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for byokit 0.0.2

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for byokit-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

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.

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