OpenRouter Blog·· 2026-09-09精选AI 评分62
Nano Banana API 教程:用代码调用 Gemini 编辑图像
Nano Banana API: Edit Images with Gemini in Code
AI 导读
OpenRouter 发布教程,演示如何通过其 API 用文本提示词编辑图像:把源图放进 input_references、指令放进 prompt,编辑后的图像以 base64 从 data[0].b64_json 返回。
推荐理由
OpenRouter 官方给出 Gemini 图像编辑的完整请求结构与多步编辑方法,可直接照抄复用。
来源:OpenRouter Blog · openrouter.ai