In this quickstart, you use Vertex AI Studio to send a prompt to Gemini API without registering for a Google Cloud account. Vertex AI Studio provides features that allow you to design, test, and manage prompts for Google's Gemini large language model (LLM).
In this quickstart, you:
- Send a freeform text prompt to the Gemini API
- View the code used to generate the response
Features available without a Google Cloud account
Access to freeform text prompts is available without a Google Cloud account. When you use Vertex AI Studio with a Google Cloud free trial account or without signing in to Google Cloud, some features are not available as shown in the following table. To try Vertex AI Studio, accept the Vertex AI Studio Terms of Service window in the Google Cloud console.
Use without a Google Cloud account | Use with a Google Cloud free trial account | Use with an existing Google Cloud account | |
---|---|---|---|
Sign in required | No | Yes | Yes |
Queries per minute (QPM) | 2 QPM for all multimodal models | See quota limits | See quota limits |
Credits offered | $0 | Up to $300 for 90 days | $0 |
Prompt gallery | No | Yes | Yes |
Prompt designer | Yes | Yes | Yes |
Save prompts | No | Yes | Yes |
Prompt history | No | Yes | Yes |
Advanced parameters | No | No | Yes |
Tuning | No | No | Yes |
API usage | No | Yes | Yes |
Billing required | No | No | Yes |
How to get started | Go to Vertex AI Studio | Sign up for a free trial | Try Vertex AI Studio in your console |
This quickstart provides instructions for accessing Vertex AI Studio without an account. You can also complete this quickstart using the free trial or an existing account.
Sample prompts in Vertex AI Studio
A prompt is a natural language request submitted to a language model that generates a response. Prompts can contain questions, instructions, contextual information, few-shot examples, and partial input for the model to complete. After the model receives a prompt, depending on the type of model used, it can generate text, embeddings, code, images, videos, music, and more.
Test the Gemini flash model using a freeform text prompt
A freeform prompt lets you test text and multimodal prompts using a variety of Gemini models. Here, you create a freeform text prompt that includes a task to answer this question: "What are some possible names for a flower shop that sells bouquets of dried flowers?"
Go to the Freeform page in the Vertex AI section of the Google Cloud console.
Go to FreeformAn untitled prompt opens. In the prompt box, enter
What are some possible names for a flower shop that sells bouquets of dried flowers?
.Click Submit.
The output appears in the Response box.
To view the Vertex AI API code used to generate the transcript summary, click
Get code.In the Get code panel, you can choose your preferred language to get the code sample for the prompt.
Discover what's next with prompts
- See an introduction to prompt design.
- Learn about designing text prompts and text chat prompts.
- Learn about streaming responses from a model.