Caching in gemini api

Can we cache the text based input for gemini api because in the documentation only examples of file based caching is provided.

1 Like

Hi @Dhiraj_Mokal , Welcome to the forum.

Yes, you can cache text-based input using Gemini API.

Thanks

1 Like

@GUNAND_MAYANGLAMBAM If possible can you please provide me example of it.

Please refer the Colab gist link.

1 Like

@GUNAND_MAYANGLAMBAM Thank You.

Verified-Manorama rao