How a hard spending cap stops a request
A hard cap is checked before the model is called. If the worst-case estimate is above your per-message maximum, or would push the month over the ceiling, or the balance cannot cover it, the server refuses.
After the reply, the estimate is reconciled to the real token cost. Unused hold goes back. Bring-your-own-key still counts toward the cap, even though the provider bills you directly.