Getting Started with the Vertex AI Gemini API and Python SDK GSP1209
Overview Gemini is a family of generative AI models developed by Google DeepMind that is designed for multimodal use cases. The Gemini API gives you access to the Gemini Pro Vision and Gemini Pro models. In this lab, you will learn how to use the Vertex AI Gemini API with the Vertex AI SDK for Python to interact with the Gemini Pro (gemini-pro) model and the Gemini Pro Vision (gemini-pro-vision) model. Vertex AI Gemini API The Vertex AI Gemini API provides a unified interface for interacting with Gemini models. There are currently two models available in the Gemini API: - Gemini Pro model (gemini-pro): Designed to handle natural language tasks, multiturn text and code chat, and code generation. - Gemini Pro Vision model (gemini-pro-vision): Supports multimodal prompts. You can include text, images, and video in your prompt requests and get text or code responses. You can interact with the Gemini API using the following methods: - Use the Vertex AI Studio for quick testing and command generation - Use cURL commands - Use the Vertex AI SDK This lab focuses on using the Vertex AI SDK for Python to call the Vertex AI Gemini API. For more information, see the Generative AI on Vertex AI documentation. Objectives In this lab, you will learn how to perform the following tasks: - Install the Vertex AI SDK for Python - Use the Gemini Pro (gemini-pro) model to generate text - Use the Gemini Pro Vision (gemini-pro-vision) multimodal model to generate text from a combination of text, images, and video #gcp #googlecloud #qwiklabs #learntoearn
Download
0 formatsNo download links available.