AI Studio(Gemini API)
使用Gemini构建,Google最强大的AI模型。
Text GenerationImage GenerationCode Assistantapichatmultimodal
📖 概述
Google AI Studio 提供了一个基于网页的 IDE 和 API,用于使用 Gemini 模型进行原型设计和构建。它提供免费访问 Gemini 的服务,但有限速,以及适用于更高使用量和商业应用的付费层级。开发者可以生成 API 密钥,将 Gemini 集成到他们的应用中。
💰 免费额度详情
- 说明
- Free tier includes 1,500 requests per day for Gemini 1.5 Flash, with a rate limit of 60 requests per minute.
- 额度
- 1500 requests (day)
📝 Getting Started with Google AI Studio (Gemini API)
Google AI Studio is a web-based IDE and API platform that lets you prototype and build applications using Gemini models. To begin, visit the Google AI Studio website and sign in with your Google account. The free tier offers access to Gemini with rate limits—ideal for experimentation and small projects. For higher usage or commercial applications, upgrade to the paid tier via the Google Cloud Console.
Generating an API Key- In AI Studio, click “Get API key” in the left sidebar.
- Choose an existing Google Cloud project or create a new one.
- A key will be generated; copy it and store it securely. Use this key to authenticate requests to the Gemini API.
- The IDE provides a visual interface to test prompts with Gemini models. Select a model (e.g., Gemini 1.5 Pro or Flash), enter a prompt, and view the response. Adjust parameters like temperature, top-p, and max output tokens to fine-tune results.
- You can also write Python code in the built-in editor to call the API directly. The IDE includes a code generator that produces ready-to-run snippets for your language of choice.
- In your code, make HTTP requests to the Gemini API endpoint (e.g.,
https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro:generateContent). Include your API key as a query parameter or in the Authorization header. - Use the client libraries for Python, Node.js, or other languages to simplify integration. For example, install the
google-generativeaipackage and callgenai.configure(api_key=...).
- Start with the free tier to test your ideas. Monitor usage via the AI Studio dashboard.
- For production, set up usage quotas and billing alerts in Google Cloud.
- Review the documentation for safety filters and content moderation options.
With Google AI Studio, you can rapidly prototype generative AI features and scale them confidently.
免费
active 健康状态
有风险
免费状态 活跃
最后验证 从未验证
多维评分
易用性
—
免费额度
—
稳定性
—
社区活跃
—
这个工具有用吗?
对比工具