clean-mouse-53726
11/17/2025, 9:22 AMtall-airline-16756
11/17/2025, 9:22 AMtall-airline-16756
11/17/2025, 9:22 AMsendText method in LiveKit doesn’t have a strict limit on the length of the text you can send, as it smartly chunks and streams larger text payloads for you. That said, the attributes field, which is great for adding extra metadata, probably has a combined size limit of around 64 KiB for all keys and values—this is based on similar features like participant attributes and room metadata.
If you’re looking to send images, a handy approach is to encode them as base64 and include them right in the text payload since the text length is essentially unlimited. Another option is to host the image elsewhere and share a reference link (like a URL) in the attributes or text payload.
Please feel free to reach out if you want more details or need a hand with implementing this—I’m here to support you!
Sources: livekit-rtc/livekit/rtc/_proto/data_stream_pb2.pyi | config-sample.yaml | Quotas and limits | LiveKit docs | src/room/data-stream/outgoing/OutgoingDataStreamManager.ts | Participant attributes and metadata | LiveKit docs