Gradium plugin for LiveKit Agents
Support for Gradium-hosted models in LiveKit Agents.
More information is available in the docs for the TTS and STT integrations.
Installation
pip install livekit-plugins-gradium
Pre-requisites
You'll need an API key from Gradium. It can be set as an environment variable: GRADIUM_API_KEY.
You also need to deploy a model to Gradium and will need your model endpoint to configure the plugin.
Preemptive generation
The STT sends a PREFLIGHT_TRANSCRIPT with the words heard so far as soon as the server's
VAD detects a pause, before the turn is finalized. With preemptive generation (on by default), the
LLM request starts earlier and only restarts if the final transcript differs.
To turn it off and only start generation from final transcripts:
from livekit.plugins import gradium
stt = gradium.STT(preflight_trigger=None)
What to expect
In the best case, every word has already been transcribed when the VAD trips, and the LLM
gets its request as soon as the VAD trips instead of when the turn is finalized. The 350 ms
between the trip and the final transcript is measured against the plugin defaults
(vad_bucket=2, vad_threshold=0.9, vad_flush=True):
ms -480 0 300 700 1050 1500 1850
| | | | | | |
user speech ████████████ user stops speaking at 0 ms
silence ········T········· T: last words transcribed (300 ms); VAD trips at 700 ms
finalize ════════ flush, then final transcript at 1050 ms
preflight on ────────────────────● LLM request at 700 ms, first token at 1500 ms
preflight off ────────────────────● LLM request at 1050 ms, first token at 1850 ms
gain ◄───────► first token 350 ms earlier
A lower vad_bucket or vad_threshold makes VAD trip earlier, bringing the VAD trip
closer to the last words, which risks triggering two LLM calls. The preview is sent again
only when new words arrive, so a VAD that flickers during a silence keeps the request already
started. When tuning the VAD parameters, also check the number of LLM
calls to ensure you still benefit from preemptive generation.
Metadata
Release files for livekit-plugins-gradium 1.9.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 |
|---|---|---|---|---|
| livekit_plugins_gradium-1.9.0.tar.gz | 14.7 kB | With provenance | Details for livekit_plugins_gradium-1.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_gradium-1.9.0-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_gradium-1.9.0-py3-none-any.whl |
Total release size: 32.5 kB
Release files / livekit_plugins_gradium-1.9.0.tar.gz
| Download URL | livekit_plugins_gradium-1.9.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1ad365b8877536d9d05597079a0c1ca976555bc5cf4c71e937a3e6ca9d3054f
|
|
BLAKE2b-256 checksum How to use checksums |
4ff29f444a0cf56c0c06f4dc1fa3a7181b3f64b6c93e41f225757c03f4c21ad8
|
| 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 Nov 25, 2026.
Transparency logRelease files / livekit_plugins_gradium-1.9.0-py3-none-any.whl
| Download URL | livekit_plugins_gradium-1.9.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eff01b4f506963c01c97114985e2a6c146bd08777e2d7b3c54eb96949b8702d9
|
|
BLAKE2b-256 checksum How to use checksums |
e7a8acf95b7bf14ba9f111083f1e28d3c35d1d882dedab79239ba9fd84a20c02
|
| 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 Nov 25, 2026.
Transparency logSecurity for livekit-plugins-gradium 1.9.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 livekit_plugins_gradium-1.9.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 25, 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.