lfx-treza
Treza components for Langflow, as a Langflow Extension Bundle. Make AI pictures and video clips (Veo, Kling, Seedance and more) and run your saved Treza pipelines from a flow, or hand them to an Agent as tools. Treza prices every render first, and a Max cost you set stops any render that costs more, with nothing spent.
Install
In the Python environment Langflow runs in:
pip install lfx-treza
Restart Langflow. The components appear under Treza in the components menu.
Create a Treza account at https://www.trezalabs.com, add credits, and make an API key at https://www.trezalabs.com/platform/api-keys with the pipelines:read, pipelines:write and pipelines:run permissions. Paste it into a component's Treza API Key field, or set TREZA_API_KEY in Langflow's environment (or as a Langflow global variable of that name).
The package is free. Renders are paid from your prepaid Treza credits; there is no subscription.
Components
| Component | What it does | Cost |
|---|---|---|
| Treza Image | A picture from a prompt, optionally from reference pictures. | Treza credits |
| Treza Video | A video clip from a prompt, optionally opening or ending on a picture. | Treza credits |
| Treza Run Pipeline | Runs one of your saved Treza pipelines, with new inputs as JSON. | Treza credits |
| Treza Get Run | Looks up a render that was still going when its component stopped waiting. | Free |
| Treza Balance | The credits left on the account. | Free |
Each returns a Data object. A finished render:
{"url": "https://media.trezalabs.com/...png", "status": "success", "finished": true,
"price_usd": 0.0, "model": "google/gemini-2.5-flash-image", "render_seconds": 12.0,
"run_id": "...", "pipeline_id": "pipeline_..."}
As agent tools
Turn on Tool Mode on a component and connect it to an Agent's Tools input. The agent fills in the prompt (or the pipeline ID and inputs); the API key, Max cost and wait stay as you set them on the canvas, so the agent cannot raise the cap.
Spending
- Max Cost (USD): with a cap set, Treza prices the render first. If the price is higher, the component returns
{"error": "This render costs $X, over the Max cost of $Y. Nothing was spent. ...", "code": "OverBudget"}and starts nothing. - Leave it at 0 for no cap. Set a cap on components you give to an agent.
- A render never starts when the balance does not cover its price.
Long renders
Pictures usually take under a minute and videos one to five minutes. A component waits up to Wait (seconds) (advanced; 300 by default, 600 for pipelines). A render still going after that comes back with "status": "running" and its run_id and pipeline_id, and Treza Get Run returns the file once it is done. Nothing is started twice.
Network and privacy
The components call Treza's API over HTTPS at www.trezalabs.com, sending the prompt and settings with your API key. Privacy policy: https://docs.trezalabs.com/terms-and-privacy/privacy
Develop
pip install -e . pytest
pytest -q
The tests run against a scripted stand-in for Treza's API.
Treza is independent of Langflow and not endorsed by it. Issues: https://github.com/treza-labs/lfx-treza/issues · Email: hello@trezalabs.com · MIT licensed.
Metadata
Release files for lfx-treza 0.1.0
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 |
|---|---|---|---|---|
| lfx_treza-0.1.0.tar.gz | 12.4 kB | With provenance | Details for lfx_treza-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lfx_treza-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lfx_treza-0.1.0-py3-none-any.whl |
Total release size: 27.9 kB
Release files / lfx_treza-0.1.0.tar.gz
| Download URL | lfx_treza-0.1.0.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0c5b744b490eb944aaf8e70ac45fd33d66d886d1e81a58cd8589b11f1f7da96
|
|
BLAKE2b-256 checksum How to use checksums |
9c03b7df37b9a50a2759675b28e11cb19e3f250a16c72d9dc186d2556cdf7370
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 20, 2026.
Transparency logRelease files / lfx_treza-0.1.0-py3-none-any.whl
| Download URL | lfx_treza-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ba9908f59365165d0fbcde8256870445fd13ff0d525915cb1bdb0223857026d
|
|
BLAKE2b-256 checksum How to use checksums |
c9f00432be68c8b0bcb76443d7b19f2b80ab64fbc15c0c78ddd13aa777400cfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 20, 2026.
Transparency logSecurity for lfx-treza 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for lfx_treza-0.1.0.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 Nov 20, 2026.
Transparency logA 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.