Skip to content

The Python SDK for LiteFlow - a platform to easily build production-grade yet cost efficient apps.

License

Notifications You must be signed in to change notification settings

53gf4u1t/liteflow-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

The Python SDK for LiteFlow - a platform to easily build production-grade yet cost efficient apps.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages