Google 原生多模态大模型,支持文本/图像/音频/视频/代码输入,1M 上下文窗口。通过 Google AI Studio 和 Vertex AI 提供云端 API。
访问 https://aistudio.google.com点击 'Create new prompt'选择模型: Gemini 2.5 Pro (Experimental)设置 System Instructions(系统指令)开始对话,支持上传图片/视频/音频文件获取 API Key: 左侧菜单 → Get API Key → 点击 'Create API Key'安装 SDK: pip install google-generativeai导入库: import google.generativeai as genai配置Key: genai.configure(api_key='YOUR_API_KEY')初始化: model = genai.GenerativeModel('gemini-2.5-pro-exp-03-25')生成: response = model.generate_content('你的提示词')免费额度: 每分钟 2 请求 (免费层)在 GCP Console 启用 Vertex AI API创建 Service Account 并下载 JSON Keygcloud auth activate-service-account --key-file=key.json通过 Vertex AI SDK 调用,支持企业级 SLA 和 VPC 私网