Close the session associated with the current API key.
This endpoint terminates the active session and settles any remaining payments with the provider. Any unused session time may be refunded according to the session terms.
API key in format: Bearer sk-xxxxxx
Response
Whether the session was successfully closed
Amount refunded for unused session time (if applicable)
Usage statistics for the session
Sessions automatically close when they expire. You only need to manually close a session if you want to terminate it early or switch to a different provider.
After closing a session, you can immediately create a new session with the same or different provider/model.