Claude 无法独立生成图像,因为它没有内置的图像模型。通过连接器(connector),它可以调用图像模型并将生成的成品图片交付给你。
你只需提供简短的请求,Claude 就会撰写详细的提示词,并在产生任何费用之前向你展示。当图片返回后,Claude 可以查看结果,并将其与你最初的要求进行核对。本文使用 OpenRouter MCP 服务器作为连接器,截至 2026 年 11 月 19 日,该连接器接入了来自不同实验室的 74 个图像模型。
如果你只关心设置步骤,请跳过至“如何通过连接器在 Claude 中生成图像”。
简而言之
Claude 自身没有图像模型。连接器允许它调用外部模型并返回真实的图片。
在 Claude 应用或 Claude Code 中添加 https://mcp.openrouter.ai/mcp 作为连接器。你的电脑上无需安装任何软件。
在你的请求中指定所需的模型,或者先让 Claude 为你的任务比较模型,这部分操作不会产生费用。
截至 2026 年 11 月 19 日,我们测试的每张图像成本在 0.035 美元至 0.10 美元之间,且每张图像在扣费前都需要你批准。
图片要么出现在聊天窗口中,要么以链接形式提供,该链接有效期为 24 小时。
Claude 能生成图像吗?
Claude 无法独立生成照片或插图。Anthropic 于 2026 年 3 月 16 日发布的帮助中心文章指出:“Claude 不像图像生成工具那样生成照片或插图”,并提到它使用 HTML 和 SVG 构建图表和示意图。其视觉文档补充说明:“Claude 仅是一个图像理解模型。它可以解读和分析图像,但不能生成、制作、编辑、操作或创建图像。”
“连接器”是 Claude 对添加到应用中的 MCP 服务器的称呼。OpenRouter MCP 服务器就是一个连接器,它接入了 OpenRouter 图像目录中的所有模型。
Claude 如何使用图像模型?
图像模型负责绘图,而 Claude 负责处理绘图周围的工作。如果仅使用独立的图像工具,这些外围工作是最困难的部分:你需要自己撰写详细的提示词,图片返回后,你需要将其与你的请求进行核对,并将文件保存或传输到指定位置。
在 Claude 中,简短的请求就足够了,因为 Claude 会撰写详细的提示词。例如,你可以指定模型:“你能生成一张红色狐狸在雪夜的路灯下阅读平装书的图像吗?风格为柔和的水彩画?请使用 Seedream 5.5。”在我们的测试中,Claude 将这一行指令扩展成了更长的提示词。Claude 会在每张图像生成前请求批准,该批准界面会显示模型名称及它撰写的提示词,以便你在产生任何费用前进行阅读和确认。
Claude 还可以查看结果。在我们的 Claude 应用测试中,当图像返回时,Claude 已经看到了图片并描述了它的内容。
在我们的 Claude Code 测试中,Claude 打开了保存的文件,并报告说我们要求的是平装书,但生成的却是一本绿色精装书。在这种情况下,无需你亲自将图片与请求进行比对,就能发现不匹配之处。当你要求修改时,Claude 可以将第一张图像作为参考传回给模型,在我们的测试中,场景的其余部分保持不变。详情参见“Claude 能编辑它生成的图像吗?”。
如何通过连接器在 Claude 中生成图像
将 OpenRouter MCP 服务器添加为自定义连接器。它是一个远程服务器,因此你的电脑上无需安装任何软件。你需要一个拥有余额的 OpenRouter 账户。
在 Claude 应用中:
打开设置 > 连接器,并添加自定义连接器。
将其命名为 OpenRouter MCP,并将远程 MCP 服务器 URL 设置为 https://mcp.openrouter.ai/mcp 。保持 OAuth 字段为空。
添加连接器,然后连接它。浏览器中会打开一个 OpenRouter 授权页面。
批准用于此连接的专用密钥。该密钥将在 7 天内过期,你可以随时断开连接。
某些组织不允许使用自定义连接器,因此工作账户上可能会缺少此选项。
在 Claude Code 中,运行:
claude mcp add --transport http openrouter https://mcp.openrouter.ai/mcp
claude mcp login openrouter
OpenRouter MCP 服务器指南为每个客户端提供了逐步操作说明。
Claude 应该使用哪个图像模型?
指定你想要的模型名称,因为没有单一模型适合所有任务。我们将相同的狐狸提示词发送给四个模型,采用 1:1 的宽高比和默认分辨率,以比较外观和价格。
每一行代表一次单独计费,费用基于 2026 年 11 月 19 日的收费标准。每个模型的页面都有其当前价格。
最昂贵的图像价格是最便宜图像的两倍多(0.094 美元对比 0.035 美元),Seedream 5.5 并列最低价格,同时返回了最大的图像。四个模型中有三个添加了我们要求之外的文本,例如书名或悬挂招牌,因此请在请求中加入“无文字”。如需更广泛的比较,请参阅图像生成模型对比 。
在花费任何费用之前,你可以要求 Claude 为你的任务比较模型,因为查询模型不会产生费用。当我们询问用于纯白背景产品照片应使用哪个模型时,Claude 从五个选项中推荐了 Nano Banana 2.1,并为每个选项提供了理由和注意事项,同时说明候选名单来自目录数据而非测试图像。在达成一致后,它提出对前三名进行付费测试。
如果你不指定模型,Claude 会自行选择一个。在我们的 Claude Code 运行中,它选择了 FLUX 3 Image ,而在一次 Claude 应用运行中,它选择了一个较旧的模型。
费用是多少?
每张图像的费用取决于生成它的模型价格,我们在 2026 年 11 月 19 日的运行中测得的价格范围为 0.035 美元至 0.10 美元。Claude 自身的使用费是单独计算的。
宽高比和分辨率会影响价格。GPT Image 2.6 Flare 在 16:9 比例下收费 0.058 美元,而在 1:1 比例下收费 0.094 美元;FLUX 3 Image 在 16:9 比例和 2K 分辨率(2736×1536)下收费 0.10 美元。
连接器的密钥起始于一个 10 美元的支出上限,你可以在同意屏幕上对其进行编辑。在我们的运行中,Claude 还在回复中重复了每张图像的费用。
为什么有时图像会以链接形式返回?
当可以生成链接时,generate-image 工具会返回链接,否则返回图像本身。链接可在任何浏览器中打开,无需登录,有效期为 24 小时。
在 Claude 应用中,图像显示在聊天窗口中,Claude 可以看到它。链接会在你的浏览器中打开,而在我们的运行中,Claude 尚未看到该图片,因此无法在聊天中显示它。在 Claude Code 中,链接是更简单的情况,因为图像会直接下载到你的项目中。直接返回的图像会保留在 Claude Code 自己的文件夹中,直到你批准复制它为止。
你获得的是链接还是图像因请求而异,即使是针对同一模型也是如此。在我们于 2026 年 11 月 19 日进行的小规模运行中,Seedream 5.5 有 4 次返回了图像本身,GPT Image 2.6 Flare 有 3 次返回了链接,FLUX 3 Image 有 2 次返回了链接,Nano Banana 2.1 各返回了一次。如果你希望在 Claude 应用内获得图片,Seedream 5.5 每次都为我们做到了这一点。如果收到链接,请打开它。
Claude Code 能生成图像吗?
可以。Claude Code 使用相同的连接器生成图像,并将其直接放入你的项目中。指定保存文件的位置以及哪个页面会使用它,例如:“这个着陆页需要一个英雄插图。使用 OpenRouter 生成一个:一只红狐狸在雪夜的街灯下阅读平装书,柔和的水彩风格。将其保存到 assets/hero.png 并添加到 index.html。”
在我们的运行中,Claude Code 将来自 FLUX 3 Image 的 2736×1536 插图保存到了该路径,并将其添加到了页面中。获取完整配方,请遵循食谱《从 Claude Code 生成和编辑图像》 。
Claude 能编辑它生成的图像吗?
可以,当第一个结果以链接形式返回且模型接受图像输入时。Claude 会将该链接作为参考传递回模型,同时附上你要求的更改内容。
在 Claude Code 会话中,我们要求给狐狸加上红围巾,并生成一本封面纯红的平装书,这些更改保存于同一文件中。Claude 将第一张图片发送至 FLUX 3 Image,两个更改均生效,而场景其余部分保持不变。
若无连接,Claude 无法复用该图片。在 Claude 应用中,当结果以图片形式返回后,再次要求添加红围巾会基于描述生成一张新图片。场景发生了变化,Claude 也对此进行了说明。
常见问题
Claude 能创建真实图像吗?
不能单独实现。没有连接器时,Claude 使用 HTML 和 SVG 构建图表。通过如 OpenRouter MCP 服务器这样的连接器,它可以调用图像模型并返回真实图片。
为什么 Claude 无法生成图像?
Claude 本身不具备图像生成模型。Anthropic 的文档将其描述为“仅具备图像理解能力”,因此它能读取你提供的图片,而绘制图片则需要一个单独的图像模型,这由连接器提供。
Claude 像图像生成器那样生成图像吗?
不是。图像模型负责绘图,Claude 根据你的请求编写提示词,并可以检查结果。
Claude 能生成视频吗?
本文未对视频进行测试。OpenRouter MCP 连接器还具备 generate-video(生成视频)、generate-speech(生成语音)和 transcribe-audio(转录音频)工具,它们的设置方式相同。
后续步骤
将其连接到 Claude 应用或 Claude Code,并生成你的第一张图像:
Claude cannot generate images on its own, because it has no image model. With a connector, it can call an image model and hand you the finished picture.
You give a short request, and Claude writes the detailed prompt and shows it to you before anything is billed. When the picture comes back, Claude can look at the result and check it against what you asked for. This post uses the OpenRouter MCP server as the connector, which reaches 74 image models from different labs as of November 19, 2026.
If you only want the setup, skip to How to make images in Claude with a connector .
Tl;dr
Claude has no image model of its own. A connector lets it call one and return a real picture.
Add https://mcp.openrouter.ai/mcp as a connector in the Claude app or Claude Code. Nothing is installed on your computer.
Name the model you want in your request, or ask Claude to compare models for your job first, which is not billed.
Our test images cost between $0.035 and $0.10 each on November 19, 2026, and you approve each one before it is charged.
The picture arrives either in the chat or as a link that works for 24 hours.
Can Claude generate images?
Claude cannot generate photos or illustrations on its own. Anthropic’s March 16, 2026 Help Center article says “Claude doesn’t generate photos or illustrations the way image-generation tools do” and notes that it builds diagrams and charts with HTML and SVG. Its vision documentation adds: “Claude is an image understanding model only. It can interpret and analyze images, but it cannot generate, produce, edit, manipulate, or create images.”
A connector is Claude’s word for an MCP server added to the app. The OpenRouter MCP server is one connector, and it reaches every model in the OpenRouter image catalog .
What does Claude do with an image model?
The image model draws, and Claude does the work around the drawing. With an image tool on its own, that surrounding work is the hard part: you write the detailed prompt yourself, and once the picture arrives you check it against your request and carry the file to where it belongs.
In Claude, a short request is enough, because Claude writes the detailed prompt. Name the model you want, for example: “Can you generate an image of a red fox reading a paperback under a streetlamp on a snowy night, in soft watercolor? Use Seedream 5.5.” In our run, Claude expanded that line into a longer prompt. Claude asks for approval before each image, and that approval shows the model and the prompt it wrote, so you can read it before anything is billed.
Claude can also look at the result. When the image came back in our Claude app run, Claude had seen the picture and described it.
In our Claude Code run, Claude opened the saved file and reported that the book was a green hardback where we had asked for a paperback. When that happens, a mismatch gets caught without you comparing the picture to your request yourself. When you ask for a change, Claude can pass the first image back to the model as a reference, and in our run the rest of the scene stayed the same. See Can Claude edit an image it generated? for details.
How to make images in Claude with a connector
Add the OpenRouter MCP server as a custom connector. It is a remote server, so nothing is installed on your computer. You need an OpenRouter account with credits.
In the Claude app:
Open Settings > Connectors and add a custom connector.
Name it OpenRouter MCP and set the remote MCP server URL to https://mcp.openrouter.ai/mcp . Leave the OAuth fields blank.
Add the connector, then connect it. An OpenRouter consent page opens in your browser.
Approve the dedicated key for this connection. It expires within 7 days, and you can disconnect at any time.
Some organizations do not allow custom connectors, so this option may be missing on a work account.
In Claude Code, run:
claude mcp add --transport http openrouter https://mcp.openrouter.ai/mcp
claude mcp login openrouter
The OpenRouter MCP server guide has the click-by-click steps for each client.
Which image model should Claude use?
Name the model you want, because no single model fits every job. We sent the same fox prompt to four models, at a 1:1 aspect ratio and the default resolution, to compare look and price.
Each row is a single measurement, as charged on November 19, 2026. Each model’s page has its current price.
The most expensive image cost more than twice the cheapest ($0.094 against $0.035), and Seedream 5.5 was tied for the lowest price while returning the largest image. Three of the four models added text we did not ask for, such as a book title or a hanging sign, so add “no text” to your request. For a wider comparison, read image generation models compared .
You can ask Claude to compare models for your job before spending anything, because looking up models is not billed. When we asked which model to use for product photos on a plain white background, Claude recommended Nano Banana 2.1 from five options, gave a reason and a caveat for each, and said the shortlist came from catalog data and not from test images. It offered to run paid tests on the top three once we agreed.
If you name no model, Claude chooses one itself. In our Claude Code run it picked FLUX 3 Image , and in one Claude app run it picked an older model.
What does it cost?
Each image costs the price of the model that makes it, which was $0.035 to $0.10 in our runs on November 19, 2026. Claude’s own usage is separate.
Aspect ratio and resolution change the price. GPT Image 2.6 Flare cost $0.058 at 16:9 against $0.094 at 1:1, and FLUX 3 Image cost $0.10 at 16:9 and 2K resolution (2736×1536).
The connector’s key starts with a $10 spend cap that you can edit on the consent screen. In our runs Claude also repeated each image’s cost in its reply.
Why does the image sometimes come back as a link?
The generate-image tool returns a link when one can be issued, and the image itself otherwise. A link opens in any browser, without signing in, for 24 hours.
In the Claude app, an image shows in the chat and Claude can see it. A link opens in your browser, and in our run Claude had not seen that picture and could not show it in the chat. In Claude Code, a link is the easier case, because the image downloads straight into your project. An image that comes back directly stays in Claude Code’s own folder until you approve copying it.
Which one you get varied between requests, even for the same model. In our small set of runs on November 19, 2026, Seedream 5.5 returned the image itself 4 of 4 times, GPT Image 2.6 Flare returned a link 3 of 4 times, FLUX 3 Image returned a link 2 of 2 times, and Nano Banana 2.1 returned each once. If you want the picture inside the Claude app, Seedream 5.5 did that every time for us. If you get a link, open it.
Can Claude Code generate images?
Yes. Claude Code generates images with the same connector and puts them straight into your project. Say where to save the file and which page uses it, for example: “This landing page needs a hero illustration. Use OpenRouter to generate one: a red fox reading a paperback under a streetlamp on a snowy night, soft watercolor style. Save it to assets/hero.png and add it to index.html.”
In our run, Claude Code saved a 2736×1536 illustration from FLUX 3 Image at that path and added it to the page. For the full recipe, follow the cookbook Generate and Edit Images from Claude Code .
Can Claude edit an image it generated?
Yes, when the first result came back as a link and the model accepts image input. Claude passes that link back to the model as a reference, along with the changes you asked for.
In our Claude Code session, we asked for a red scarf on the fox and a paperback with a plain red cover, saved over the same file. Claude sent the first image back to FLUX 3 Image, and both changes appeared while the rest of the scene stayed the same.
Without a link, Claude cannot reuse the picture. In the Claude app, after a result that came back as the image itself, asking for a red scarf produced a new picture from a description. The scene changed, and Claude said so.
Frequently asked questions
Can Claude create real images?
Not on its own. Without a connector, Claude builds diagrams and charts in HTML and SVG. With a connector such as the OpenRouter MCP server, it calls an image model and returns a real picture.
Why can’t Claude generate images?
Claude has no image generation model. Anthropic’s documentation describes it as “an image understanding model only”, so it can read the pictures you give it, and drawing one takes a separate image model, which a connector provides.
Does Claude generate images like an image generator does?
No. The image model draws, and Claude writes the prompt from your request and can check the result.
Can Claude generate videos?
We did not test video for this post. The OpenRouter MCP connector also has generate-video , generate-speech and transcribe-audio tools, and they come with the same setup.
Next steps
Connect it to the Claude app or Claude Code and generate your first image:
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-11-28 | 8.4 | 24 | 入选 |
| 2026-11-27 | 8.49 | 28 | 未入选 |
| 2026-11-26 | 8.77 | 32 | 未入选 |