Lunar Flows
Discover pre-made API-control flows for common API usage, developed by our team and the lunar.dev community.
Discover More
Featured Flows:
OpenAI User Rate Limit
This solution is useful if your app offers AI based functionality based on the OpenAI API and you want to limit the amount of requests an individual user can make to prevent abuse and limit API costs per user.
Google Maps API Response Caching for Speed and Cost
This caching solution is a great strategy to reduce the load of requests you are making to the Maps API - enabling you to keep the results of common queries, especially with repeated requests.
Max Request Concurrency with Eleven Labs
This Lunar flows allows you to queue your requests to the API to govern the overall number of concurrent requests you are making.
Switching requests from the OpenAI API to Anthropic’s Claude APIs
This Lunar flow makes it simple to introduce an API “reroute” in your environment and switch LLM providers seamlessly and without any code changes.
Twilio SMS API Switching based on Country Codes
This flow is useful for customers of the Twilio SMS API who want to route their API traffic to different providers based on the recipient country.
OpenAI Prompt Abuse Filter
This Lunar Flow lets you scan the prompts your services send to the OpenAI API for block-listed strings / patterns.