---
title: "OpenRouter 教程：如何通过 API 向 LLM 发送图像（视觉指南）"
source: "OpenRouter：Announcements（RSS）"
source_tier: "t1"
url: "https://openrouter.ai/blog/tutorials/send-image-to-llm/"
permalink: "https://feed.astralor.com/items/itm_f0114da50833fe89c323c17d"
published: "2026-08-14T00:00:00.000Z"
score: 79
channel: "ai"
tags: ["OpenRouter","RAG","多模态 API","视觉模型"]
---

# OpenRouter 教程：如何通过 API 向 LLM 发送图像（视觉指南）

## AI 点评

> 这份教程最大的价值在于把散落在各家文档里的图像传输方式收敛成同一套规范，省去了开发者逐个适配的麻烦。对正在做 Agent 或多模态应用的同学尤其值得一读。

## 速览

OpenRouter 官方发布视觉模型调用指南，讲解通过统一请求格式向任意支持视觉能力的 LLM 发送图像。教程覆盖 base64 与托管 URL 的取舍、模型选择、多图像输入、Token 计算以及多模态 RAG 应用，帮助开发者快速上手多模态 API 调用。

## 关键点

- 使用 content 数组同时包含 text 和 image_url 部分即可发送图像，所有视觉模型共用同一请求结构。
- 比较了 base64 内嵌与托管 URL 两种方式的优缺点，并给出选择建议。
- 教程涵盖多图像输入、Token 计算及多模态 RAG 构建方法。

## 全文

Send images to any vision-capable LLM with one request shape: a content array with a text part and an image_url part. Covers base64 vs hosted URLs, model selection, multiple images, tokenization, and multimodal RAG.

---

引用前请核对原文;本文由星际流动整理:https://feed.astralor.com/items/itm_f0114da50833fe89c323c17d
