Communitygithub.com

openclip-remove-background

使用 OpenClip 免费去除图片背景,返回透明 PNG,仅需 OpenClip 账户,无需订阅。

openclip-remove-background 是什么?

该技能通过 OpenClip 的远程 MCP 服务器提供免费的图片背景移除功能。用户只需拥有 OpenClip 账户,无需订阅或消耗积分即可使用。工作流程包括上传图片、调用 `remove_background` 方法、轮询任务状态直至完成,最终返回永久可用的透明 PNG 图片 URL。技能支持异步处理,输出始终为 PNG 格式以保留透明通道。每日免费使用有速率限制和文件大小上限。

兼容平台✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/OpenClip-App/agent-skills/tree/main/skills/openclip-remove-background

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OpenClip:背景移除

remove_background 接收一张图片,返回去掉了背景的透明 PNG。 它是免费的,只需要一个 OpenClip 账户,无需订阅或积分。 没有需要调节的参数,一次调用完成全部工作。

设置(一次性)

OpenClip 是一个远程 MCP 服务器,地址为 https://openclip.app/mcp。出现 OAuth 提示时使用你的 OpenClip 账户登录,无需复制 API 密钥。

  • Claude Code: claude mcp add --transport http openclip https://openclip.app/mcp,然后 /mcp 进行授权。
  • Claude Desktop / web: 设置 → 连接器 → "添加自定义连接器",粘贴 URL,登录。
  • Cursor(.cursor/mcp.json):{ "mcpServers": { "openclip": { "url": "https://openclip.app/mcp" } } }
  • 仅使用 Header 的客户端: 在 openclip.app/settings/connect 生成一个 MCP 令牌,然后连接到 https://openclip.app/mcp/key,使用 Authorization: Bearer <token>。

验证:调用 get_account。

工作流程

  1. 上传。 create_upload(filename, content_type) 返回一个 id 和一个 upload_url。 将原始字节 PUT 到 upload_url,然后将 id 作为 file 参数传递。 不要调用 complete_upload,那会启动付费的剪辑流程。免费工具直接读取已上传的文件。
  2. 调用。 remove_background(file)。没有其他参数。
  3. 轮询。 返回一个 tool_job 哈希 ID。每隔 5 到 10 秒轮询 get_tool_job_status(tool_job)。 queued / processing 表示正在处理,completed 返回一个指向透明 PNG 的永久 CDN outputs URL,failed 返回 error。
  4. 返回 PNG URL。 PNG 是透明的,因此在某些预览中会看起来有棋盘格或黑色背景。这是正常的,透明通道实际存在。

规则

  • 始终轮询,该工具是异步的。
  • 输出始终是 PNG。透明度需要透明通道,因此不能使用 jpg。如果用户之后需要将其放到某个颜色上或调整大小,可以链式调用 edit_image(参见 openclip-thumbnails)。
  • 输出 URL 是永久的 CDN 链接,没有签名也不会过期。
  • 免费使用有每日速率限制和单文件大小上限。错误文本会说明如何解除限制。

示例提示与对应操作

  • "移除这张照片的背景" - create_upload,PUT 字节,remove_background(file),轮询,返回透明 PNG URL。
  • "为商品列表抠出产品" - 同上,然后如果需要特定尺寸,对输出调用 edit_image(file, operation="resize", ...)。
  • "我需要这个 logo 变成透明背景" - 同上,然后返回 PNG。

相关技能

调整大小、裁剪和重新格式化图片是 openclip-thumbnails(edit_image)。从视频中提取一帧并进行抠图也属于 openclip-thumbnails(extract_thumbnails)。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

OpenClip-App/agent-skills

OpenClip captions: burn styled animated captions into short clips.

OpenClip-App/agent-skills

OpenClip clipping: long video → short vertical clips ranked by virality score.

OpenClip-App/agent-skills

OpenClip agent skill for clipping long-form into short-form social clips.

openclip-convert

Convert and compress media from your agent with OpenClip - video to mp4, webm, mov, mkv, or gif, and audio to mp3, aac, wav, or flac. FREE with just an OpenClip account, no subscription. Use when asked to

openclip-repurpose

Turn one long video into a full batch of platform-ready short clips for TikTok, Reels, and YouTube Shorts with OpenClip - find the moments, reframe to vertical, burn in captions, and write the post copy for each. Use when asked to

openclip-thumbnails

Pull still frames out of a video as thumbnail images with OpenClip, then compress, resize, crop, or reformat them to jpg, png, or webp. FREE with just an OpenClip account, no subscription. Use when asked for

openclip-transcription

Transcribe video or audio to JSON, SRT, and VTT with speaker diarization and time codes, using OpenClip. FREE with just an OpenClip account, no subscription. Use when asked to

openclip-ugc-ads

Generate short vertical UGC-style ad clips from a structured creative brief with OpenClip, picking from a roster of AI creators. Use when asked to

openclip-video-editing

Edit a video file from your agent with OpenClip - trim, crop, reframe to 9:16 or 1:1, resize, rotate, flip, compress to a target size, or mute the audio. FREE with just an OpenClip account, no subscription. Use when asked to

相关技能