在线试用 Gemini 2.5 Flash,再用一把 Key 按量调用 API
Gemini 2.5 Flash 在 Crazyrouter 上通过 OpenAI 兼容接口和 Gemini 原生协议提供。切换模型不用改集成,所有请求在同一个账单里。
把模型 ID、实时价格、Base URL 和调用示例一次粘贴进你的 coding agent。
Gemini 2.5 Flash 是什么?
Gemini 2.5 Flash 是 Google 的 Gemini 2.5 系列模型,面向对话、推理、代码和 Agent 工作流。发布于 2025-04-17。在 Crazyrouter 上它与 300+ 模型共用同一把 Key 和账户,方便横向对比和路由切换。
支持 OpenAI SDK、LangChain、Cursor、Cline 等任何可自定义 base URL 的工具。
流式、工具调用和结构化输出取决于模型及上游渠道;生产使用前请在实际渠道分别验证。
本页价格直接来自计费表,已包含 Crazyrouter 折扣。
与 Claude、GPT、Gemini、DeepSeek 等直接对比,不用维护多家账号。
Gemini 2.5 Flash API 快速开始
把 OpenAI SDK 的 base_url 指向 https://api.crazyrouter.com/v1,model 填 gemini-2.5-flash。客户端原生支持 Gemini 的话用第二个示例。
curl https://api.crazyrouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
-d '{
"model": "gemini-2.5-flash",
"messages": [{"role": "user", "content": "Explain the tradeoffs of this architecture decision."}],
"stream": true
}'查看 OpenAI 兼容迁移示例
curl "https://api.crazyrouter.com/v1beta/models/gemini-2.5-flash:generateContent" \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $CRAZYROUTER_API_KEY" \
-d '{
"contents": [{"parts": [{"text": "Explain the tradeoffs of this architecture decision."}]}]
}'gemini-2.5-flash:各平台价格对比
输入(深)/ 输出(浅),美元/百万 token。列出的平台不代表本站上游路由。
对比快照来自 LiteLLM 和人工维护条目;采集日期不等于独立核验厂商报价。以下估算不假设缓存命中。 报价来源
工作量费用估算
适用场景
开发工具兼容
OpenAI SDK
base_url 设为 https://api.crazyrouter.com/v1,model 设为 gemini-2.5-flash。
Cursor、Cline、Continue
添加 Crazyrouter 为自定义 OpenAI 兼容提供商,从列表中选模型。
LangChain / LlamaIndex
用 OpenAI chat model 类并指定 Crazyrouter base URL。
Claude Code / Codex CLI
CLI 兼容性取决于原生协议及实际模型/渠道支持;请按接入指南验证后使用。
Gemini 2.5 Flash 常见问题
Gemini 2.5 Flash 的 base URL 填什么?
https://api.crazyrouter.com/v1。对话补全走 /v1/chat/completions,Gemini 原生请求走其常规路径。
怎么计费?
按 token 计费,费率见本页输入/输出价格。每次请求从余额扣减,无订阅。
支持流式和函数调用吗?
支持情况取决于模型及上游渠道。示例请求是接入起点,流式、工具调用和结构化输出需要分别验证。
以后能换模型吗?
改 model 字符串即可,同一把 Key 可用 Crazyrouter 目录里的全部模型。
哪里看当前价格?
价格页列出所有模型的实时费率,登录后还会显示分组折扣。
相关指南与对比
TutorialGemini 2.5 Flash / Flash-Lite 高并发 API 选型:为什么便宜和高 RPM 对生产应用更重要
面向高 RPM、高并发、成本敏感的生产应用,分析 gemini-2.5-flash 与 gemini-2.5-flash-lite 的适用场景、价格优势、OpenAI/Gemini 双 endpoint 接入方式,以及为什么 API 平台的并发承载能力比单次 benchmark 更重要。
ComparisonGemini 2.5 Flash vs Qwen3 VL Plus:图片理解 API 实测对比(Crazyrouter Base URL)
本文用 Crazyrouter OpenAI 兼容接口实测 gemini-2.5-flash 与 qwen3-vl-plus 的图片理解表现,比较识别准确率、延迟、价格、usage 信号和生产选型建议。
ComparisonGemini 2.5 Flash vs Qwen3 VL Flash:图片理解 API 实测对比(Crazyrouter Base URL)
本文用 Crazyrouter OpenAI 兼容接口实测 gemini-2.5-flash 与 qwen3-vl-flash 的图片理解表现,比较识别准确率、延迟、价格、usage 信号和生产选型建议。
最新节目
EP196 · 2026年10月29日 · 6:53
AI API Security Posture — Turn Controls Into Continuous Evidence
A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.
EP195 · 2026年10月28日 · 7:21
AI API Policy Drift — Detect When Production Rules Stop Matching Intent
A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.
