Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
best way to do rate limiting for API Calls? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
2 replies
Jonathan.Alphonso
best way to do rate limiting for API Calls?
I have a web app that calls gpt
's API to create a fun little fight story between 2 characters
.
Code and demo site are detailed at
:
https://github.com/JonathanAlphonso/ai-fight-pits
Api call in question is at
Ai
-fight
-pits
/src
/server
/api
/routerd
/gpt
.ts
My fear is that people will spam requests are rack up my gpt api bill
.
I like the idea of not needing to log in to generate a fight
, so maybe limiting people by IP would be good
?
Theo
's t3 tut limits people by used ID in upstash but I don
't think that
's a good fit if I don
't want to require logins
.
Any tips
?
?
?
GitHub
GitHub - JonathanAlphonso/ai-fight-pits
Contribute to JonathanAlphonso
/ai
-fight
-pits development by creating an account on GitHub
.
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
api keys and rate limiting
TTC
Theo's Typesafe Cult / questions
3y ago
Rate Limiting in AWS API Gateway
TTC
Theo's Typesafe Cult / questions
3y ago
Best way to do form?
TTC
Theo's Typesafe Cult / questions
2y ago