빠른 시작: Vertex AI Studio를 사용하여 Gemini에 텍스트 프롬프트 보내기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Vertex AI Studio를 사용하여 Google의 Gemini 대규모 언어 모델(LLM) 및 서드 파티 모델의 프롬프트를 설계, 테스트, 관리할 수 있습니다. Vertex AI Studio는 Vertex AI에서 서비스형 모델(MaaS)로 제공되는 특정 서드 파티 모델(예: Anthropic의 Claude 모델, Meta의 Llama 모델)을 지원합니다.
이 빠른 시작에서는 생성형 AI 프롬프트 갤러리의 샘플 프롬프트를 사용하여 다음 작업을 실행하는 방법을 알아봅니다.
Gemini API에 요약 텍스트 프롬프트 전송하기
Gemini API에 코드 생성 프롬프트 전송하기
응답을 생성하는 데 사용된 코드 보기
Vertex AI Studio에서 프롬프트를 시작하기 전에
이 빠른 시작에서는Google Cloud 프로젝트를 설정하고 Vertex AI API를 사용 설정하기 위해 다음 단계를 완료해야 합니다.
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
In the Principal column, find all rows that identify you or a group that
you're included in. To learn which groups you're included in, contact your
administrator.
For all rows that specify or include you, check the Role column to see whether
the list of roles includes the required roles.
In the Principal column, find all rows that identify you or a group that
you're included in. To learn which groups you're included in, contact your
administrator.
For all rows that specify or include you, check the Role column to see whether
the list of roles includes the required roles.
새 주 구성원 필드에 사용자 식별자를 입력합니다.
일반적으로 Google 계정의 이메일 주소입니다.
역할 선택 목록에서 역할을 선택합니다.
역할을 추가로 부여하려면 add다른 역할 추가를 클릭하고 각 역할을 추가합니다.
저장을 클릭합니다.
Vertex AI Studio의 샘플 프롬프트
프롬프트는 대답을 생성하기 위해 언어 모델에 제출되는 자연어 요청입니다. 프롬프트에는 완료하거나 계속할 모델에 대한 질문, 안내, 문맥 정보, 퓨샷 예시, 부분 입력이 포함될 수 있습니다. 예를 들어 프롬프트는 "Summarize the following article:" 다음에 도움말 텍스트가 올 수 있습니다.
사용되는 모델 유형에 따라 모델에서 프롬프트를 수신한 후 텍스트, 임베딩, 코드, 이미지, 동영상, 음악 등을 생성할 수 있습니다.
Vertex AI Studio 프롬프트 갤러리의 샘플 프롬프트는 모델 기능을 시연하는 데 도움이 되도록 미리 설계되었습니다. 각 프롬프트가 지정된 모델 및 파라미터 값으로 미리 구성되어 있으므로 샘플 프롬프트를 열고 제출을 클릭하여 응답을 생성할 수 있습니다.
Vertex AI Studio에서 Gemini 모델 테스트
프롬프트 갤러리의 사전 빌드된 샘플 프롬프트를 사용하여 모델의 다양한 기능을 테스트할 수 있습니다. 다음 예는 요약 및 코드 생성에 프롬프트를 사용하는 방법을 보여줍니다.
요약 텍스트 프롬프트
요약 텍스트 프롬프트를 사용하여 Gemini 플래시 모델 테스트
Vertex AI의 Gemini API에 요약 텍스트 프롬프트를 전송합니다. 요약 태스크는 텍스트에서 가장 중요한 정보를 추출합니다. 프롬프트에 정보를 제공하여 모델의 요약 생성을 돕거나 모델이 자체적으로 요약을 만들도록 요청할 수 있습니다.
Google Cloud 콘솔의 Vertex AI 섹션에서 프롬프트 갤러리 페이지로 이동합니다. 프롬프트 갤러리로 이동
태스크 드롭다운 메뉴에서 요약을 선택합니다.
오디오 요약 카드를 엽니다.
이 샘플 프롬프트에는 오디오 파일이 포함되어 있으며 글머리기호 목록으로 파일 콘텐츠의 요약을 요청합니다.
설정 패널에서 모델의 기본값이 Gemini-2.0-flash-001로 설정되어 있는 것을 볼 수 있습니다. 모델 전환을 클릭하여 다른 Gemini 모델을 선택할 수 있습니다.
제출을 클릭하여 요약을 생성합니다.
출력이 응답에 표시됩니다.
스크립트 요약을 생성하는 데 사용된 Vertex AI API 코드를 보려면 코드로 빌드 > 코드 가져오기를 클릭합니다.
코드 가져오기 패널에서 원하는 언어를 선택하여 프롬프트의 샘플 코드를 가져오거나 Colab Enterprise 노트북에서 Python 코드를 열 수 있습니다.
코드 생성 메시지
코드 생성 프롬프트를 사용하여 Gemini 플래시 모델 테스트
Vertex AI의 Gemini API에 코드 생성 프롬프트를 전송합니다. 코드 생성 작업은 자연어 설명을 사용하여 코드를 생성합니다.
Google Cloud 콘솔의 Vertex AI 섹션에서 프롬프트 갤러리 페이지로 이동합니다. 프롬프트 갤러리로 이동
태스크 드롭다운 메뉴에서 요약을 선택합니다.
주석에서 코드 생성 카드를 엽니다.
이 샘플 프롬프트에는 모델에 응답 방법을 알려주는 시스템 안내와 일부 불완전한 Java 메서드가 포함되어 있습니다.
설정 패널에서 모델의 기본값이 Gemini-2.0-flash-001로 설정되어 있는 것을 볼 수 있습니다. 모델 전환을 클릭하여 다른 Gemini 모델을 선택할 수 있습니다.
<WRITE CODE HERE>로 표시된 영역에서 코드를 생성하여 각 메서드를 완료하려면 제출을 클릭합니다 .
출력이 응답에 표시됩니다.
스크립트 요약을 생성하는 데 사용된 Vertex AI API 코드를 보려면 코드로 빌드 > 코드 가져오기를 클릭합니다.
코드 가져오기 패널에서 원하는 언어를 선택하여 프롬프트의 샘플 코드를 가져오거나 Colab Enterprise 노트북에서 Python 코드를 열 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-09(UTC)"],[],[],null,["# Quickstart: Send text prompts to Gemini using Vertex AI Studio\n\nYou can use Vertex AI Studio to design, test, and manage prompts for\nGoogle's [Gemini](/vertex-ai/generative-ai/docs/overview) large language models\n(LLMs) and third-party models. Vertex AI Studio supports certain\nthird-party models that are offered on Vertex AI as [models as a\nservice (MaaS)](/vertex-ai/generative-ai/docs/partner-models/use-partner-models), such as\nAnthropic's Claude models and Meta's Llama models.\n| **Note:** On your initial use for third-party models, Vertex AI prompts you to accept the third-party's terms and conditions. You must do this once for each third-party provider to start using their models.\n\nIn this quickstart, you:\n\n- Send these prompts to the Gemini API using samples from the generative AI prompt gallery, including the following:\n - A summarization text prompt\n - A code generation prompt\n- View the code used to generate the responses\n\nBefore you begin prompting in Vertex AI Studio\n----------------------------------------------\n\nThis quickstart requires you to complete the following steps to set up a\nGoogle Cloud project and enable the Vertex AI API.\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Vertex AI API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com)\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n\n\n Enable the Vertex AI API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com)\n\n\u003cbr /\u003e\n\nSample prompts in Vertex AI Studio\n----------------------------------\n\nA prompt is a natural language request submitted to a language model that\ngenerates a response. Prompts can contain questions, instructions, contextual\ninformation, [few-shot examples](/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design#few-shot-examples),\nand partial input for the model to complete. After the model receives a prompt,\ndepending on the type of model used, it can generate text, embeddings, code,\nimages, videos, music, and more.\n\nThe sample prompts in Vertex AI Studio [prompt gallery](/vertex-ai/generative-ai/docs/prompt-gallery)\nare predesigned to help demonstrate model capabilities. Each prompt is\npreconfigured with specified model and parameter values so you can open the\nsample prompt and click **Submit** to generate a response.\n\nTest the Gemini flash model using a summarization text prompt\n-------------------------------------------------------------\n\nSend a summarization text prompt to the Gemini API in Vertex AI. A summarization\ntask extracts the most important information from text. You can provide\ninformation in the prompt to help the model create a summary, or ask the model\nto create a summary on its own.\n\n1. Go to the **Prompt gallery** page from the Vertex AI\n section in the Google Cloud console. \n\n [Go to prompt gallery](https://console.cloud.google.com/vertex-ai/studio/prompt-gallery)\n\n2. In the **Tasks** drop-down menu, select **Summarize**.\n\n3. Open the **Audio summarization** card.\n\n This sample prompt includes an audio file and requests a summary of the file\n contents in a bulleted list.\n\n4. Notice that in the settings panel, the model's default value is set to\n **Gemini-2.0-flash-001** . You can choose a different Gemini model\n by clicking **Switch model**.\n\n5. Click **Submit** to generate the summary.\n\n The output is displayed in the response.\n6. To view the Vertex AI API code used to generate the transcript\n summary, click **Build with code** \\\u003e **Get code**.\n\n In the **Get code** panel, you can choose your preferred language to get the\n sample code for the prompt, or you can open the Python code in a\n Colab Enterprise notebook.\n\nTest the Gemini flash model using a code generation prompt\n----------------------------------------------------------\n\nSend a code generation prompt to the Gemini API in Vertex AI. A code generation task generates code\nusing a natural language description.\n\n1. Go to the **Prompt gallery** page from the Vertex AI\n section in the Google Cloud console. \n\n [Go to prompt gallery](https://console.cloud.google.com/vertex-ai/studio/prompt-gallery)\n\n2. In the **Tasks** drop-down menu, select **Code**.\n\n3. Open the **Generate code from comments** card.\n\n This sample prompt includes a [system instruction](/vertex-ai/generative-ai/docs/learn/prompts/system-instruction-introduction)\n that tells the model how to respond and some incomplete Java methods.\n\n4. Notice that in the settings panel, the model's default value is set to\n **Gemini-2.0-flash-001** . You can choose a different Gemini model\n by clicking **Switch model**.\n\n5. To complete each method by generating code in the areas marked\n `\u003cWRITE CODE HERE\u003e`, click **Submit** .\n\n The output is displayed in the response.\n6. To view the Vertex AI API code used to generate the transcript\n summary, click **Build with code** \\\u003e **Get code**.\n\n In the **Get code** panel, you can choose your preferred language to get the\n sample code for the prompt, or you can open the Python code in a\n Colab Enterprise notebook.\n\nDiscover what's next with prompts\n---------------------------------\n\n- See an [introduction to prompt design](/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design).\n- Learn about [designing multimodal prompts](/vertex-ai/generative-ai/docs/multimodal/design-multimodal-prompts) and [chat prompts](/vertex-ai/generative-ai/docs/chat/chat-prompts)."]]