Getting Started with Gemini Pro API on Google AI Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024

ความคิดเห็น • 52

  • @engineerprompt
    @engineerprompt  9 หลายเดือนก่อน

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

    • @gokulakrishnanr8414
      @gokulakrishnanr8414 7 หลายเดือนก่อน

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

  • @konstantinlozev2272
    @konstantinlozev2272 9 หลายเดือนก่อน +13

    The free low count is a blessing for experimenting!

  • @nufh
    @nufh 9 หลายเดือนก่อน +4

    It's nice to have an option to choose.

  • @AhmedMagdy-ly3ng
    @AhmedMagdy-ly3ng 9 หลายเดือนก่อน +5

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

  • @MadhuPatel-m8m
    @MadhuPatel-m8m 7 หลายเดือนก่อน +1

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

  • @alexxx4434
    @alexxx4434 9 หลายเดือนก่อน +8

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

    • @VR_Wizard
      @VR_Wizard 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน

      @@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.

  • @prasanosara1944
    @prasanosara1944 9 หลายเดือนก่อน +7

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

    • @flareonspotify
      @flareonspotify 9 หลายเดือนก่อน +3

      a token is 4 chars of base64 that equils 3 letters

  • @seeowltv
    @seeowltv 9 หลายเดือนก่อน +2

    I really thank you for your video

    • @engineerprompt
      @engineerprompt  9 หลายเดือนก่อน +1

      Glad it was helpful

  • @KolTregaskes
    @KolTregaskes 9 หลายเดือนก่อน

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

  • @SANTOSHKUMAR-zo4ef
    @SANTOSHKUMAR-zo4ef 8 หลายเดือนก่อน

    Hey, thank you very much !

  • @DattaSaiSrinivasBaswa
    @DattaSaiSrinivasBaswa 8 หลายเดือนก่อน +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.

  • @ecx007
    @ecx007 9 หลายเดือนก่อน +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

  • @emmanuelkolawole6720
    @emmanuelkolawole6720 9 หลายเดือนก่อน +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 9 หลายเดือนก่อน +4

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

  • @PoojanVImalbhaiSheth
    @PoojanVImalbhaiSheth 9 หลายเดือนก่อน

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

  • @soumilyade1057
    @soumilyade1057 9 หลายเดือนก่อน

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

  • @newchallengers9420
    @newchallengers9420 6 หลายเดือนก่อน

    When will paid version be available?

  • @JohnSleeper
    @JohnSleeper 4 หลายเดือนก่อน

    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 4 หลายเดือนก่อน

      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..

  • @waynestevens6741
    @waynestevens6741 9 หลายเดือนก่อน

    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

  • @zedcodinacademibychinvia9481
    @zedcodinacademibychinvia9481 9 หลายเดือนก่อน +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 7 หลายเดือนก่อน

      You can use Openai Assistant API

  • @AlanScotch
    @AlanScotch 9 หลายเดือนก่อน

    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 9 หลายเดือนก่อน

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

    • @engineerprompt
      @engineerprompt  9 หลายเดือนก่อน

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

  • @tishinpadilla100
    @tishinpadilla100 9 หลายเดือนก่อน

    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 7 หลายเดือนก่อน

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

  • @lostInSocialMedia.
    @lostInSocialMedia. 9 หลายเดือนก่อน

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

  • @ankitsoni534
    @ankitsoni534 8 หลายเดือนก่อน

    How can we fine tune for a task

  • @basharfocke
    @basharfocke 5 หลายเดือนก่อน

    It does not work in EU.

  • @shawnvines2514
    @shawnvines2514 9 หลายเดือนก่อน

    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 9 หลายเดือนก่อน +1

      google bard doesnt use the gemini vision.

    • @splitgate-thegoatz5034
      @splitgate-thegoatz5034 9 หลายเดือนก่อน

      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

  • @EduardoRomero-gh9gw
    @EduardoRomero-gh9gw 9 หลายเดือนก่อน

    is the model available also in spanish?

    • @engineerprompt
      @engineerprompt  9 หลายเดือนก่อน

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

  • @WisdomBitesDaily.
    @WisdomBitesDaily. 9 หลายเดือนก่อน

    Cannot make make API

  • @oladejiolaoluwa9155
    @oladejiolaoluwa9155 9 หลายเดือนก่อน

    Can I use Gemini API key in my vscode??

    • @sherpya
      @sherpya 9 หลายเดือนก่อน +1

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

    • @engineerprompt
      @engineerprompt  9 หลายเดือนก่อน

      Yes if you have access to it.

  • @happygolden-mountain
    @happygolden-mountain 7 หลายเดือนก่อน

    Well .. learn Chinese guys.

  • @jaysonp9426
    @jaysonp9426 9 หลายเดือนก่อน

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

  • @NurbNerb
    @NurbNerb 9 หลายเดือนก่อน

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

    • @engineerprompt
      @engineerprompt  9 หลายเดือนก่อน +1

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

    • @MotiveMove_Ae
      @MotiveMove_Ae 9 หลายเดือนก่อน +1

      ​@@engineerpromptGoogle ai studio

  • @SANTOSHKUMAR-zo4ef
    @SANTOSHKUMAR-zo4ef 8 หลายเดือนก่อน

    Hey, thank you very much !