Getting Started with Gemini Pro API on Google AI Studio

  Рет қаралды 64,874

Prompt Engineering

Prompt Engineering

Күн бұрын

Пікірлер: 52
@engineerprompt
@engineerprompt 10 ай бұрын
Need help with Building your LLM powered Applications? Reach out if you need help: calendly.com/engineerprompt/consulting-call
@gokulakrishnanr8414
@gokulakrishnanr8414 8 ай бұрын
"Impressive demo! Can't wait to try Gemini Pro API."
@konstantinlozev2272
@konstantinlozev2272 10 ай бұрын
The free low count is a blessing for experimenting!
@nufh
@nufh 10 ай бұрын
It's nice to have an option to choose.
@AhmedMagdy-ly3ng
@AhmedMagdy-ly3ng 10 ай бұрын
I really love the content that you are providing..big thanks bro ❤
@alexxx4434
@alexxx4434 10 ай бұрын
1:52 It appears that you are incorrectly comparing pricing for tokens (GPT) to characters (Gemini).
@VR_Wizard
@VR_Wizard 10 ай бұрын
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 10 ай бұрын
@@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 10 ай бұрын
@@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.
@MadhuPatel-m8m
@MadhuPatel-m8m 8 ай бұрын
The prompt_feedback property gives the result of the prompt or the generated response.
@prasanosara1944
@prasanosara1944 10 ай бұрын
OpenAi charges per 1k tokens where as Gemini charges per 1k char. Could you please compare the price based on this?
@flareonspotify
@flareonspotify 10 ай бұрын
a token is 4 chars of base64 that equils 3 letters
@DattaSaiSrinivasBaswa
@DattaSaiSrinivasBaswa 8 ай бұрын
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.
@SANTOSHKUMAR-zo4ef
@SANTOSHKUMAR-zo4ef 9 ай бұрын
Hey, thank you very much !
@emmanuelkolawole6720
@emmanuelkolawole6720 10 ай бұрын
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 10 ай бұрын
I did a calculation in my other comment, converting tokens to chars. It appears that the pricing could be actually on par.
@seeowltv
@seeowltv 10 ай бұрын
I really thank you for your video
@engineerprompt
@engineerprompt 10 ай бұрын
Glad it was helpful
@ecx007
@ecx007 10 ай бұрын
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
@KolTregaskes
@KolTregaskes 10 ай бұрын
Really useful video, thank you. And it's great to have some free tokens to test the model.
@PoojanVImalbhaiSheth
@PoojanVImalbhaiSheth 9 ай бұрын
Can you explain the process, how to get early access of gemini and how you were able to get it,
@JohnSleeper
@JohnSleeper 5 ай бұрын
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 5 ай бұрын
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..
@newchallengers9420
@newchallengers9420 6 ай бұрын
When will paid version be available?
@zedcodinacademibychinvia9481
@zedcodinacademibychinvia9481 10 ай бұрын
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 8 ай бұрын
You can use Openai Assistant API
@AlanScotch
@AlanScotch 10 ай бұрын
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 10 ай бұрын
Also to act like a chatbot do I need to prefix every question with "In one sentence" ? Any ideas ?
@engineerprompt
@engineerprompt 10 ай бұрын
Check out my latest video. Hope that will be useful.
@tishinpadilla100
@tishinpadilla100 10 ай бұрын
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 8 ай бұрын
"Great tutorial, I'm excited to try Gemini Pro API on AI Studio!"
@soumilyade1057
@soumilyade1057 10 ай бұрын
Unfortunately, I'm getting "Internal Server Error" on Google Colab... ERROR:tornado.access:500 a GET error
@waynestevens6741
@waynestevens6741 10 ай бұрын
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
@shawnvines2514
@shawnvines2514 10 ай бұрын
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 10 ай бұрын
google bard doesnt use the gemini vision.
@splitgate-thegoatz5034
@splitgate-thegoatz5034 10 ай бұрын
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
@ankitsoni534
@ankitsoni534 8 ай бұрын
How can we fine tune for a task
@lostInSocialMedia.
@lostInSocialMedia. 10 ай бұрын
bro make a video on how to use gemini api in metagpt !!
@EduardoRomero-gh9gw
@EduardoRomero-gh9gw 10 ай бұрын
is the model available also in spanish?
@engineerprompt
@engineerprompt 10 ай бұрын
I believe so too. Europe might not have access yet though
@basharfocke
@basharfocke 5 ай бұрын
It does not work in EU.
@WisdomBitesDaily.
@WisdomBitesDaily. 10 ай бұрын
Cannot make make API
@oladejiolaoluwa9155
@oladejiolaoluwa9155 10 ай бұрын
Can I use Gemini API key in my vscode??
@sherpya
@sherpya 10 ай бұрын
it depends on your location, right now you can't from Europe
@engineerprompt
@engineerprompt 10 ай бұрын
Yes if you have access to it.
@happygolden-mountain
@happygolden-mountain 7 ай бұрын
Well .. learn Chinese guys.
@jaysonp9426
@jaysonp9426 10 ай бұрын
Why would anyone care? They basically lied to make themselves seem relevant and GPT 3.5 and Mixtral are better.
@NurbNerb
@NurbNerb 10 ай бұрын
Access restricted You do not have permission to view this page.
@engineerprompt
@engineerprompt 10 ай бұрын
Are you having trouble accessing the colab or Google AI studio?
@MotiveMove_Ae
@MotiveMove_Ae 10 ай бұрын
​@@engineerpromptGoogle ai studio
@SANTOSHKUMAR-zo4ef
@SANTOSHKUMAR-zo4ef 9 ай бұрын
Hey, thank you very much !
GEMINI Pro with LangChain | Chat, MultiModal and Chat with your Documents
17:31
The Gemini API: From prototype to production
44:36
Google for Developers
Рет қаралды 14 М.
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 547 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 9 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 74 МЛН
Gemini 1.5 Pro - Coding Assistant with 1M tokens
13:30
Prompt Engineering
Рет қаралды 21 М.
Stop Losing Context! How Late Chunking Can Enhance Your Retrieval Systems
16:49
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 485 М.
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
Prompt Engineering, RAG, and Fine-tuning: Benefits and When to Use
15:21
Llama-2 with LocalGPT: Chat with YOUR Documents
23:14
Prompt Engineering
Рет қаралды 168 М.
Gemini and Java: Quick and Easy
24:33
Tales from the jar side
Рет қаралды 3 М.
Google Gemini AI Course for Beginners
1:19:00
freeCodeCamp.org
Рет қаралды 213 М.