Google's cost-effective model optimized for high throughput tasks. Balances speed and intelligence with strong multimodal capabilities and 1M token context window.
1.0M tokens
2
可用
价格最低
Google AI Studio
$0.75/1M tokens
Google AI Studio, Google Cloud Vertex AI
按每百万输入与输出 token 的总成本排序。选择一行可查看提供商详情。
| 提供商 | 价格(每百万) | 速率限制 | 区域 | 状态 | 延迟 |
|---|---|---|---|---|---|
输入: $0.15输出: $0.60 | 15 RPM / 1.0M TPM | us-east-1eu-west-1global | 正常 | 0ms | |
输入: $0.15输出: $0.60 | 2K RPM / 4.0M TPM | us-east-1eu-west-1global | 正常 | 0ms |
通过 Google AI Studio 使用此模型,兼容 OpenAI SDK。
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.google-ai-studio.com/v1",
apiKey: process.env.GOOGLE_AI_STUDIO_API_KEY,
});
const response = await client.chat.completions.create({
model: "gemini-2.5-flash",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);使用 Google AI Studio API · 兼容 OpenAI SDK