Keepalive
Renew the stream lease and pay for elapsed streaming time. Call every 10-20 seconds. Streams expire after ~45 seconds without a keepalive.
Each call charges for time since the last keepalive. If credits are insufficient (402), the lease is NOT renewed and the stream will expire.
For native transport, the response includes a refreshed livekit_token.
Authorizations
Provide your API key in the Authorization header as 'Bearer <api_key>'
Path Parameters
Response
Lease renewed, credits charged
Keepalive response with billing summary. Streams expire after TTL seconds without a keepalive.
"ok"Stream identifier
Seconds until stream expires without another keepalive
Credits remaining after this charge (in cents)
Credits charged for this keepalive interval (in cents)
Seconds of streaming time charged
Current stream state: pending (no frames yet), active (inferencing), idle (frames stopped)
pending, active, idle Refreshed LiveKit JWT for native sources. Use this to maintain the connection.