
doubao-image-mcp
io.github.lingxiao10/doubao-image-mcp
Generate/edit images with ByteDance Doubao Seedream 5.0 Pro. First 3 images free, no API key.
Documentation
Doubao Image MCP · 豆包生图 MCP
Free image generation for Claude Code, Cursor, Codex and any MCP client, powered by ByteDance Doubao Seedream 5.0 Pro. 让 Claude Code / Cursor / Codex 直接用豆包 Seedream 5.0 生成图片。前 3 张免费,不用申请 API Key。
- No API key, no signup for the first 3 images. Sign up with email for 3 more.
- Then pay the official Volcengine price — CNY 0.30 per standard image, 0.60 per HD image. No markup.
- Text-to-image and image-to-image (up to 4 reference images). Strong at Chinese prompts and text inside images.
- Returns a permanent image URL plus a share page.
- Remote MCP (Streamable HTTP), a plain HTTP API (works with
curl, no install), an OpenAI-compatible endpoint, and a Claude Code plugin/skill.
Install
Claude Code
claude mcp add --transport http doubao-image https://tu.xfeixie.com/mcp
Restart Claude Code and say "draw a corgi astronaut with Doubao" / “用豆包画一只柯基宇航员”.
Or as a plugin (MCP + skill):
/plugin marketplace add lingxiao10/doubao-image-mcp
/plugin install doubao-image@doubao-image
Cursor / Claude Desktop / VS Code / Windsurf
{ "mcpServers": { "doubao-image": { "url": "https://tu.xfeixie.com/mcp" } } }
Codex CLI
[mcp_servers.doubao-image]
url = "https://tu.xfeixie.com/mcp"
After the free images, add your key: --header "Authorization: Bearer tu_..." (Claude Code) or "headers": {"Authorization": "Bearer tu_..."} (JSON configs). Get the key at https://tu.xfeixie.com/app.
No install: HTTP API
Any agent can call it from the current session:
curl -s https://tu.xfeixie.com/api/v1/images \
-H 'Content-Type: application/json' \
-d '{"prompt":"一只橘猫坐在月球上,宫崎骏风格","aspect_ratio":"16:9"}'
# → {"ok":true,"data":{"url":"https://tu.xfeixie.com/i/....jpeg","freeLeft":2,...}}
OpenAI-compatible (key required):
from openai import OpenAI
client = OpenAI(base_url="https://tu.xfeixie.com/v1", api_key="tu_...")
print(client.images.generate(prompt="cyberpunk Shanghai at night", size="1792x1024").data[0].url)
Full reference: connect.md · for AI agents: llms.txt
Tools
| tool | what it does |
|---|---|
generate_image(prompt, aspect_ratio?, quality?, reference_images?) | Seedream 5.0 Pro text-to-image / image editing → permanent URL. Aspect 1:1 4:3 3:4 16:9 9:16 3:2 2:3 21:9; quality standard (~2.5 MP) or hd (~4 MP). |
get_account() | Free images left and balance. |
Pricing
| No-signup trial | 3 images per device |
| Email signup | 3 more free |
| Standard (~2.5 MP) | CNY 0.30 |
| HD (~4 MP) | CNY 0.60 |
| Reference images | 1st free, then CNY 0.02 each |
| Failed / blocked | not charged |
Top up with WeChat Pay (CNY 10/30/100) or PayPal (USD 2/5/15, credited at USD 1 = CNY 7).
FAQ
Is this official? No. It is an independent service that calls the official Volcengine Ark Seedream 5.0 Pro API. Same model, same quality.
Why not use a Volcengine key directly? You can — but Volcengine needs Chinese real-name verification, model activation and prepaid balance. This lets you (or your agent) try it in seconds.
Content rules. Requests are filtered by Volcengine's safety system; blocked requests are free. Please label AI-generated images when you publish them.
中文说明
- 免 Key 试用:每台设备前 3 张免费,邮箱注册再送 3 张。
- 价格与火山方舟官网一致:标准图 0.30 元/张,高清 0.60 元/张,不加价;失败和被审核拦截不扣费。
- 用法:Claude Code 执行
claude mcp add --transport http doubao-image https://tu.xfeixie.com/mcp,重启后说“用豆包画……”;不想安装可直接 curl 调接口。 - 充值:控制台 https://tu.xfeixie.com/app ,支持微信支付和 PayPal。
- 本项目为第三方服务,调用火山方舟官方接口,与字节跳动无隶属关系。
Self-host
Node 24 + pnpm. Set TU_ARK_API_KEY (Volcengine Ark), optional TU_RESEND_API_KEY, WeChat Pay / PayPal variables (see backend/src/helper/PayCredentials.ts), then pnpm --dir backend install && pnpm --dir frontend install && npm run start (pm2). SQLite at data/app.db, images in data/images/.
License
MIT
No installation packages available.