Skip to content

Integrate with Gemini CLI

Replace the placeholder values in the following shell commands with your actual credentials and parameters, then run the script to integrate with F5 AI Security.

shell
export GOOGLE_GEMINI_BASE_URL={BASE_URL}/google/{CONNECTION_NAME}
export GEMINI_API_KEY={CAI_TOKEN}
gemini -p "What is the capital of France?"

You can integrate F5 AI Security. We provide a code snippet to help with the process, which requires the following variables:

  • BASE_URL: The URL of the AI Security deployment. Depends on whether your deployment uses AI Security SaaS or your own on-premises system.

  • CAI_TOKEN: See Get Your Authorization Token for instructions on how to obtain an API key.

  • CONNECTION_NAME: Name of the configured Google connection that Gemini should use.

Updated at: