Getting Started with Gemini Pro API on Google AI Studio

Поделиться
HTML-код
  • Опубликовано: 1 авг 2024
  • Gemini Pro API access is here. In this video, we will look at how to get started with it and use its vision capabilities for absolutely free.
    LINKS:
    Colab: tinyurl.com/bd3h2b4c
    Google AI Studio: makersuite.google.com/
    API Docs: ai.google.dev/tutorials/pytho...
    Embeddings: ai.google.dev/docs/embeddings...
    Safety Settings: ai.google.dev/docs/safety_set...
    Want to Follow:
    🦾 Discord: / discord
    ▶️️ Subscribe: www.youtube.com/@engineerprom...
    Want to Support:
    ☕ Buy me a Coffee: ko-fi.com/promptengineering
    |🔴 Support my work on Patreon: / promptengineering
    Need Help?
    📧 Business Contact: engineerprompt@gmail.com
    💼Consulting: calendly.com/engineerprompt/c...
    Join this channel to get access to perks:
    / @engineerprompt
    Timestamps:
    [00:00] Intro
    [00:43] Gemini Pro API Pricing and Usage
    [2:27] Getting Started with Gemini Pro
    [3:12] Exploring Gemini Pro's Features
    [05:46] Using Gemini Pro in Google Colab
    [12:55] Gemini Pro's Chat Model
    [15:26] Gemini Pro's Embedding Model
    [17:21] Controlling Safety Settings in Gemini Pro
    [19:04] Working with Gemini Pro Vision Model
    All Interesting Videos:
    Everything LangChain: • LangChain
    Everything LLM: • Large Language Models
    Everything Midjourney: • MidJourney Tutorials
    AI Image Generation: • AI Image Generation Tu...
  • НаукаНаука

Комментарии • 52

  • @engineerprompt
    @engineerprompt  7 месяцев назад

    Need help with Building your LLM powered Applications? Reach out if you need help: calendly.com/engineerprompt/consulting-call

    • @gokulakrishnanr8414
      @gokulakrishnanr8414 5 месяцев назад

      "Impressive demo! Can't wait to try Gemini Pro API."

  • @konstantinlozev2272
    @konstantinlozev2272 7 месяцев назад +13

    The free low count is a blessing for experimenting!

  • @AhmedMagdy-ly3ng
    @AhmedMagdy-ly3ng 7 месяцев назад +5

    I really love the content that you are providing..big thanks bro ❤

  • @nufh
    @nufh 7 месяцев назад +4

    It's nice to have an option to choose.

  • @KolTregaskes
    @KolTregaskes 7 месяцев назад

    Really useful video, thank you. And it's great to have some free tokens to test the model.

  • @SANTOSHKUMAR-zo4ef
    @SANTOSHKUMAR-zo4ef 6 месяцев назад

    Hey, thank you very much !

  • @user-md1xf3bs9k
    @user-md1xf3bs9k 5 месяцев назад +1

    The prompt_feedback property gives the result of the prompt or the generated response.

  • @user-th2mw2li4g
    @user-th2mw2li4g 5 месяцев назад +1

    Hi. Really an amazing content and it's working very well. But I got stuck somewhere, could you please try to make a video on how we can implement a multiple input images at a time and run our prompt on them For Eg: "Explain these 10 Images?". I couldn't able to figure out how it can achievable and it would be really grateful if you could ans this. Thanks in advance.

  • @seeowltv
    @seeowltv 7 месяцев назад +2

    I really thank you for your video

  • @alexxx4434
    @alexxx4434 7 месяцев назад +8

    1:52 It appears that you are incorrectly comparing pricing for tokens (GPT) to characters (Gemini).

    • @VR_Wizard
      @VR_Wizard 7 месяцев назад +3

      I think you are correct.
      A token according to open ai is
      1 token ~= 4 chars in English
      1 token ~= ¾ words
      100 tokens ~= 75 words
      a character is only a single letter.
      Price difference token to charakter
      0.01 / 0.00025 = 40
      This means Gemini Api is roughly 10x cheaper then Open Ai. However if Gemini Pro is significantly worse compared to GPT4 you might want to use booth APIs and switch between them depending on how importend a good output is for you usecase.

    • @alexxx4434
      @alexxx4434 7 месяцев назад +1

      @@VR_Wizard I afraid there is a mistake in your calculation. I havent found official OpenAI measurments for their tokens, but seen unofficial claims that for English text 1 ChatGPT token ≈ 3/4 words on average. An English word on average is 4.7 characters. Therefore 1 ChatGPT token ≈ 3.5 characters.
      The pricing difference per character: 0.001/3.5=0.000285 (GPT) vs 0.00025 (Gemini)
      Given the above measurements one could say that the pricing is similar if not slightly more pricier for ChatGPT.
      This is only for English texts, because other languages could have other tokenization rates and avg. word lengths.

    • @VR_Wizard
      @VR_Wizard 7 месяцев назад

      @@alexxx4434 The price for a token (Input) is 0.01 not 0.001 for open AI. The 40 I got means a character in the google API costs 40x less then a token from OpenAI. Since OpenAI claims that their tokens contain 4 chatacters I end up with 10x price difference.
      The numbers are fom the help site of OpenAI "What are tokens and how to count them?" I cant post the link here my comment gets blocked otherwise.

  • @tishinpadilla100
    @tishinpadilla100 7 месяцев назад

    Great work! I am trying to figure out how to include the prompt data I generated on Google ai studio and exported to Google drive into the colab notebook tutorial. I am trying the multi turn conversation section in the notebook but no progress yet. Any thoughts? I am a novice btw.

    • @gokulakrishnanr8414
      @gokulakrishnanr8414 5 месяцев назад

      "Great tutorial, I'm excited to try Gemini Pro API on AI Studio!"

  • @PoojanVImalbhaiSheth
    @PoojanVImalbhaiSheth 6 месяцев назад

    Can you explain the process, how to get early access of gemini and how you were able to get it,

  • @prasanosara1944
    @prasanosara1944 7 месяцев назад +7

    OpenAi charges per 1k tokens where as Gemini charges per 1k char. Could you please compare the price based on this?

    • @flareonspotify
      @flareonspotify 7 месяцев назад +3

      a token is 4 chars of base64 that equils 3 letters

  • @ecx007
    @ecx007 7 месяцев назад +1

    However that model equal other models do not math operation, with large operation always fails. For example: What is the sum total of: 2317+2446+2667+2270+2435+2419+2395+2438+2363+2427+2271+2219+2141+2326+2647+2446+2347+2535+2397

  • @waynestevens6741
    @waynestevens6741 7 месяцев назад

    i have tested gemini pro api but is not get results as bard direct i have checked some text generating by bard and other with gemini pro the gemini pro always dedicted by ai content

  • @soumilyade1057
    @soumilyade1057 7 месяцев назад

    Unfortunately, I'm getting "Internal Server Error" on Google Colab... ERROR:tornado.access:500 a GET error

  • @AlanScotch
    @AlanScotch 7 месяцев назад

    Thanks but I just wanted the video to start with the most simple option of CHAT accessing the API FROM ANY PROGRAM using REST ( HTTP GET). Any ideas ?

    • @AlanScotch
      @AlanScotch 7 месяцев назад

      Also to act like a chatbot do I need to prefix every question with "In one sentence" ? Any ideas ?

    • @engineerprompt
      @engineerprompt  7 месяцев назад

      Check out my latest video. Hope that will be useful.

  • @shawnvines2514
    @shawnvines2514 7 месяцев назад

    Just using Google Bard with the image upload. I found that it couldn't do the following things when asked a basic question. What is the size of this image in pixels? Please give me the pixel location of the red button in the middle? Please tell me how many objects are in this image (simple white background with 3 geometric shapes of different primary colors). Is there some way to ask the question in a better way to get better answers from Gemini Vision Pro (which I'm assuming Google Bard is using)?

    • @InfiniteCode69
      @InfiniteCode69 7 месяцев назад +1

      google bard doesnt use the gemini vision.

    • @splitgate-thegoatz5034
      @splitgate-thegoatz5034 7 месяцев назад

      also youa re dumb to assume the model can work or analyze image in a "live" way like nofo pixel size background etc. the model takes in data from the image in a total or whole to analyze the image. no model can do what you are intending to do

  • @zedcodinacademibychinvia9481
    @zedcodinacademibychinvia9481 7 месяцев назад +1

    Sir I want a chat application but i want to fine-tune my model for that task how can i do IT. Example a bot for agriculture

    • @oasalihu
      @oasalihu 5 месяцев назад

      You can use Openai Assistant API

  • @ankitsoni534
    @ankitsoni534 6 месяцев назад

    How can we fine tune for a task

  • @lostInSocialMedia.
    @lostInSocialMedia. 7 месяцев назад

    bro make a video on how to use gemini api in metagpt !!

  • @newchallengers9420
    @newchallengers9420 4 месяца назад

    When will paid version be available?

  • @JohnSleeper
    @JohnSleeper 2 месяца назад

    I have a question, if you please. I created 2 different Prompts in AI Studio: ChatbotBasketball and ChatbotSoccer, and have uploaded unique documents to each. I have created 2 API keys, how do I assign an API to a particular prompt, so that 1 key is just for the Basketball prompt and one for the Soccer prompt? I understand how to add the API code to an .env file, so that it works over the internet, but there is no step that sets the API to either of the Prompt Projects in AI studio. Please help!

    • @JohnSleeper
      @JohnSleeper 2 месяца назад

      Just to clarify, the API keys correctly connect to Google Cloud Projects, so the billing and traffic metrics work for each API key. However, neither API key / Prompt combo has access to the files uploaded to the Prompts in Google AI Studio. So the Prompt User / Model roles from Prompt questions are in the JavaScript, but the AI can't access the files / documents that are in the AI studio. The Prompt can only read the files if you are asking it questions directly in AI Studio..

  • @EduardoRomero-gh9gw
    @EduardoRomero-gh9gw 7 месяцев назад

    is the model available also in spanish?

    • @engineerprompt
      @engineerprompt  7 месяцев назад

      I believe so too. Europe might not have access yet though

  • @emmanuelkolawole6720
    @emmanuelkolawole6720 7 месяцев назад +8

    Brother, Google is pay per character, which is worse than pay by tokens. So gpt is still cheaper than Gemini Because gpt is pay by 1k tokens not characters

    • @alexxx4434
      @alexxx4434 7 месяцев назад +4

      I did a calculation in my other comment, converting tokens to chars. It appears that the pricing could be actually on par.

  • @basharfocke
    @basharfocke 2 месяца назад

    It does not work in EU.

  • @oladejiolaoluwa9155
    @oladejiolaoluwa9155 7 месяцев назад

    Can I use Gemini API key in my vscode??

    • @sherpya
      @sherpya 7 месяцев назад +1

      it depends on your location, right now you can't from Europe

    • @engineerprompt
      @engineerprompt  7 месяцев назад

      Yes if you have access to it.

  • @WisdomBitesDaily.
    @WisdomBitesDaily. 7 месяцев назад

    Cannot make make API

  • @happygolden-mountain
    @happygolden-mountain 5 месяцев назад

    Well .. learn Chinese guys.

  • @jaysonp9426
    @jaysonp9426 7 месяцев назад

    Why would anyone care? They basically lied to make themselves seem relevant and GPT 3.5 and Mixtral are better.

  • @NurbNerb
    @NurbNerb 7 месяцев назад

    Access restricted
    You do not have permission to view this page.

    • @engineerprompt
      @engineerprompt  7 месяцев назад +1

      Are you having trouble accessing the colab or Google AI studio?

    • @TradeMindForge
      @TradeMindForge 7 месяцев назад +1

      ​@@engineerpromptGoogle ai studio

  • @SANTOSHKUMAR-zo4ef
    @SANTOSHKUMAR-zo4ef 6 месяцев назад

    Hey, thank you very much !