Back to Browse

📌 Explore Generative AI with Gemini API: Challenge Lab | Gen AI Program by Google

312 views
Aug 29, 2025
42:52

Welcome to another advanced hands-on walkthrough from the Generative AI Exchange Program by Google Cloud and Hack2Skill! 🚀 In this video, we tackle the Gemini API Challenge Lab, where we explore how to use Gemini for dynamic prompt-response workflows using REST API and streaming. You’ll gain experience in using tools like curl and Google’s GenAI SDK to send and manage prompts from real-world apps. ⏱️ Timestamps: 00:00 Introduction 01:15 Task 1. Generate text using Gemini 06:00 Task 2. Open the notebook in Vertex AI Workbench 14:10 Task 3. Create a function call using Gemini 17:30 Task 4. Describe video contents using Gemini 🔍 What you'll learn in this video: How to call Gemini API using cURL and REST Difference between generateContent and generate_content_stream Installing and using the Vertex AI Python SDK Managing authentication and request formatting Submitting your Challenge Lab and earning your badge 🧰 Key Commands Used in This Video: 🔹 Install Vertex AI SDK: pip3 install --upgrade --user google-cloud-aiplatform 🔹 Make an API call using curl: curl -X POST \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ -d '{ "contents": [ { "role": "USER", "parts": { "text": "Why is the sky blue?" } } ] }' \ https://${API_ENDPOINT}/v1/projects/${PROJECT_ID}/locations/${LOCATION}/publishers/google/models/gemini-2.0-flash-001:generateContent 🔹 Stream API Method Used: generate_content_stream 📖 Also check out my Medium blog on completing the Rich Document + Multimodal RAG lab: 👉 https://medium.com/@chinmaydesle03/completed-inspect-rich-documents-with-gemini-multimodality-and-multimodal-rag-gen-ai-exchange-75785e21349b 🎓 Course Link: 👉 https://www.cloudskillsboost.google/course_templates/979 👉 Don’t forget to like, share, and subscribe — more GenAI walkthroughs, tutorials, and real-world labs coming soon! #Hack2Skill #vertexai #geminiapi #challengelab #GoogleGenAI #generateContent #googlecloud #aiexchangeprogram #promptengineering #buildwithgemini #cURL #PythonSDK #genai

Download

0 formats

No download links available.

📌 Explore Generative AI with Gemini API: Challenge Lab | Gen AI Program by Google | NatokHD