Skip to content

AI Brush

在原图上提交黑白蒙版,白色涂抹区域由 AI 重新绘制。

http
POST /v1/images/brush
参数类型必填说明
imagestring原图 URL 或 base64
maskstring黑底白色蒙版,URL 或 base64
webhook_urlstring完成回调地址

蒙版尺寸必须与原图完全一致,并至少包含一块明显的白色区域。

bash
curl -X POST https://api.modelgo.moneygo.ai/v1/images/brush \
  -H "Authorization: Bearer sk-你的Key" \
  -H "Idempotency-Key: brush-order-1001" \
  -H "Content-Type: application/json" \
  -d '{"image":"https://example.com/photo.jpg","mask":"https://example.com/mask.png"}'