让 AI Agent 直接使用 WePost 卡片渲染:传文字,返回卡片图片链接。10 套模板 × 5 种画幅,自带智能排版匹配。
把这段提示词发给 Agent,装一次即可。之后用中文说「把这段内容做成卡片」,Agent 会带上你的 actor 调接口。
问一句验证是否接上:
把下面这句话做成一张卡片:山高水长,行稳致远。
成功的样子:返回一张图片链接(content-addressed),打开即见卡片。
用管理员给你的 一次性邀请码 换取这把 actor 对应的 apiKey(仅显示一次,请保存)。
POST/api/render — 传内容(content 必填),返回 { url, templateId, aspectRatio, cached }
curl -X POST https://wepost.zaneven.com/api/render \
-H "X-API-Key: sk_..." -H "Content-Type: application/json" \
-d '{"title":"今日早报","content":"..."}'
POST/api/agents/register — 传 {actor} + X-Invite-Code,返回一次性的 apiKey
GET/cards/:id.png — 取卡片图片(内容寻址,永久缓存)