What is best strategy for using context cache for Structured Output?

Hello,

I am using API calls for my small internal platform. I am sending structured output queries. Some parts may use variables some not, I would like to context cache those parts that do not use them. What is best strategy for caching Structured Output input?

Hello,

Welcome to the Forum!

We recommend going through the Structured Output section in the Gemini API documentation, as it may be helpful. If you still face any difficulties, please feel free to reach out.