Getting Started with Generative AI Studio on Google Cloud

Thu Ya Kyaw
Google Cloud - Community
4 min readMay 27, 2023

Generative AI

Generative AI is a type of artificial intelligence (AI) that can create new content, such as text, images, or even music. Generative AI models are trained on large datasets of existing content, and then they use the information or underlying structure of the data to generate new content that is similar to the data they were trained on.

Generative AI is a powerful technology with a wide range of potential applications. As this technology continues to develop, it is likely to have a major impact on a wide range of industries. There are a few ways to harness its power, and Generative AI Studio is one of the easiest methods.

This guide provides instructions on how to use Generative AI Studio through the Google Cloud user interface, without using the REST API or Python SDK. It’s as simple as typing a few sentences and clicking a button.

Generative AI Studio

Generative AI Studio is a Google Cloud console tool for rapidly prototyping and testing generative AI models. You can test sample prompts, design your own prompts, and customize foundation models to handle tasks that meet your application’s needs.

Generative AI Studio — Overview Page

Let’s focus on Language for now. You can either click the Language from the menu on the left or OPEN button at the bottom of the Language box.

You will be redirected to this page upon clicking.

To get started, click on the + CREATE PROMPT button as shown in the image below

In the next step, you will see this page. You can hover or click on ? buttons to find out more about each field and parameter. Also, the following image has been annotated to provide a quick overview of the interface.

Don’t worry about all the parameters for now. Try typing “What is a prompt” in the prompt input field and click SUBMIT. The model will then provide a response based on the knowledge that it has.

Designing your own prompt

Try typing your desired prompt, e.g. a question, to the model this time. The model will then provide a response based on how you structured your prompt.

Did it provide what you wanted? If not, try rephrasing or adding more information to the prompt and try again.

The process of figuring out and designing the best input text (prompt) to get the desired response back from the model is called Prompt Design. You will be hearing a lot about prompt design in Generative AI field.

Once you are satisfied with the answer from the model, try switching its gear around. Here are a few exercises for you to explore.

  • adjust the Token limit parameter to 1 and click the SUBMIT button
  • adjust the Token limit parameter to 1024 and click the SUBMIT button
  • adjust the Temperature parameter to 0.5 and click the SUBMIT button
  • adjust the Temperature parameter to 1.0 and click the SUBMIT button

Do you notice any changes to the model’s responses? Let me know in the comment!

What’s Next?

If you want to learn more about using Generative AI Studio, visit our GitHub repository for a comprehensive list of resources.

About Writer

Thu Ya is a Developer Advocate for Google Cloud and a curious person who enjoys sci-fi, fantasy, and documentaries. He is fascinated by the unknown and the possibilities of other worlds. He often wonders if aliens built the pyramids, or if we live in a simulated world.

Get connected with Thu Ya on LinkedIn and Twitter!

--

--