ClipRelay AI

在 Cursor 和 Claude Code 中通过远程 MCP 生成图片与视频 | ClipRelay AI 技术博客

在编辑器里先审首帧,再单独授权生成视频。预算计入两次生成,重启编辑器后用原任务 ID 继续查。

Published: 2026-12-06 · Featured Model: seedream-5.5

TL;DR: 在编辑器里先审首帧,再单独授权生成视频。预算计入两次生成,重启编辑器后用原任务 ID 继续查。

先验证工具连接

12 月 6 日远程调用 list_models,返回 15 个图像条目和 14 个视频条目。这验证了服务端目录,编辑器授权和付费执行要另行检查。表中每组含一张 2K 首帧和一条 5 秒 720p 动画。同一张图试三次运镜,图算一次,视频算三次。

$10 能买多少

各行独立使用美元余额。读取本站当前零售价,视频按秒、图像按张、文本按百万 token。总价取到微美元,份数向下取整。目录未加载、缺档或停售显示 —。不含额外重做、充值税费和编辑器费用。

计数单位规格 × 数量 × 单价每份$10 整份数余额
1 张图seedream-5.5 2k × 1 × $0.017$0.017588$0.004
1 张图 + 1 条视频seedream-5.5 2k × 1 × $0.017
wan-3.0 720p × 5 × $0.052
$0.27736$0.028
1 张图 + 1 条视频seedream-5.5 2k × 1 × $0.017
seedance-2.5 720p × 5 × $0.18
$0.91710$0.83

Cursor · .cursor/mcp.json

在中转中心创建限额密钥。启动编辑器前设置环境变量 CLIPRELAY_API_KEY。合并配置到项目文件,在 MCP 设置里启用服务器。参阅 Cursor 配置文档。

{
  "mcpServers": {
    "cliprelay": {
      "url": "https://cliprelayai.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:CLIPRELAY_API_KEY}"
      }
    }
  }
}

Claude Code · .mcp.json

项目根目录使用下方版本。确认项目服务器可信后批准连接,用 /mcp 查看状态。出现 401 时先查进程是否继承环境变量、密钥是否有效。不要将明文密钥提交到仓库。参阅 Claude Code MCP 文档。

{
  "mcpServers": {
    "cliprelay": {
      "type": "http",
      "url": "https://cliprelayai.com/mcp",
      "headers": {
        "Authorization": "Bearer ${CLIPRELAY_API_KEY}"
      }
    }
  }
}

三次调用,两次付费确认

先让助手列出模型,每次生成后暂停。下方是三条独立的 tools/call 消息。确认瓶身轮廓后,把 STILL_URL 换成上游能访问的 HTTPS 图片地址,再用视频返回的 ID 替换 TASK_ID。只重复 get_task,直到完成或失败。在链接过期前保存 MP4,不要把签名链接贴到公开代码评审里。

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_image",
    "arguments": {
      "model": "seedream-5.5",
      "resolution": "2k",
      "aspect_ratio": "16:9",
      "prompt": "Amber bottle on a pale stone shelf"
    }
  }
}

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_video",
    "arguments": {
      "model": "wan-3.0",
      "resolution": "720p",
      "duration": 5,
      "aspect_ratio": "16:9",
      "first_frame_url": "STILL_URL",
      "prompt": "Slow push in. Keep the bottle still."
    }
  }
}

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_task",
    "arguments": {
      "task_id": "TASK_ID"
    }
  }
}

扣费前复核报价

2026 年 12 月 6 日核查了公开定价接口和远程 MCP 目录。先用 Python 3 重算线上报价,再用下方 Bash 请求核对 MCP 的模型 ID。查询不会生成素材。鉴权请求需要在终端设置 CLIPRELAY_API_KEY。

# python3
import json, urllib.request
from decimal import Decimal as D, ROUND_HALF_UP
req = urllib.request.Request("https://cliprelayai.com/v1/cliprelay-pricing", headers={"User-Agent": "ClipRelay-budget/1.0"})
with urllib.request.urlopen(req, timeout=30) as f:
    models = json.load(f, parse_float=D)["data"]["models"]
rows = [
    [["seedream-5.5","2k",1]],
    [["seedream-5.5","2k",1],["wan-3.0","720p",5]],
    [["seedream-5.5","2k",1],["seedance-2.5","720p",5]],
]
for parts in rows:
    total = D(0)
    for model, tier, qty in parts:
        m = models[model]
        price = D(str(m["retail"][tier]))
        if not m.get("enabled", True) or price <= 0:
            raise ValueError(model)
        total += price * D(str(qty))
    total = total.quantize(D(".000001"), rounding=ROUND_HALF_UP)
    print(parts, total, int(10 // total), 10 % total)
curl -fsS https://cliprelayai.com/mcp \
  -H "Authorization: Bearer $CLIPRELAY_API_KEY" \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_models",
    "arguments": {
      "type": "all"
    }
  }
}'

支持支付宝(Alipay)与全球信用卡 $5 起充秒到账

支持支付宝扫码、Visa、Mastercard、Amex、Apple Pay 与 Google Pay 实时充值($5 起充,无月费绑架),充入美元永久有效,上游生图/视频失败 100% 自动原路退费。技术支持:support@cliprelayai.com。