How It Works
- You send a request with a specific model and input.
- Eden AI processes the request and stores the result.
- If the same model + input combination is sent again, the cached result is returned immediately.
Best Suited For
Caching works well with deterministic features where the same input always produces the same output:- Embeddings — identical text produces identical vectors
- Moderation — same text yields the same classification
- OCR — same document produces the same extracted text
- Named entity recognition — same text, same entities
Not Suited For
Caching is less useful for non-deterministic outputs:- LLM chat completions — responses vary by design (temperature, randomness)
- Image generation — same prompt can produce different images
Activating Caching
Caching can be enabled or disabled per project from the Eden AI dashboard:- Go to app.edenai.run
- Navigate to your project settings
- Toggle Response Caching on or off
Caching is enabled by default. Once active, it works automatically — no changes to your API calls are needed.