Remix.run Logo
▲ jusonchan81 25 minutes ago

Happened to us on Bedrock. Used time be $30-$40 and one day it spiked to $6000!

Turns out API calls took longer than our timeouts when the model changed and we kept retrying. (Face Palm)

We have asked AWS to do a review but it also led us to remove that retry code and measure token spend on our platform itself and stop based on token limits. For failed calls we estimate input tokens and put an estimation for output. Conservative token count to limit spend.