跳到正文
原文
OpenRouter Blog·· 2026-08-14AI 评分34

OpenRouter 指南:如何通过 API 向 LLM 发送图像(视觉指南)

How to Send an Image to an LLM via API (Vision Guide)

AI 导读

OpenRouter 发布视觉指南,说明通过 Chat Completions API 向多模态 LLM 发送图像的方法:请求体为 messages 数组,user 消息的 content 包含一个 {"type": "text"} 和一个 {"type": "image_url"},文本部分须放在前面。

来源:OpenRouter Blog · openrouter.ai