Check session status
Set a budget limit
When creating a Compose Key, you can set a maximum spend:Live budget tracking
Every billable response includes budget headers. The SDK parses them and emits abudget event:
Session events
Subscribe to real-time session lifecycle events via SSE:Session invalid reasons
When a session becomes invalid, the SDK emits a
sessionInvalid event: