Hi @Aleena_Scariah , Welcome to the forum.
The issue is that the model you are using doesn’t support context caching. Try using gemini-2.5-pro-preview-05-06 or gemini-2.0-flash-001. You can find a list of models that support context caching in this documentation link.