Skip to main content

Build production-grade LLM apps the easy way.

Project description

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?

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

liteflow_python-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

liteflow_python-0.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file liteflow_python-0.0.2.tar.gz.

File metadata

  • Download URL: liteflow_python-0.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for liteflow_python-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1b571924fb1da0bf5d751e3f677316ab27c06df243254689736f724bf05c4c18
MD5 5ebac811b0cfc70eeb2fe635243a5522
BLAKE2b-256 9b278cbec11db12aaaf8a6dd02acd26616b8d1725caa5286b7c8eb1c8ac748bb

See more details on using hashes here.

File details

Details for the file liteflow_python-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for liteflow_python-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05a8be41730b59eaace7413acf7f4d6978f8d286da32bd6c3a11a20c3bca4d30
MD5 c4f5542b8aa211cefdfc5b741c48b26e
BLAKE2b-256 d9294d0d3e6a1fee060371dfe990582c15c83c1aa915104b556af0d61bbdf3af

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