Gemini API: Qwik Start

실습 15분 universal_currency_alt 크레딧 1개 show_chart 입문
info 이 실습에는 학습을 지원하는 AI 도구가 통합되어 있을 수 있습니다.
이 콘텐츠는 아직 휴대기기에 최적화되지 않음
최상의 경험을 위해 데스크톱 컴퓨터에서 이메일로 전송된 링크를 사용하여 방문하세요.

GSP1308

Google Cloud self-paced labs logo

Overview

The Gemini API empowers developers and creators across various fields by providing advanced natural language processing and code generation capabilities. It enables the creation of intelligent chatbots, automated content generation tools, insightful data analysis platforms, and personalized learning experiences. Its versatility stems from its ability to understand context, generate creative text, analyze complex data, and adapt to diverse applications.

There are two Gemini models, Gemini Pro and Gemini Flash. In this lab, you will use the model.

Prerequisites

Before starting this lab, you should be familiar with:

  • Basic Python programming.
  • General API concepts.
  • Running Python code in a Jupyter notebook on Vertex AI Workbench.

Objectives

In this lab, you will learn how to:

  • Set up and authenticate the Gemini API.
  • Make basic API calls to interact with Gemini models.

Task 1. Set your API Key

  1. In the Jupyter Notebook, copy the below API key into API_KEY variable.
{{{project_0.startup_script.api_key|"API KEY"}}}

Task 2. Run through the notebook cells

  1. Once you have set your API_KEY variable, please replace the __GEMINI_FLASH_MODEL_ID__ placeholder in the notebook with and follow instructions directly in the Jupyter Notebook.
Note: API calls to Gemini require processing time. Please allow a moment for the response to appear after executing a notebook cell.

Click Check my progress to verify the objective. Generate Text from the Gemini API.

Click Check my progress to verify the objective. Multi-Turn Conversations.

Congratulations!

Congratulations! In this lab, you learned how to use the Gemini API and make basic API calls to interact with Gemini models.

Next steps / learn more

Check out the following resources to learn more about Gemini:

Google Cloud training and certification

...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.

Manual Last Updated October 07, 2025

Lab Last Tested October 07, 2025

Copyright 2025 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.

시작하기 전에

  1. 실습에서는 정해진 기간 동안 Google Cloud 프로젝트와 리소스를 만듭니다.
  2. 실습에는 시간 제한이 있으며 일시중지 기능이 없습니다. 실습을 종료하면 처음부터 다시 시작해야 합니다.
  3. 화면 왼쪽 상단에서 실습 시작을 클릭하여 시작합니다.

시크릿 브라우징 사용

  1. 실습에 입력한 사용자 이름비밀번호를 복사합니다.
  2. 비공개 모드에서 콘솔 열기를 클릭합니다.

콘솔에 로그인

    실습 사용자 인증 정보를 사용하여
  1. 로그인합니다. 다른 사용자 인증 정보를 사용하면 오류가 발생하거나 요금이 부과될 수 있습니다.
  2. 약관에 동의하고 리소스 복구 페이지를 건너뜁니다.
  3. 실습을 완료했거나 다시 시작하려고 하는 경우가 아니면 실습 종료를 클릭하지 마세요. 이 버튼을 클릭하면 작업 내용이 지워지고 프로젝트가 삭제됩니다.

현재 이 콘텐츠를 이용할 수 없습니다

이용할 수 있게 되면 이메일로 알려드리겠습니다.

감사합니다

이용할 수 있게 되면 이메일로 알려드리겠습니다.

한 번에 실습 1개만 가능

모든 기존 실습을 종료하고 이 실습을 시작할지 확인하세요.

시크릿 브라우징을 사용하여 실습 실행하기

Using an Incognito or private browser window is the best way to run this lab. This prevents any conflicts between your personal account and the Student account, which may cause extra charges incurred to your personal account.