Skip to main content
All CollectionsAPI Key
Reduce the load on the API server with caching
Reduce the load on the API server with caching
Benoit Moenne-Loccoz avatar
Written by Benoit Moenne-Loccoz
Updated over 5 months ago

What is Caching?

Caching for API calls is a mechanism used to temporarily store the response of an API request for future use. It involves saving the response data, along with relevant metadata, in a cache (a temporary storage area) and retrieving it when the same request is made again.

The purpose of caching API calls is to improve performance and reduce the load on the API server. When a client creates a request to an API endpoint, the server processes the request, retrieves the data, and sends it back in the response. By caching the response, subsequent identical requests can be served directly from the cache instead of going through the entire process again. This can significantly reduce the response time and server load, leading to faster and more efficient API interactions.

How Caching works on Eden AI?

When you use Eden AI APIs, all your request parameters constitute a caching ID. Responses to the API calls are stored for 5 minutes.

When a user makes a request that has already been made a few minutes or seconds ago, Eden AI gets the response in the cache and sends it directly to the user. The user won't pay for the call and will get the response much faster.

Did this answer your question?