How to start using Gemini API on Vertex AI🔥: Python & Node.js - Gemini #2

In today's tutorial, we are going to set up the Vertex AI and use the Gemini Pro API. The Vertex AI is designed for developers and enterprises for use in scaled deployments. It offers features such as enterprise security, data residency, performance, and technical support. I’ll show you an example of how to use the Vertex AI Gemini API in both Python and Node.js.
⭐ Code ⭐
GitHub repository: github.com/rokbenko/ai-playgr...
Code for this tutorial: github.com/rokbenko/ai-playgr...
🙌 Support 🙌
If you would like to support me, join my Patreon community ( / rokbenko ) and subscribe to my KZread channel ( / @rokbenko ). Don't forget to click the bell 🔔 to get a notification when I release a new video.
👇 Contact 👇
GitHub: github.com/rokbenko
StackOverflow: stackoverflow.com/users/10347...
LinkedIn: / rokbenko
🎞️ Timestamps 🎞️
00:00 - Intro
00:24 - Code for this tutorial
00:40 - Gemini API vs. Vertex AI Gemini API
01:38 - Step 1: Sign in to Google Cloud and create the first project
01:52 - Step 2: Enable Vertex AI API
02:22 - Step 3: Set up Application Default Credentials using IAM
02:56 - Substep 1: Create a service account
03:20 - Substep 2: Create a JSON key
03:51 - JSON key example
03:59 - Step 4: Set the JSON key as an environment variable
04:20 - Application Default Credentials summary
04:49 - Step 5: Install Vertex AI SDK
05:10 - Step 6: Python and Node.js example code breakdowns
05:47 - Run Python and Node.js examples
06:15 - Outro
#Gemini #VertexAI

Пікірлер: 9

  • @rokbenko
    @rokbenko6 ай бұрын

    Hey everyone! 👋 Did you know that 97.5% of my viewers aren’t subscribed? If you found this tutorial helpful, consider subscribing to the channel. It’s free and doesn’t hurt anyone, but it means a lot to me. Plus, it’s a great way to stay updated with the latest coding tips and tricks. Thanks for your support! 🙏

  • @larshektoen8291

    @larshektoen8291

    6 ай бұрын

    how to make a speech to speech languange to action model (LAM) like script in python utilizing this or local llm's

  • @DGandSO
    @DGandSO5 ай бұрын

    I love how you deliver your instructions. Saved me a lot of head bashing with this tutorial.

  • @Optimusjf
    @Optimusjf2 ай бұрын

    thank you.

  • @leonajoy1364
    @leonajoy13642 ай бұрын

    When I try to use install the python SDK using pip install google-cloud-aiplatform, I get an error stating that there was a problem confirming the ssl certificate. Could someone let me know how this issue can be resolved?

  • @virajvaitha3180
    @virajvaitha31805 ай бұрын

    This was useful thank you! My current infrastructure is on Azure. So I am assuming, aslong as I have the json credentials, and the relevant libraries installed I can call this from my Azure Function?

  • @rokbenko

    @rokbenko

    5 ай бұрын

    To be honest, I don't know. I have never tested this. Microsoft has invested billions into OpenAI. I guess they prefer you using OpenAI on Azure. If you'll try, come back and let me know if you were successful.

  • @carkod
    @carkod5 ай бұрын

    You didn't explain in the video how are the environment variables provided in the script you wrote? How do you authenticate the Vertex AI instance?

  • @rokbenko

    @rokbenko

    5 ай бұрын

    You set the environment variable, but you don't need to provide it anywhere. The ADC (see 04:20) searches for it automatically.