Google AI (Gemini) 免费额度 · API 注册教程(2026 年 4 月)

🌍 国际 ✅ 免费
⭐ 5,200 stars

Google AI (Gemini) 是 Google 的 AI 平台,提供 Gemini 系列模型。 AI Studio 提供完全免费的 API 访问,无需信用卡。 Gemini 3.1 Pro 拥有业界最大的 200 万 token 上下文窗口。 国内部分地区可直连。

免费额度详情

🎁 免费额度

每日限制: Gemini 免费版无限使用

模型上下文限制说明
Gemini 3.1 Pro 2M 2 RPM (free) 旗舰模型,200万 token 上下文窗口
Gemini 3.1 Flash 1M 15 RPM (free) 快速模型,100万 token 上下文
Gemini 3.1 Flash Lite 1M 30 RPM (free) 最轻量模型,速度最快

🔑 API 免费额度

免费额度: 免费 API 无需信用卡

速率限制: 15 RPM (Flash)

Google AI Studio 提供完全免费的 API,无需信用卡,有速率限制

国内用户完整注册教程

Step 1

访问 aistudio.google.com

Step 2

用 Google 账号登录

Step 3

点击 Get API Key 创建密钥

Step 4

直接使用,无需付费

代码示例

Python(OpenAI SDK 兼容)

from openai import OpenAI

client = OpenAI(
    api_key="你的 Google AI (Gemini) API Key",
    base_url="https://aistudio.google.com/v1"
)

response = client.chat.completions.create(
    model="gemini-3.1-pro",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

curl

curl https://aistudio.google.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer 你的API_KEY" \
  -d '{"model": "gemini-3.1-pro", "messages": [{"role": "user", "content": "Hello"}]}'

💡 想用一个 Key 调用 Google AI (Gemini) 和其他 30+ 家模型?试试 openllmapi.com,官方价 5-7 折。

国内访问怎么样?

  • 直连:✅ 可以
  • 速度:中等
  • 部分地区可直连,建议使用代理确保稳定

常见问题

Google AI API 真的完全免费吗?

是的,AI Studio 的 API 完全免费,只有速率限制。付费版(Vertex AI)无速率限制。

Gemini 和 ChatGPT 比怎么样?

Gemini 3.1 Pro 在长文本处理上有优势(200万上下文),编程和推理能力与 GPT-5 接近。

相关对比

总结:谁应该用 Google AI (Gemini)?

如果你需要API 免费额度、国际一流水平的 AI 服务,Google AI (Gemini) 值得一试。 想省钱?通过 openllmapi.com 一个 Key 调用 Google AI (Gemini) 和其他 30+ 家模型,官方价 5-7 折。

对话编程推理category.multimodal llmapichatmultimodalfreecoding
🐑 小羊助手