Python Server API for LiveKit
Project Links
Meta
Author: LiveKit
Requires Python: >=3.9.0
Classifiers
Intended Audience
- Developers
Programming Language
- Python :: 3
- Python :: 3 :: Only
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
Topic
- Multimedia :: Sound/Audio
- Multimedia :: Video
- Scientific/Engineering :: Artificial Intelligence
LiveKit Server APIs
Access LiveKit server APIs and generate access tokens.
See https://docs.livekit.io/reference/server/server-apis for more information.
Authentication
Every request to the server APIs is authenticated. LiveKitAPI supports two modes:
- API key & secret โ recommended for backend use. The SDK signs a short-lived token per request from your key and secret. Keep your API secret on the server; never ship it to a client.
- Access token โ for client-side use where the API secret must not be exposed. Pass a pre-signed access token that already carries the grants for the operations you'll perform; the SDK sends it verbatim.
from livekit import api
# API key & secret: set LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET,
# then construct with no arguments...
lkapi = api.LiveKitAPI()
# ...or pass any of them explicitly to override the corresponding env var:
lkapi = api.LiveKitAPI("https://my.livekit.host", api_key="api-key", api_secret="api-secret")
# Pre-signed access token (client-side): with LIVEKIT_URL set, pass just the token:
lkapi = api.LiveKitAPI.with_token("a-pre-signed-token")
The url and credentials fall back to the LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET, and LIVEKIT_TOKEN environment variables. Values you pass explicitly take precedence; the environment variables are used only as a fallback for arguments you omit โ an ambient LIVEKIT_TOKEN, for example, won't override an explicitly-provided API key and secret.
1.2.1
Aug 27, 2026
1.2.0
Jul 11, 2026
1.1.1
Jun 24, 2026
1.1.0
Dec 02, 2025
1.0.8
Dec 02, 2025
1.0.7
Oct 09, 2025
1.0.6
Oct 01, 2025
1.0.5
Jul 24, 2025
1.0.4
Jul 23, 2025
1.0.3
Jun 20, 2025
1.0.2
Apr 03, 2025
1.0.1
Mar 31, 2025
1.0.0
Mar 31, 2025
0.8.2
Feb 05, 2025
0.8.1
Dec 27, 2024
0.8.0
Nov 13, 2024
0.7.1
Oct 01, 2024
0.7.0
Aug 16, 2024
0.6.0
Jul 23, 2024
0.5.1
Jun 24, 2024
0.5.0
Apr 18, 2024
0.4.4
Apr 05, 2024
0.4.3
Mar 27, 2024
0.4.2
Feb 14, 2024
0.4.1
Jan 14, 2024
0.4.0
Jan 13, 2024
0.3.0
Dec 06, 2023
0.2.1
Nov 14, 2023
0.2.0
Nov 14, 2023
0.1.3
Oct 31, 2023
0.1.2
Oct 31, 2023
0.1.1
Oct 30, 2023
0.1.1.dev0
Oct 28, 2023
0.1.0
Oct 23, 2023
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
aiohttp
(>=3.9.0)
livekit-protocol
(<2.0.0,>=1.1.25)
protobuf
(>=4)
pyjwt
(>=2.0.0)
types-protobuf
(>=4)