“这是什么?!”(每个困惑的人都会问)
- Gemini 2.5 Pro Experimental = 谷歌的人工智能。它能写作、能编程,还能让你的旧作文黯然失色。
- 这通常需要花钱。但多亏了“哎呀,我们忘了关门”能源,现在它是免费的。
- 没有博客文章。没有广告。没有喧嚣。只是……默默地等待着。就像一个带着Wi-Fi的幽灵。
“我如何获得它?”(3分钟方法)
方法一:Google AI Studio(他们忘记锁的前门)
- 前往此处:
https://aistudio.google.com
- 使用您的常规 Google 帐户登录(是的,甚至是那个垃圾邮件帐户)。
- 点击“获取 API 密钥”。然后点击“创建密钥”。
如果系统要求输入“项目”,可以随意命名,甚至可以是“我不知道的项目”。 - 复制它给你的长字符串。这就是你的魔法代码。
现在您已经拥有了代码(也就是API 密钥),可以将其输入到工具中来使用 Gemini 了。就这样。您现在拥有 100 万个 AI 智力代币。无需订阅,无需信用卡,也无需血腥牺牲。
方法 2:OpenRouter(无弹跳器的 AI 自助餐)
想要更多型号,更少投入?那就使用 OpenRouter。
- 前往此处:
https://openrouter.ai
- 注册吧。免费,而且只是有点烦人。
- 前往您个人资料中的“API 密钥”。生成一个。
- 使用此确切的型号名称:(
google/gemini-2.5-pro-exp-03-25:free
是的,它看起来像 Wi-Fi 密码。只需复制粘贴,不要询问。)
小技巧:如果你已经通过方法 1 获取了 Google 密钥,可以将其插入“集成”下的 OpenRouter。这样,密钥就完全属于你了,无需与 3000 个陌生人和堪萨斯州的一家山羊农场共享。
方法 3:使用它的工具(因为你很花哨)
获得密钥后,将其插入以下任意一项:
• Aider(命令行伙伴):
- 安装:
pip install aider-chat
- 跑步:
aider --model gemini-exp
- 设置您的密钥:(
export GOOGLE_API_KEY=your_key_here
如果这看起来很可怕,只需对着终端大喊即可。它有 40% 的时间有效。)
• VSCode + Cline(像治疗师一样与您的代码聊天):
- 从 VSCode 市场安装“Cline”。
- 将您的密钥粘贴到设置中。
- 选择型号:
gemini-2.5-pro-exp-03-25
- 看着你的代码被修复,同时你流下幸福的泪水。
有什么陷阱?(剧透:有一个)
- 这是实验性的。就像你叔叔自制的喷气背包一样。可能会爆炸,也可能明天就消失。
- 速率限制是存在的。如果使用过多,它会说:“哇哦,伙计。” 等待 1-2 分钟,再试一次。
- 不要分享你的密钥。除非你想让陌生人用它来购买 NFT。
有效链接(因为谷歌搜索很难)
- 谷歌人工智能工作室:https://aistudio.google.com
- Gemini API 密钥指南:https://merge.dev/blog/gemini-api-key
- OpenRouter 免费 Gemini:https://openrouter.ai/google/gemini-2.5-pro-exp-03-25 :free
- 在 VSCode 中使用:https://apidog.com/blog/how-to-use-gemini-2-5-pro-for-free-with-cline
- 在 Aider 中使用:https://aider.chat/docs/llms/gemini.html
- Puter.js(开发选项):https://developer.puter.com/tutorials/free-gemini-api/
- Gemini 文档:https://cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-pro
最后的想法
Gemini 2.5 Pro EXP 就像五星级酒店的自助餐一样,忘了收钱。别问,直接把食物装盘就好。
因为有一天,他们会醒来,修好门,而我们剩下的只有截图和遗憾。
好好利用它。(温和地)滥用它。不然它就会像你之前的Netflix套餐一样,消失在付费版的深渊里。
Disclaimer: All the contents of this site are collected and organized from the Internet, for the sole purpose of learning and communication. If there is no special instructions, are edited and published by thin Baba scarce resources. Without authorization, any individual or organization shall not copy, steal, collect or publish the content of this site to other websites, books or various media platforms. If the content of this site involves infringement or violates your legitimate rights and interests, please contact us to deal with.
Comments (0)