LiteFlow Python SDK
Access the best AI models with one unified API key — no tokens to juggle, no billing chaos, no compromises.
LiteFlow lets you talk to top-tier LLMs like Claude, GPT, Mistral, and more — all through a single, resilient, and cost-efficient endpoint. The Python SDK is the easiest way to tap into that power in just a few lines.
Why LiteFlow?
-
One key, every model
Stop juggling API keys across 5 different dashboards. LiteFlow unifies the top LLMs under a single, clean interface. -
Optimized for cost
We've done the heavy-lifting optimzations to provide you with the cheapest cost on the market. -
Intelligent fallback & resilience
If a model is down or slow, LiteFlow seamlessly reroutes the request — so you never miss a beat. -
Privacy-first
No prompt logging, no training, no vendor lock-in. Your data stays yours.
Quickstart
pip install liteflow-python
Then, in your code:
from liteflow_python import LiteFlow
client = LiteFlow("<YOUR-API-KEY>")
response = client.chat_completion(
messages=[{"role": "user", "content": """
Imagine a runaway trolley is hurtling down a track towards five dead people. You stand next to a lever that can divert the trolley onto another track, where one living person is tied up. Do you pull the lever?
Reason step-by-step to find the correct answer.
"""}],
model="Claude Opus 4",
max_tokens=1000
)
print(response)
Features
- Simple chat_completions() interface
- Unified token usage tracking
- Transparent, simple and the most competitive pricing
- Built-in retries, fallbacks, and latency optimization
Power Meets Simplicity
Why waste time comparing models, managing budgets, and rewriting adapters? Let LiteFlow be the layer between your app and LLM chaos — fast, cheap, and always online.
→ Install now and ship your next AI project with confidence.
Community & Support
Need help?
Metadata
Release files for liteflow-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| liteflow_python-0.0.2.tar.gz | 3.5 kB | Without provenance | Details for liteflow_python-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| liteflow_python-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for liteflow_python-0.0.2-py3-none-any.whl |
Total release size: 6.8 kB
Release files / liteflow_python-0.0.2.tar.gz
| Download URL | liteflow_python-0.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b571924fb1da0bf5d751e3f677316ab27c06df243254689736f724bf05c4c18
|
|
BLAKE2b-256 checksum How to use checksums |
9b278cbec11db12aaaf8a6dd02acd26616b8d1725caa5286b7c8eb1c8ac748bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / liteflow_python-0.0.2-py3-none-any.whl
| Download URL | liteflow_python-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05a8be41730b59eaace7413acf7f4d6978f8d286da32bd6c3a11a20c3bca4d30
|
|
BLAKE2b-256 checksum How to use checksums |
d9294d0d3e6a1fee060371dfe990582c15c83c1aa915104b556af0d61bbdf3af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for liteflow-python 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.
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.