/ 目录 / 演练场 / bria-skill
● 社区 Bria-AI ⚡ 即开即用

bria-skill

作者 Bria-AI · Bria-AI/bria-skill

Commercial-grade image generation + editing: 18+ capabilities including object replace, background remove (RMBG-2.0), upscale, restyle, relight, product photography — 37+ agent compatibility.

Bria skill wraps Bria AI's commercial-safe image stack (Fibo, RMBG-2.0, VGL structured prompts) for AI coding agents. Covers text-to-image, object-level editing (replace/remove by name), background removal to transparent PNG, 2x/4x upscaling, relighting, restyling, and product photography. Pipeline chaining lets you compose ops. Free tier available.

为什么要用

核心特性

实时演示

实际使用效果

bria-skill.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "bria-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Bria-AI/bria-skill",
        "~/.claude/skills/bria-skill"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "bria-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Bria-AI/bria-skill",
        "~/.claude/skills/bria-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "bria-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Bria-AI/bria-skill",
        "~/.claude/skills/bria-skill"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "bria-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Bria-AI/bria-skill",
        "~/.claude/skills/bria-skill"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "bria-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Bria-AI/bria-skill",
        "~/.claude/skills/bria-skill"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "bria-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/Bria-AI/bria-skill",
          "~/.claude/skills/bria-skill"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add bria-skill -- git clone https://github.com/Bria-AI/bria-skill ~/.claude/skills/bria-skill

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: bria-skill

Turn a phone-shot product photo into a studio-quality listing image

👤 E-commerce teams without a photo budget ⏱ ~30 min beginner

何时使用: You have a product photo but it needs studio treatment.

前置条件
  • Bria API key — Sign up at platform.bria.ai; free tier available
  • Skill installed — npx skills add bria-ai/bria-skill OR clone directly
步骤
  1. Remove background
    Use bria-skill RMBG-2.0 on product.jpg — clean transparent PNG.✓ 已复制
    → Transparent PNG returned
  2. Relight + restyle
    Composite onto a soft-gradient background, three-quarter lighting, subtle shadow.✓ 已复制
    → Studio-grade output
  3. Upscale for hero
    Upscale 2x for the product page hero.✓ 已复制
    → High-res final

结果: Listing-ready hero image in minutes.

注意事项
  • Over-editing kills the real product — Keep changes subtle; customers spot over-smoothing

Replace or remove an object in an image by name

👤 Marketers iterating on creatives ⏱ ~10 min beginner

何时使用: You have an image but one element is wrong.

步骤
  1. Describe the edit
    In scene.jpg, replace the coffee mug on the desk with a water bottle.✓ 已复制
    → Edit applied; surrounding context preserved

结果: Clean edit that doesn't look photoshopped.

注意事项
  • Ambiguous object references ('the blue thing') — Be specific — 'the mug in the lower-left'

Adjust lighting / season for a campaign variant

👤 Content teams refreshing campaigns ⏱ ~20 min intermediate

何时使用: Existing campaign shot; need a winter variant without a reshoot.

步骤
  1. Relight
    Take campaign.jpg; change lighting to golden-hour low-angle.✓ 已复制
    → Lighting shifted convincingly
  2. Seasonal touches
    Add subtle snow / winter atmosphere without changing the subject.✓ 已复制
    → Seasonal variant

结果: Campaign variant shipped in one chat.

组合

与其他 MCP 搭配,撬动十倍杠杆

Generate novel visuals with the other skill, then refine edits with Bria's deterministic ops

Generate with Nano Banana; run bria remove_background + relight.✓ 已复制
bria-skill + filesystem

Batch over a directory of product shots

Run the product-photography pipeline on every jpg in products/.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
text_to_image prompt (VGL structured ok) New visual Bria credits
remove_background image Need cutout Bria credits
object_replace image, target name, replacement Change specific item Bria credits
upscale image, factor (2x|4x) Before print / hero Bria credits
restyle image, style ref Campaign variants Bria credits
relight image, lighting descriptor Atmosphere change Bria credits
pipeline ordered ops Multi-step edits Sum of ops

成本与限制

运行它的成本

API 配额
Bria free tier + paid credits
每次调用 Token 数
Low orchestration; Bria cost dominates
费用
Free tier generous for small tests; paid for production
提示
Pipeline ops efficiently — remove_background + upscale in one chain amortizes setup

安全

权限、密钥、影响范围

凭据存储: BRIA_API_KEY in env
数据出站: Images go to platform.bria.ai

故障排查

常见错误与修复

Object replace misses the target

Be more specific in the target description; add position hints

RMBG artifacts on fine hair / fur

Use a refine pass or second model specialized for hair

401

BRIA_API_KEY missing/expired

验证: curl -H 'api-token: $BRIA_API_KEY' https://engine.prod.bria-api.com/v1/account

替代方案

bria-skill 对比其他方案

替代方案何时用它替代权衡
Ultimate AI Media GeneratorYou want multi-model generation more than clean editing primitivesLess commercial-safe by default

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills