[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/compute/docs/design-with-gemini [Back]  [Original]

Design your compute infrastructure with Gemini  |  Compute Engine  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Design your compute infrastructure with Gemini Stay organized with collections Save and categorize content based on your preferences.

Preview

This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the Service Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see the launch stage descriptions.

This document explains how to plan and design your compute infrastructure by prompting Gemini. To learn more about the components that you must configure before or when you create a compute instance, see Overview of creating Compute Engine instances.

Compute Advisor is an AI-powered interface in the Google Cloud console, powered by Gemini, that helps you evaluate hardware options, estimate deployment costs, and view recommended configurations for your Compute Engine instances. To tailor its recommendations, Gemini evaluates your Google Cloud project by checking your quota limits, existing reservations, committed use discounts (CUDs), default region and zone, and any resource location constraints. By using Gemini to help with your planning, you can reach an optimal configuration for your workload before you create or modify a compute instance.

Limitations

When you prompt Gemini in the Google Cloud console, you can't create, modify, or delete resources by using Gemini.

Before you begin

When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.

Required roles

To get the permissions that you need to access and prompt Gemini, ask your administrator to grant you the Compute Viewer (roles/compute.viewer) IAM role on the project. For more information about granting roles, see Manage access to projects, folders, and organizations.

This predefined role contains the permissions required to access and prompt Gemini. To see the exact permissions that are required, expand the Required permissions section:

Required permissions

The following permissions are required to access and prompt Gemini:

You might also be able to get these permissions with custom roles or other predefined roles.

Access Gemini in the Google Cloud console

To access Gemini in the Google Cloud console, complete the following steps:

  1. In the Google Cloud console, go to the Overview page.

    Go to Overview

  2. In the Design your infrastructure with Compute Advisor section, you can view the following:

    A screenshot of the Compute Advisor page and the UI elements that compose it. [A screenshot of the Compute Advisor page and the UI elements that compose it.]

    The UI elements that are displayed in the preceding screenshot are the following:

    • Quick-action prompt cards: a set of cards that each contain a sample prompt. If you click a card, then Google Cloud console automatically populates the prompt box with the sample prompt.

    • Prompt box: this field lets you enter and submit prompts. To submit a prompt, click Submit prompt.

    • View previous conversations: this feature lets you view the details of a past conversation and resume it, or delete conversations if you no longer need them.

    • Conversation history side panel: shows your recent chats. This panel is visible only after you start prompting from the Overview page. You can interact with this panel as follows:

      • To start a new conversation, click New chat.

      • To resume a recent conversation, in the Recent chats section, click the conversation.

      • To view a list of all your conversations, click View all. On the My history page, you can view the details of a past conversation and resume it, or delete conversations if you no longer need them.

Prompt Gemini

After you submit a prompt, Gemini starts to generate a response. A pane appears and Google Cloud console displays the response to your prompt in the pane, as shown in the following screenshot:

A screenshot of the Compute Advisor page after you submit a prompt. [A screenshot of the Compute Advisor page after you submit a prompt.]

Based on your prompt, the response pane includes the following elements:

Caution: Generative AI can make mistakes. Before taking any actions on a resource that Gemini recommends you to create, modify, or delete, validate all recommendations and configurations.

The following sections outline the best practices for writing prompts, and example prompts that you can use before you create or modify a compute instance.

Best practices for prompting

To get the most accurate and actionable recommendations from Gemini, we recommend that you structure your prompts in the same way that you would do a code block. This approach guides the generative AI by using clear parameter declarations, role definitions, specific instructions, and explicit output formats.

When you prompt Gemini, consider the following best practices:

Example prompts

The following are examples of prompts that you can use to help you design and optimize your compute infrastructure:

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-19 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-19 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page