brainax

What is a rate limit

A rate limit caps how many requests one person can make per minute or per day. It protects your app from someone's script flooding it with thousands of requests that you end up paying for.

This matters most for apps built on an AI API: the service counts tokens in every question and answer, so the bill grows with each request. Even with the API key safely on the server, an app without a rate limit can be flooded. Alongside a rate limit, turn on a spending limit and a billing alert in the service's billing settings.

Covered in the lessonMoney and limitsOpen the lesson →

More terms from this course