Every model provider rate-limits you, and the good ones use a token bucket rather than a fixed window: because real traffic is bursty and a fixed window punishes a burst that the system could easily have absorbed.
Write token_bucket(timestamps, costs, rate, capacity) returning a list of booleans, one per request.
The bucket starts full at capacity. Between consecutive requests it refills continuously at rate tokens per second, never above capacity. A request costs costs[i] tokens: if that many are available it is allowed and they are deducted, otherwise it is rejected and nothing is deducted.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in