文章标题:Gemini 4 Neon 现已在 AI Gateway 上线
正文: 来自 Google 的 Gemini 4 Neon 现已在 AI Gateway 上线。
Gemini 4 Neon 是此前更轻量的 Gemini 4 模型的重大升级,其输出质量接近 Google 更大的 Gemini 4 模型,同时响应更快。它专为编码、agent 工作流和多步骤任务而构建。
该模型接受文本、图像、视频和文档,上下文窗口为 1M token。它支持工具调用、结构化输出、使用 Google Search 和 Google Maps 的 grounding,以及四个推理级别:low、medium、high 和 xhigh。
使用 google/gemini-4-neon 作为模型 ID:
import { streamText } from 'ai';
const result = streamText({ model: 'google/gemini-4-neon', prompt: 'Write a TypeScript function that debounces async calls.',});
for await (const text of result.textStream) { process.stdout.write(text);}
要在 Codex、Cursor 或其他受支持的 agent 中使用 Gemini 4 Neon,请参阅 coding agents 指南。
在模型 playground 中试用 Gemini 4 Neon,或浏览所有语言模型。