I also like to rate limit route that calls OpenAI API since the cost can quickly go up. Vercel KV behind the scene should based on Upstash Redis, so it's the same offering. Another solution is to put behind the authentication. Definitively not as bullet proof as the rate limiting. But, you can combine rate limiting and authentication to prevent spam. I think Vercel KV and Upstash is a good start for rate limiting but if you want to further, I would suggest Arcjet . They provide rate limiting, bot protection, and more to secure your routes. They have a pretty generous free tier. I use it in Next.js Boilerplate , you can take a look as inspiration. Answer from ixartz on reddit.com
🌐
Upstash
upstash.com › pricing › redis
Pricing | Upstash
Pay only for what you use with per-request pricing. Or choose a Fixed plan for consistent usage with a flat price. RedisVectorQStashWorkflowSearch · - Perfect for prototypes and hobby projects.
🌐
Upstash
upstash.com › docs › redis › overall › pricing
Pricing & Limits - Upstash Documentation
Redis® API Compatibility · Changelog ... database per account · Flexible pricing for variable traffic. Request Price: $0.20 per 100K requests ·...
🌐
Upstash
upstash.com
Upstash: Serverless Data Platform
You'll never pay more than the cap price, guaranteed. Requests12,004 · Storage420KB · Cost$0.02 · HTTP-based APIs enable access from serverless and edge functions in addition to supporting standard clients via the Redis protocol.
🌐
Upstash
upstash.com › blog › redis-new-pricing
New Pricing and Increased Limits for Upstash Redis | Upstash Blog
These Pro Plans started at $280/month per DB (Pro 2K) and $680/month per DB (Pro 10K). Our new fixed plans start at $10/month per DB for a database size of 250MB. With these new, more affordable fixed plans, we aim to cover the use cases of ...
🌐
Fly.io
fly.io › docs › upstash › redis
Upstash for Redis®*
#### Pay-as-you-go plan Upstash Redis databases start on the pay-as-you-go plan at **$0.20 per 100k requests**. This means you only pay for what you use. For most use cases, this is a good starting point.
🌐
Reddit
reddit.com › r/nextjs › is upstash redis free tier enough for rate limiting?
r/nextjs on Reddit: Is Upstash Redis free tier enough for rate limiting?
February 23, 2025 -

I'm developing a small public website for fun that makes calls to a route, which makes a few other calls to the OpenAI API, and I want to rate limit that route. I may be over-engineering a bit, but there's really nothing stopping an (anonymous) user from pasting a setInterval in their browser and spamming the API.

I've been researching for a while now and found that a lot of people have recommended Vercel KV, which I couldn't find anything updated (maybe it's deprecated?), and Upstash Redis. I tried the latter, and it was pretty easy and good, but then I realized that I had already made almost 1k out of 10k requests in the development environment in just a few hours (I use it for both caching and rate limiting), which means that eventually the API spam would affect the service anyway. Digging through the source code of the libraries, I found that there is an option to set the local cache behavior[1][2], but I'm not sure how effective it is.

For those who used the free tier, was it enough? Does Vercel have anything for free that could help, since this also affects their infrastructure?

🌐
Heroku Elements
elements.heroku.com › addons › upstash-redis
Upstash for Redis®* - Add-ons - Heroku Elements
Compare our prices with other Redis® add-ons. With Upstash you get more storage paying at least 50% less.
🌐
Fly.io
community.fly.io › fresh produce
Upstash For Redis: New Fixed Price Plan and PAYG plan changes - Fresh Produce - Fly.io
April 1, 2024 - Hello everyone, In response to valuable feedback and careful analysis, we’re updating our pricing structure effective today, April 1st, 2024, to provide a better solution for customers using a software that frequently polls Redis. Previously, to reduce costs for this segment of customers, we did not count empty responses.
🌐
Dragonfly
dragonflydb.io › guides › upstash-solution-overview-pros-cons-and-alternatives
Upstash: Solution Overview, Pros/Cons, and Alternatives
Pay-per-request pricing: Instead of traditional instance-based billing, Upstash charges based on usage, making it suitable for applications with variable workloads. Multi-region deployment: Data can be replicated across multiple regions to enable availability for global users. HTTP-based APIs: Unlike typical Redis services that use the TCP protocol, Upstash offers HTTP APIs that support integration with serverless and edge functions.
Find elsewhere
🌐
AWS Marketplace
aws.amazon.com › marketplace › pp › prodview-fssqvkdcpycco
AWS Marketplace: Upstash: Serverless Data for Redis®,Vector and QStash - Pay as You Go
These features make Upstash a good fit for serverless and edge computing environments, allowing developers to focus on building and improving their applications without worrying about resource management. Data is replicated to 8+ regions all over the world for the best latency for your users. Add/remove regions without downtime. Start free, then pay only for what you use with per-request pricing. You'll never pay more than the cap price, guaranteed.
🌐
Stacktape
docs.stacktape.com › 3rd-party-resources › upstash-redises
Upstash Serverless Redis
Pay-per-request: You only pay for what you use. See the Upstash pricing for more details.
🌐
DeepWiki
deepwiki.com › upstash › docs › 2.2-redis-pricing-and-plans
Redis Pricing and Plans | upstash/docs | DeepWiki
This document provides a comprehensive overview of Upstash Redis pricing tiers, plan limits, and billing mechanisms. It covers the free tier, pay-as-you-go pricing, fixed plans, and enterprise options
🌐
X
x.com › upstash › status › 1899885232351830440
Upstash on X: "Introducing new pricing and higher limits for Upstash Redis! 🎉 ◆ Increased free tier ◆ Higher pay-as-you-go limits ◆ New, affordable fixed-price plans Plus a new, optional "Prod Pack" with production-grade features for individual databases. 👇" / X
Introducing new pricing and higher limits for Upstash Redis! ◆ Increased free tier ◆ Higher pay-as-you-go limits ◆ New, affordable fixed-price plans Plus a new, optional "Prod Pack" with production-grade features for individual databases.
🌐
Vercel
vercel.com › marketplace › upstash
Upstash for Vercel – Vercel
Upstash is a serverless database platform that offers different products, including Redis, QStash and Vector database.
🌐
DigitalOcean Marketplace
marketplace.digitalocean.com › add-ons › upstash-redis
Upstash Redis | DigitalOcean Marketplace Add-Ons
DigitalOcean Marketplace lets developers easily discover and quickly launch services, components and tools from the open source projects and companies that they love.