TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Google Gemini Pro API Available Through AI Studio

185 pointsby sam1234apterover 1 year ago

30 comments

gregsadetskyover 1 year ago
I used this just-released API (of Gemini Pro) with multimodal input to test some of the things from the infamous Gemini Demo. You can see here [ <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=__nL7Vc0OCg" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=__nL7Vc0OCg</a> ] my GPT-4 recreation of that ad which went viral.<p>Gemini Pro is... not great. In one test, I asked what gesture I was making (while showing a thumbs up) -- it said thumbs down and &quot;The image is a commentary on the changing nature of truth&quot;.<p>I just just made a heads-to-heads comparison -- you can watch it here: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1RrkRA7wuoE" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1RrkRA7wuoE</a><p>Code is here: <a href="https:&#x2F;&#x2F;github.com&#x2F;gregsadetsky&#x2F;sagittarius">https:&#x2F;&#x2F;github.com&#x2F;gregsadetsky&#x2F;sagittarius</a>
评论 #38632694 未加载
chamodaover 1 year ago
Free quota looks reasonable with 60 queries per minute. On the other hand data from free quota requests will be used to improve the product.<p><a href="https:&#x2F;&#x2F;ai.google.dev&#x2F;pricing" rel="nofollow noreferrer">https:&#x2F;&#x2F;ai.google.dev&#x2F;pricing</a>
评论 #38629004 未加载
评论 #38631576 未加载
评论 #38631304 未加载
isalmonover 1 year ago
I know it&#x27;s just an anecdote, but my biggest problem with Google&#x27;s Bard&#x2F;Gemini is that the moment I tried to ask a question about something - I started getting ads all over the internet and social media related to that.<p>Doing this with ChatGPT 4.0 for months and months did not cause this type of behavior.
评论 #38631314 未加载
pesfandiarover 1 year ago
I like that they have a &quot;blog post creator&quot;[1] in their examples. There&#x27;s no hope for the future of the web when the self-proclaimed stewards of its quality encourage AI spam.<p>[1] <a href="https:&#x2F;&#x2F;makersuite.google.com&#x2F;app&#x2F;prompts&#x2F;blog-post-creator" rel="nofollow noreferrer">https:&#x2F;&#x2F;makersuite.google.com&#x2F;app&#x2F;prompts&#x2F;blog-post-creator</a>
评论 #38631467 未加载
dudusover 1 year ago
This is still not Gemini Ultra. That&#x27;s the one they said was above state of the art. Still waiting for that one.
sam1234apterover 1 year ago
Developers can start building with our first version of Gemini Pro through Google AI Studio at ai.google.dev<p>Developers have a free quota and access to a full range of features including function calling, embeddings, semantic retrieval, custom knowledge grounding, chat functionality and more. It supports 38 languages across 180+ countries.
georgehillover 1 year ago
&gt; Access restricted You do not have permission to view this page.<p>Wait only in the US?<p>Edit: I can access it through the Google Cloud Console.<p><a href="https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;NXAgvFb" rel="nofollow noreferrer">https:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;NXAgvFb</a>
ianbickingover 1 year ago
Some thoughts comparing this to the GPT API (from a thread: <a href="https:&#x2F;&#x2F;hachyderm.io&#x2F;@ianbicking&#x2F;111574983914336748" rel="nofollow noreferrer">https:&#x2F;&#x2F;hachyderm.io&#x2F;@ianbicking&#x2F;111574983914336748</a>):<p>It looks like a fairly easy swap-in for GPT. &quot;messages&quot; becomes &quot;content&quot;. Some of the configuration parameters are slightly different (topP&#x2F;etc), but I have never put in the effort to understand the practical effect of those so I never tweak their values.<p>The messages themselves are a list of &quot;parts&quot;, which allows mixed media messages. This feels a little cleaner than how GPT has handled messages being extended.<p>Instead of role: &quot;assistant&quot; they use role: &quot;model&quot;. There&#x27;s no role: &quot;system&quot; – presumably you just shove everything into user messages. You can also leave off the role... and I assume that means default to &quot;user&quot; but it&#x27;s not clear if it&#x27;s 100% equivalent...?<p>There&#x27;s a bunch of moderation parameters, which seems like a good idea. OpenAI has a moderation endpoint you can use to preflight check your input, but doing it all at once makes more sense. There&#x27;s four categories and you can adjust your sensitivity to each (and turn off blocking at entirely). The sensitivity is not about how extreme the violation is, but how likely it is a violation. So it&#x27;s not like a G&#x2F;PG&#x2F;PG-13&#x2F;etc rating. Just a question of how many false positives&#x2F;negatives you want.<p>There&#x27;s functions, though they are in beta (whatever that means): <a href="https:&#x2F;&#x2F;ai.google.dev&#x2F;docs&#x2F;function_calling" rel="nofollow noreferrer">https:&#x2F;&#x2F;ai.google.dev&#x2F;docs&#x2F;function_calling</a> – they look very very similar to GPT functions. They don&#x27;t have the &quot;JSON response&quot; that GPT has, but that seems mostly redundant with functions anyway.<p>I have no idea how well prompts translate, but it feels like the API is an easy translation. And importantly everything is semantically equivalent, you don&#x27;t have to make one pretend it is the other, like turning a completion API into a chat API.<p>Given the generous free tier I feel fairly motivated to swap in Gemini and try to ship experiments that I&#x27;ve sat on until now.
brrrrrmover 1 year ago
why on earth did they design the Node.js and Web APIs to be slightly different and incompatible? (edit: this might just be a bug&#x2F;oversight on the landing page?)<p>Node.js:<p><pre><code> const model = genAI.getGenerativeModel({ model: &quot;gemini-pro-vision&quot;}); const result = model.generateContent({ contents: [{parts: [ {text: &quot;What’s in this photo?&quot;}, {inlineData: {data: imgBase64, mimeType: &#x27;image&#x2F;png&#x27;}} ] }] }) </code></pre> Web:<p><pre><code> const model = genAI.getGenerativeModel({ model: &quot;gemini-pro-vision&quot;}); const result = await model.generateContent([ &quot;What’s in this photo?&quot;, {inlineData: {data: imgDataInBase64, mimeType: &#x27;image&#x2F;png&#x27;}} ]);</code></pre>
评论 #38631604 未加载
评论 #38631221 未加载
lovasoaover 1 year ago
You can make 1 query per second to it for free, including large queries that contain images ? This is crazy !<p>I will happily let google buy me for that price.<p><a href="https:&#x2F;&#x2F;ai.google.dev&#x2F;pricing" rel="nofollow noreferrer">https:&#x2F;&#x2F;ai.google.dev&#x2F;pricing</a>
thedanglerover 1 year ago
Wow. what a crap site. I clicked on the option for prompt thinking I could go back and request an API key. Boy was I wrong. No matter what I do it takes me to the prompt console where I get Access Denied and it hijacked my back button.
legendofbrandoover 1 year ago
When I try to create an API key it says that &quot;We are sorry, but you do not have access to Early Access Apps&quot; yet my domain does allow access to early access apps....
AlmostSchurLieover 1 year ago
When I try to create an API key, all I see is &quot;an internal error occured&quot;. Still waiting for Gemini Ultra though.
vibhajaimanover 1 year ago
Make a questionnaire senior secondary school students and mobile phone impact reply
vibhajaimanover 1 year ago
Make a questionnaire senior secondary school students and mobile phone impact
andre-zover 1 year ago
See how to use new Gemini Embeddings with Qdrant Vector Database <a href="https:&#x2F;&#x2F;qdrant.tech&#x2F;documentation&#x2F;embeddings&#x2F;gemini&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;qdrant.tech&#x2F;documentation&#x2F;embeddings&#x2F;gemini&#x2F;</a>
SubiculumCodeover 1 year ago
I&#x27;d like to see this benchmarked on humaneval for coding.
roschdalover 1 year ago
How can I use Google Gemini in a Java application?
评论 #38636537 未加载
prakhar897over 1 year ago
Can someone recreate the Google Demo of gemini?
ziga9over 1 year ago
Anyone else having access restricted problem?
zlg_codesover 1 year ago
I&#x27;d like to know why the name of this AI product coincides with the alternative in-between-HTTP-and-Gopher Gemini protocol.<p>I&#x27;m sure it&#x27;s just an accident.
评论 #38634818 未加载
tanyongshengover 1 year ago
The pricing is attractive.
replwoacauseover 1 year ago
This news doesn’t excite me at all after trying Bard Gemini Pro in the browser.
fotcornover 1 year ago
I can only access <a href="https:&#x2F;&#x2F;makersuite.google.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;makersuite.google.com&#x2F;</a> when using a VPN to the US. Also, it spams popups that get blocked by Firefox.<p>Some basic prompts, which are answered correctly most of the time by ChatGPT4:<p>There are 31 books in my house. I read 2 books over the weekend. How many books are still in my house?<p>&gt; 29 books<p>Julia has three brothers, each of them has two sisters. How many sisters does Julia have?<p>&gt; Three<p>If you place an orange below a plate in the living room, and then move the plate to the kitchen, where is the orange now?<p>&gt; Under the plate in the kitchen.<p>So, not great.
评论 #38629861 未加载
评论 #38629973 未加载
评论 #38629376 未加载
评论 #38630230 未加载
评论 #38629415 未加载
评论 #38630394 未加载
评论 #38629705 未加载
评论 #38629643 未加载
评论 #38633874 未加载
评论 #38631196 未加载
评论 #38630872 未加载
imdsmover 1 year ago
Typical Google UX.<p>Get API key, takes me to makersuite, where I get a create API key button that errors. Then when I reload the page, I get a straight forbidden page.<p>HP said it best, you have to isolate the team from the bigger company to allow them to work as an effective startup. How can solo-preneurs provide better UX &amp; onboarding while doing 16 other jobs than Google can with multi-billion dollar budgets?
评论 #38629406 未加载
评论 #38629846 未加载
评论 #38630233 未加载
评论 #38630224 未加载
评论 #38630031 未加载
评论 #38630603 未加载
评论 #38629311 未加载
评论 #38630881 未加载
verdvermover 1 year ago
Cross posting some links from another post that HNers found helpful<p>- <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;vertex-ai" rel="nofollow noreferrer">https:&#x2F;&#x2F;cloud.google.com&#x2F;vertex-ai</a> (marketing page)<p>- <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;vertex-ai&#x2F;docs" rel="nofollow noreferrer">https:&#x2F;&#x2F;cloud.google.com&#x2F;vertex-ai&#x2F;docs</a> (docs entry point)<p>- <a href="https:&#x2F;&#x2F;console.cloud.google.com&#x2F;vertex-ai" rel="nofollow noreferrer">https:&#x2F;&#x2F;console.cloud.google.com&#x2F;vertex-ai</a> (cloud console)<p>- <a href="https:&#x2F;&#x2F;console.cloud.google.com&#x2F;vertex-ai&#x2F;model-garden" rel="nofollow noreferrer">https:&#x2F;&#x2F;console.cloud.google.com&#x2F;vertex-ai&#x2F;model-garden</a> (all the models)<p>- <a href="https:&#x2F;&#x2F;console.cloud.google.com&#x2F;vertex-ai&#x2F;generative" rel="nofollow noreferrer">https:&#x2F;&#x2F;console.cloud.google.com&#x2F;vertex-ai&#x2F;generative</a> (studio &#x2F; playground)<p>VertexAI is the umbrella for all of the Google models available through their cloud platform.<p>You want the last link if you are looking for a ChatGPT like experience, with the ability to also adjust the parameters, so more like a UI on top of the API
评论 #38630942 未加载
评论 #38630891 未加载
alexb_over 1 year ago
When I enter into the AI, Firefox blocks an insane amount of popups. The counter for blocked pop ups quickly reaches &gt;100 where it stops counting. What is it trying to do?
评论 #38629100 未加载
评论 #38630292 未加载
评论 #38630957 未加载
behnamohover 1 year ago
Doesn&#x27;t matter—it&#x27;s already available on Bard and it&#x27;s not good.
评论 #38628925 未加载
martythemaniakover 1 year ago
This is very good:<p>- 60 queries per minute free - about 1&#x2F;5th the price of GPT3.5 Turbo - priced per char, not per token - same image pricing as GPT4 150x150
评论 #38630208 未加载
yeldarbover 1 year ago
We put the image portion through its paces and compared it with GPT-V here: <a href="https:&#x2F;&#x2F;blog.roboflow.com&#x2F;first-impressions-with-google-gemini&#x2F;">https:&#x2F;&#x2F;blog.roboflow.com&#x2F;first-impressions-with-google-gemi...</a>
评论 #38630983 未加载
评论 #38631013 未加载