Gemini API 中文开发文档

来源: https://ai.google.dev/gemini-api/docs?hl=zh-cn 最后更新时间 (UTC): 2025-12-28

利用 Gemini、Veo、Nano Banana 等工具,从提示到制作,全程提速。

目录


快速入门

按照我们的快速入门指南操作,您只需几分钟即可获取 API 密钥并发出第一个 API 调用。

Python

from google import genai

client = genai.Client()

response = client.models.generate_content(
    model="gemini-3-flash-preview",
    contents="Explain how AI works in a few words",
)

print(response.text)

(更多语言示例请见上文)

认识模型

探索功能

资源