Skip to content

Use Google Gemini with Pulumi Agents ​

Use a Google Gemini API key to run Pulumi Agents on Gemini models. Google bills your account for the requests.

Connect Google ​

  1. Enter your Gemini API key.
  2. For Default model, choose a suggested Gemini model or enter a model ID your account can use. Suggestions include gemini-4-neon, gemini-4-hydrogen, gemini-3.8-flash, and gemini-flash-latest.
  3. Optionally, set Fast model to a smaller Gemini model for short calls such as naming a task. If you leave it blank, Pulumi uses the default model for those calls.

Pulumi Agents uses Google's OpenAI-compatible Chat Completions API. The Google provider sets the API endpoint and authentication format for you.

Test and use the provider ​

Content from the official Pulumi documentation (github.com/pulumi/docs).