跳到主要内容
Google · 发布于 2025-06-18

Gemini 2.5 Flash LLM

上下文 1M 最大输出 66K 类型 LLM 渠道 OpenRouter
google/gemini-2.5-flash

Gemini 2.5 Flash is Google’s efficient, high-performance AI model built for demanding reasoning, coding, mathematics, and scientific workloads. Its integrated thinking capabilities enable stronger problem solving, improved accuracy, and better handling of complex multi-step tasks. Developers can fine-tune reasoning depth using the “max tokens for reasoning” setting, providing flexible control over the trade-off between intelligence, speed, and cost for different AI applications.

定价

USD · 实时汇率
定价 USD / M
输入 $0.30
输出 $2.50
命中缓存 $0.03
图片输入

供应商

同一模型,多渠道实时比价 · 最优值绿色高亮
供应商 上下文 最大输出 输入 /M 输出 /M 缓存 /M 延迟 吞吐
OpenRouter 1M 66K $0.30 $2.50 $0.03 1937ms 260 t/s
Google Vertex 1M 66K $0.30 $2.50 $0.07 13408ms 461 t/s

接入示例

Model Center 会在不同服务提供商之间规范化处理请求和响应,为你统一接口。

提供兼容 OpenAI 的 Completion API:既可直接调用,也可通过 OpenAI SDK 调用,一把 key 调用全部模型。

获取 API Key 获取 API Key
from openai import OpenAI

client = OpenAI(
    base_url="https://router-integration.test.cogfoundry.ai/api/v1",
    api_key="$MODEL_CENTER_API_KEY",
)

completion = client.chat.completions.create(
    model="google/gemini-2.5-flash",
    messages=[{"role": "user", "content": "9.11 和 9.8 哪个大?"}],
    stream=True,
)

for chunk in completion:
    if chunk.choices and chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="", flush=True)

Google 的更多模型