Powered by
Is it possible to use context caching with Gemini ...
# help
c
codager
11/14/2025, 5:22 AM
I have 2 use cases 1. I want to cache the system prompt across multiple invocations 2. I want to upload the file to gemini and use that across prompts to get token benefits. Are these possible through BAML?
b
baml-sam
11/14/2025, 7:43 PM
If you use the modular API this is possible!
https://docs.boundaryml.com/guide/baml-advanced/modular-api
Unfortunately we only native support this for Anthropic right now, but we should definitely support this for Gemini
Previous
Next