Error
A valid request URL is required to generate request examples{
"status": "ok",
"stream_id": "<string>",
"ttl_seconds": 123,
"credits_remaining_cents": 123,
"cost_cents": 123,
"seconds_charged": 123,
"state": "pending",
"livekit_token": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}Streams
Keepalive
Renew a Stream lease and pay for elapsed streaming time on the deprecated v0.2 API, calling every 10 to 20 seconds to avoid expiry.
POST
/
streams
/
{stream_id}
/
keepalive
Error
A valid request URL is required to generate request examples{
"status": "ok",
"stream_id": "<string>",
"ttl_seconds": 123,
"credits_remaining_cents": 123,
"cost_cents": 123,
"seconds_charged": 123,
"state": "pending",
"livekit_token": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}{
"error": "<string>",
"request_id": "<string>",
"details": null
}The v0.2 API is deprecated. New integrations should use v1.
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.
Allowed value:
"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)
Available options:
pending, active, idle Refreshed LiveKit JWT for native sources. Use this to maintain the connection.