[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77TTD9DPZ549TB93EDP7N3T":3,"skill-same:01M77TTD9DPZ549TB93EDP7N3T":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M77TTD9DPZ549TB93EDP7N3T","bria-ai",null,"Generate, edit, and transform images with commercially-safe AI models. Create images from text, edit by natural language instruction, remove backgrounds (transparent PNG), replace backgrounds, add\u002Freplace\u002Fremove objects, inpaint, outpaint, upscale (2x\u002F4x), enhance quality, restyle (oil painting, anime, 3D), relight, reseason, restore old photos, colorize, sketch to photo, and product lifestyle shots. Use for websites, apps, presentations needing hero images, banners, product photos, product placement in scenes, icons, illustrations, or backgrounds. Also for e-commerce photography, batch generation, and pipelines. Triggers are image generation, generate\u002Fcreate image, edit photo, remove background, transparent PNG, replace background, product shot, lifestyle scenes, upscale, style transfer, photo restoration, colorize, sketch to image, outpaint, inpaint, cut out subject, integrate products into scene.","Jinhong270\u002FAI-Agent","Jinhong270","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193703602?v=4","01M77SB4J7ATDYATSD7AW4B8XP","01M77SB4JWRQWNGTTR291BHMQP",3,"MIT","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bria-ai\ndescription: Generate, edit, and transform images with commercially-safe AI models. Create images from text, edit by natural language instruction, remove backgrounds (transparent PNG), replace backgrounds, add\u002Freplace\u002Fremove objects, inpaint, outpaint, upscale (2x\u002F4x), enhance quality, restyle (oil painting, anime, 3D), relight, reseason, restore old photos, colorize, sketch to photo, and product lifestyle shots. Use for websites, apps, presentations needing hero images, banners, product photos, product placement in scenes, icons, illustrations, or backgrounds. Also for e-commerce photography, batch generation, and pipelines. Triggers are image generation, generate\u002Fcreate image, edit photo, remove background, transparent PNG, replace background, product shot, lifestyle scenes, upscale, style transfer, photo restoration, colorize, sketch to image, outpaint, inpaint, cut out subject, integrate products into scene.\nlicense: MIT\nmetadata:\n  author: Bria AI\n  version: \"1.2.6\"\n  openclaw:\n    requires:\n      env:\n        - BRIA_API_KEY\n      bins:\n        - curl\n    primaryEnv: BRIA_API_KEY\n---\n\n# Bria — Generate, Edit & Remove Background from Images with AI\n\nGenerate, edit, and create visual assets using Bria's commercially-safe AI models (Fibo, Fibo-Edit,  RMBG-2.0, GenFill, and more). Remove or replace backgrounds, create product lifestyle shots, generate transparent PNGs, batch generate images, and build pipeline workflows. Unlike black-box generators, Bria gives you fine-grained control: edit by text instruction, mask specific regions, add\u002Freplace\u002Fremove individual objects, change lighting or season independently.\n\n## Setup — API Key Check\n\nBefore making any Bria API call, check for the API key and help the user set it up if missing:\n\n### Step 1: Check if the key exists (without printing the key)\n\n```bash\nif [ -z \"$BRIA_API_KEY\" ]; then\n  echo \"BRIA_API_KEY is not set\"\nelse\n  echo \"BRIA_API_KEY is set\"\nfi\n```\n\nIf the output is **not empty**, skip to the next section.\n\n### Step 2: If the key is missing, guide the user\n\nTell the user exactly this:\n> To use image generation, you need a free Bria API key.\n>\n> 1. Go to https:\u002F\u002Fplatform.bria.ai\u002Fconsole\u002Faccount\u002Fapi-keys\n> 2. Sign up or log in\n> 3. Click **Create API Key**\n\nWait for the user to provide their API key. Do not proceed until they give you the key.\n\n**Do not proceed with any image generation or editing until the API key is confirmed set.**\n\n---\n\n## Core Capabilities\n\n| Need | Capability | Use Case |\n|------|------------|----------|\n| Generate images from text | FIBO Generate | Hero images, product shots, illustrations, social media images, banners |\n| Edit images by text instruction | FIBO-Edit | Change colors, modify objects, transform scenes |\n| Edit image region with mask | GenFill\u002FErase | Precise inpainting, add\u002Freplace specific regions |\n| Add\u002FReplace\u002FRemove objects | Text-based editing | Add vase, replace apple with pear, remove table |\n| Remove background (transparent PNG) | RMBG-2.0 | Extract subjects for overlays, logos, cutouts |\n| Replace\u002Fblur\u002Ferase background | Background ops | Change, blur, or remove backgrounds |\n| Expand\u002Foutpaint images | Outpainting | Extend boundaries, change aspect ratios |\n| Upscale image resolution | Super Resolution | Increase resolution 2x or 4x |\n| Enhance image quality | Enhancement | Improve lighting, colors, details |\n| Restyle images | Restyle | Oil painting, anime, cartoon, 3D render |\n| Change lighting | Relight | Golden hour, spotlight, dramatic lighting |\n| Change season | Reseason | Spring, summer, autumn, winter |\n| Composite\u002Fblend images | Image Blending | Apply textures, logos, merge images |\n| Restore old photos | Restoration | Fix old\u002Fdamaged photos |\n| Colorize images | Colorization | Add color to B&W, or convert to B&W |\n| Sketch to photo | Sketch2Image | Convert drawings to realistic photos |\n| Create product lifestyle shots | Lifestyle Shot | Place products in scenes for e-commerce |\n| Integrate products into scenes | Product Integrate | Embed products at exact coordinates |\n\n## Quick Reference\n\n### Generate an Image (FIBO)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fgenerate\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"prompt\": \"your description\",\n    \"aspect_ratio\": \"16:9\",\n    \"resolution\": \"1MP\",\n    \"sync\": true\n  }'\n```\n\n**Aspect ratios**: `1:1` (square), `16:9` (hero\u002Fbanner), `4:3` (presentation), `9:16` (mobile\u002Fstory), `3:4` (portrait)\n\n**Resolution**: `1MP` (default) or `4MP` (improved details for photorealism, adds ~30s latency)\n\n**Sync mode**: Pass `\"sync\": true` in the request body for single image generation to get the result directly in the response. For batch\u002Fmultiple image generation, omit `sync` (or set `false`) and use polling instead.\n\n> **Advanced**: For precise, deterministic control over generation, use **[VGL structured prompts](..\u002Fvgl\u002FSKILL.md)** instead of natural language. VGL defines every visual attribute (objects, lighting, composition) as explicit JSON.\n\n### Remove Background (RMBG-2.0)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fremove_background\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\"image\": \"https:\u002F\u002F...\"}'\n```\n\nReturns PNG with transparency.\n\n### Edit Image (FIBO-Edit) - No Mask Required\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"images\": [\"https:\u002F\u002F...\"],\n    \"instruction\": \"change the mug to red\"\n  }'\n```\n\n### Edit Image Region with Mask (GenFill)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fgen_fill\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"image\": \"https:\u002F\u002F...\",\n    \"mask\": \"https:\u002F\u002F...\",\n    \"prompt\": \"what to generate in masked area\"\n  }'\n```\n\n### Expand Image (Outpainting)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fexpand\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"image\": \"base64-or-url\",\n    \"aspect_ratio\": \"16:9\",\n    \"prompt\": \"coffee shop background, wooden table\"\n  }'\n```\n\n### Upscale Image\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fincrease_resolution\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\"image\": \"https:\u002F\u002F...\", \"scale\": 2}'\n```\n\n### Create Product Lifestyle Shot\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv1\u002Fproduct\u002Flifestyle_shot_by_text\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"image\": \"https:\u002F\u002Fproduct-with-transparent-bg.png\",\n    \"prompt\": \"modern kitchen countertop, natural morning light\"\n  }'\n```\n\n### Integrate Products into Scene\n\nPlace one or more products at exact coordinates in a scene. Products are automatically cut out and matched to the scene's lighting and perspective.\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fimage\u002Fedit\u002Fproduct\u002Fintegrate\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"scene\": \"https:\u002F\u002Fscene-image-url\",\n    \"products\": [\n      {\n        \"image\": \"https:\u002F\u002Fproduct-image-url\",\n        \"coordinates\": {\"x\": 100, \"y\": 200, \"width\": 300, \"height\": 400}\n      }\n    ]\n  }'\n```\n\n---\n\n## Response Handling\n\n### Sync (single image generation)\n\nFor single image requests, pass `\"sync\": true` in the request body. The response returns the result directly — no polling needed.\n\n### Async with polling (batch generation)\n\nFor batch or multiple image generation, omit `sync` (or set `\"sync\": false`). The response returns a status URL to poll:\n\n```json\n{\n  \"request_id\": \"uuid\",\n  \"status_url\": \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fstatus\u002Fuuid\"\n}\n```\n\nPoll the status_url until `status: \"COMPLETED\"`, then get `result.image_url`.\n\n```python\nimport requests, time\n\ndef get_result(status_url, api_key):\n    while True:\n        r = requests.get(status_url, headers={\"api_token\": api_key, \"User-Agent\": \"BriaSkills\u002F1.2.6\"})\n        data = r.json()\n        if data[\"status\"] == \"COMPLETED\":\n            return data[\"result\"][\"image_url\"]\n        if data[\"status\"] == \"FAILED\":\n            raise Exception(data.get(\"error\"))\n        time.sleep(2)\n```\n\n---\n\n## Prompt Engineering Tips\n\n- **Style**: \"professional product photography\" vs \"casual snapshot\", \"flat design illustration\" vs \"3D rendered\"\n- **Lighting**: \"soft natural light\", \"studio lighting\", \"dramatic shadows\"\n- **Background**: \"white studio\", \"gradient\", \"blurred office\", \"transparent\"\n- **Composition**: \"centered\", \"rule of thirds\", \"negative space on left for text\"\n- **Quality keywords**: \"high quality\", \"professional\", \"commercial grade\", \"4K\", \"sharp focus\"\n- **Negative prompts**: \"blurry, low quality, pixelated\", \"text, watermark, logo\"\n\n---\n\n## API Reference\n\nSee `references\u002Fapi-endpoints.md` for complete endpoint documentation.\n\n### Key Endpoints\n\n**Image Generation**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fgenerate` | Generate images from text (FIBO) |\n\n**Edit by Text (No Mask)**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit` | Edit image with natural language instruction |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fadd_object_by_text` | Add objects to image |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Freplace_object_by_text` | Replace objects in image |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Ferase_by_text` | Remove objects by name |\n\n**Edit with Mask**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fgen_fill` | Inpaint\u002Fgenerate in masked region |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Ferase` | Erase masked region |\n\n**Background Operations**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fremove_background` | Remove background (RMBG-2.0) |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Freplace_background` | Replace with AI-generated background |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fblur_background` | Apply blur to background |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Ferase_foreground` | Remove foreground, fill background |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fcrop_foreground` | Crop tightly around subject |\n\n**Image Transformation**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fexpand` | Outpaint to new aspect ratio |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fenhance` | Enhance quality and details |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fincrease_resolution` | Upscale 2x or 4x |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fblend` | Blend\u002Fmerge images or textures |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Freseason` | Change season\u002Fweather |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Frestyle` | Transform artistic style |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Frelight` | Modify lighting |\n\n**Restoration**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fsketch_to_colored_image` | Convert sketch to photo |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Frestore` | Restore old\u002Fdamaged photos |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fcolorize` | Colorize B&W or convert to B&W |\n\n**Product Photography**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv1\u002Fproduct\u002Flifestyle_shot_by_text` | Create product lifestyle shots by text |\n| `POST \u002Fimage\u002Fedit\u002Fproduct\u002Fintegrate` | Integrate products into scene at exact coordinates |\n\n**Utilities**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fstructured_instruction\u002Fgenerate` | Generate JSON instruction (no image) |\n| `GET \u002Fv2\u002Fstatus\u002F{id}` | Check async request status |\n\n### Authentication\n\nAll requests need `api_token` header:\n```\napi_token: YOUR_BRIA_API_KEY\nUser-Agent: BriaSkills\u002F\u003Cversion>\n```\n> **Required:** Always include the `User-Agent: BriaSkills\u002F\u003Cversion>` header (where `\u003Cversion>` is the current skill version from `package.json`, e.g. `BriaSkills\u002F1.2.6`) in every API call, including status polling requests.\n\n---\n\n## Additional Resources\n\n- **[API Endpoints Reference](references\u002Fapi-endpoints.md)** — Complete endpoint documentation with request\u002Fresponse formats\n- **[Workflows & Pipelines](references\u002Fworkflows.md)** — Batch generation, parallel pipelines, integration examples\n- **[Python Client](references\u002Fcode-examples\u002Fbria_client.py)** — Full-featured async Python client\n- **[TypeScript Client](references\u002Fcode-examples\u002Fbria_client.ts)** — Typed Node.js client\n- **[Bash\u002Fcurl Reference](references\u002Fcode-examples\u002Fbria_client.sh)** — Shell functions for all endpoints\n\n## Related Skills\n\n- **[vgl](..\u002Fvgl\u002FSKILL.md)** — Write structured VGL JSON prompts for precise, deterministic control over FIBO image generation\n- **[image-utils](..\u002Fimage-utils\u002FSKILL.md)** — Classic image manipulation (resize, crop, composite, watermarks) for post-processing\n","# Bria — Generate, Edit & Remove Background from Images with AI\n\nGenerate, edit, and create visual assets using Bria's commercially-safe AI models (Fibo, Fibo-Edit,  RMBG-2.0, GenFill, and more). Remove or replace backgrounds, create product lifestyle shots, generate transparent PNGs, batch generate images, and build pipeline workflows. Unlike black-box generators, Bria gives you fine-grained control: edit by text instruction, mask specific regions, add\u002Freplace\u002Fremove individual objects, change lighting or season independently.\n\n## Setup — API Key Check\n\nBefore making any Bria API call, check for the API key and help the user set it up if missing:\n\n### Step 1: Check if the key exists (without printing the key)\n\n```bash\nif [ -z \"$BRIA_API_KEY\" ]; then\n  echo \"BRIA_API_KEY is not set\"\nelse\n  echo \"BRIA_API_KEY is set\"\nfi\n```\n\nIf the output is **not empty**, skip to the next section.\n\n### Step 2: If the key is missing, guide the user\n\nTell the user exactly this:\n> To use image generation, you need a free Bria API key.\n>\n> 1. Go to https:\u002F\u002Fplatform.bria.ai\u002Fconsole\u002Faccount\u002Fapi-keys\n> 2. Sign up or log in\n> 3. Click **Create API Key**\n\nWait for the user to provide their API key. Do not proceed until they give you the key.\n\n**Do not proceed with any image generation or editing until the API key is confirmed set.**\n\n---\n\n## Core Capabilities\n\n| Need | Capability | Use Case |\n|------|------------|----------|\n| Generate images from text | FIBO Generate | Hero images, product shots, illustrations, social media images, banners |\n| Edit images by text instruction | FIBO-Edit | Change colors, modify objects, transform scenes |\n| Edit image region with mask | GenFill\u002FErase | Precise inpainting, add\u002Freplace specific regions |\n| Add\u002FReplace\u002FRemove objects | Text-based editing | Add vase, replace apple with pear, remove table |\n| Remove background (transparent PNG) | RMBG-2.0 | Extract subjects for overlays, logos, cutouts |\n| Replace\u002Fblur\u002Ferase background | Background ops | Change, blur, or remove backgrounds |\n| Expand\u002Foutpaint images | Outpainting | Extend boundaries, change aspect ratios |\n| Upscale image resolution | Super Resolution | Increase resolution 2x or 4x |\n| Enhance image quality | Enhancement | Improve lighting, colors, details |\n| Restyle images | Restyle | Oil painting, anime, cartoon, 3D render |\n| Change lighting | Relight | Golden hour, spotlight, dramatic lighting |\n| Change season | Reseason | Spring, summer, autumn, winter |\n| Composite\u002Fblend images | Image Blending | Apply textures, logos, merge images |\n| Restore old photos | Restoration | Fix old\u002Fdamaged photos |\n| Colorize images | Colorization | Add color to B&W, or convert to B&W |\n| Sketch to photo | Sketch2Image | Convert drawings to realistic photos |\n| Create product lifestyle shots | Lifestyle Shot | Place products in scenes for e-commerce |\n| Integrate products into scenes | Product Integrate | Embed products at exact coordinates |\n\n## Quick Reference\n\n### Generate an Image (FIBO)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fgenerate\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"prompt\": \"your description\",\n    \"aspect_ratio\": \"16:9\",\n    \"resolution\": \"1MP\",\n    \"sync\": true\n  }'\n```\n\n**Aspect ratios**: `1:1` (square), `16:9` (hero\u002Fbanner), `4:3` (presentation), `9:16` (mobile\u002Fstory), `3:4` (portrait)\n\n**Resolution**: `1MP` (default) or `4MP` (improved details for photorealism, adds ~30s latency)\n\n**Sync mode**: Pass `\"sync\": true` in the request body for single image generation to get the result directly in the response. For batch\u002Fmultiple image generation, omit `sync` (or set `false`) and use polling instead.\n\n> **Advanced**: For precise, deterministic control over generation, use **[VGL structured prompts](..\u002Fvgl\u002FSKILL.md)** instead of natural language. VGL defines every visual attribute (objects, lighting, composition) as explicit JSON.\n\n### Remove Background (RMBG-2.0)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fremove_background\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\"image\": \"https:\u002F\u002F...\"}'\n```\n\nReturns PNG with transparency.\n\n### Edit Image (FIBO-Edit) - No Mask Required\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"images\": [\"https:\u002F\u002F...\"],\n    \"instruction\": \"change the mug to red\"\n  }'\n```\n\n### Edit Image Region with Mask (GenFill)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fgen_fill\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"image\": \"https:\u002F\u002F...\",\n    \"mask\": \"https:\u002F\u002F...\",\n    \"prompt\": \"what to generate in masked area\"\n  }'\n```\n\n### Expand Image (Outpainting)\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fexpand\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"image\": \"base64-or-url\",\n    \"aspect_ratio\": \"16:9\",\n    \"prompt\": \"coffee shop background, wooden table\"\n  }'\n```\n\n### Upscale Image\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fimage\u002Fedit\u002Fincrease_resolution\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\"image\": \"https:\u002F\u002F...\", \"scale\": 2}'\n```\n\n### Create Product Lifestyle Shot\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv1\u002Fproduct\u002Flifestyle_shot_by_text\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"image\": \"https:\u002F\u002Fproduct-with-transparent-bg.png\",\n    \"prompt\": \"modern kitchen countertop, natural morning light\"\n  }'\n```\n\n### Integrate Products into Scene\n\nPlace one or more products at exact coordinates in a scene. Products are automatically cut out and matched to the scene's lighting and perspective.\n\n```bash\ncurl -X POST \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fimage\u002Fedit\u002Fproduct\u002Fintegrate\" \\\n  -H \"api_token: $BRIA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"User-Agent: BriaSkills\u002F1.2.6\" \\\n  -d '{\n    \"scene\": \"https:\u002F\u002Fscene-image-url\",\n    \"products\": [\n      {\n        \"image\": \"https:\u002F\u002Fproduct-image-url\",\n        \"coordinates\": {\"x\": 100, \"y\": 200, \"width\": 300, \"height\": 400}\n      }\n    ]\n  }'\n```\n\n---\n\n## Response Handling\n\n### Sync (single image generation)\n\nFor single image requests, pass `\"sync\": true` in the request body. The response returns the result directly — no polling needed.\n\n### Async with polling (batch generation)\n\nFor batch or multiple image generation, omit `sync` (or set `\"sync\": false`). The response returns a status URL to poll:\n\n```json\n{\n  \"request_id\": \"uuid\",\n  \"status_url\": \"https:\u002F\u002Fengine.prod.bria-api.com\u002Fv2\u002Fstatus\u002Fuuid\"\n}\n```\n\nPoll the status_url until `status: \"COMPLETED\"`, then get `result.image_url`.\n\n```python\nimport requests, time\n\ndef get_result(status_url, api_key):\n    while True:\n        r = requests.get(status_url, headers={\"api_token\": api_key, \"User-Agent\": \"BriaSkills\u002F1.2.6\"})\n        data = r.json()\n        if data[\"status\"] == \"COMPLETED\":\n            return data[\"result\"][\"image_url\"]\n        if data[\"status\"] == \"FAILED\":\n            raise Exception(data.get(\"error\"))\n        time.sleep(2)\n```\n\n---\n\n## Prompt Engineering Tips\n\n- **Style**: \"professional product photography\" vs \"casual snapshot\", \"flat design illustration\" vs \"3D rendered\"\n- **Lighting**: \"soft natural light\", \"studio lighting\", \"dramatic shadows\"\n- **Background**: \"white studio\", \"gradient\", \"blurred office\", \"transparent\"\n- **Composition**: \"centered\", \"rule of thirds\", \"negative space on left for text\"\n- **Quality keywords**: \"high quality\", \"professional\", \"commercial grade\", \"4K\", \"sharp focus\"\n- **Negative prompts**: \"blurry, low quality, pixelated\", \"text, watermark, logo\"\n\n---\n\n## API Reference\n\nSee `references\u002Fapi-endpoints.md` for complete endpoint documentation.\n\n### Key Endpoints\n\n**Image Generation**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fgenerate` | Generate images from text (FIBO) |\n\n**Edit by Text (No Mask)**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit` | Edit image with natural language instruction |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fadd_object_by_text` | Add objects to image |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Freplace_object_by_text` | Replace objects in image |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Ferase_by_text` | Remove objects by name |\n\n**Edit with Mask**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fgen_fill` | Inpaint\u002Fgenerate in masked region |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Ferase` | Erase masked region |\n\n**Background Operations**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fremove_background` | Remove background (RMBG-2.0) |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Freplace_background` | Replace with AI-generated background |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fblur_background` | Apply blur to background |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Ferase_foreground` | Remove foreground, fill background |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fcrop_foreground` | Crop tightly around subject |\n\n**Image Transformation**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fexpand` | Outpaint to new aspect ratio |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fenhance` | Enhance quality and details |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fincrease_resolution` | Upscale 2x or 4x |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fblend` | Blend\u002Fmerge images or textures |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Freseason` | Change season\u002Fweather |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Frestyle` | Transform artistic style |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Frelight` | Modify lighting |\n\n**Restoration**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fsketch_to_colored_image` | Convert sketch to photo |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Frestore` | Restore old\u002Fdamaged photos |\n| `POST \u002Fv2\u002Fimage\u002Fedit\u002Fcolorize` | Colorize B&W or convert to B&W |\n\n**Product Photography**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv1\u002Fproduct\u002Flifestyle_shot_by_text` | Create product lifestyle shots by text |\n| `POST \u002Fimage\u002Fedit\u002Fproduct\u002Fintegrate` | Integrate products into scene at exact coordinates |\n\n**Utilities**\n| Endpoint | Purpose |\n|----------|---------|\n| `POST \u002Fv2\u002Fstructured_instruction\u002Fgenerate` | Generate JSON instruction (no image) |\n| `GET \u002Fv2\u002Fstatus\u002F{id}` | Check async request status |\n\n### Authentication\n\nAll requests need `api_token` header:\n```\napi_token: YOUR_BRIA_API_KEY\nUser-Agent: BriaSkills\u002F\u003Cversion>\n```\n> **Required:** Always include the `User-Agent: BriaSkills\u002F\u003Cversion>` header (where `\u003Cversion>` is the current skill version from `package.json`, e.g. `BriaSkills\u002F1.2.6`) in every API call, including status polling requests.\n\n---\n\n## Additional Resources\n\n- **[API Endpoints Reference](references\u002Fapi-endpoints.md)** — Complete endpoint documentation with request\u002Fresponse formats\n- **[Workflows & Pipelines](references\u002Fworkflows.md)** — Batch generation, parallel pipelines, integration examples\n- **[Python Client](references\u002Fcode-examples\u002Fbria_client.py)** — Full-featured async Python client\n- **[TypeScript Client](references\u002Fcode-examples\u002Fbria_client.ts)** — Typed Node.js client\n- **[Bash\u002Fcurl Reference](references\u002Fcode-examples\u002Fbria_client.sh)** — Shell functions for all endpoints\n\n## Related Skills\n\n- **[vgl](..\u002Fvgl\u002FSKILL.md)** — Write structured VGL JSON prompts for precise, deterministic control over FIBO image generation\n- **[image-utils](..\u002Fimage-utils\u002FSKILL.md)** — Classic image manipulation (resize, crop, composite, watermarks) for post-processing\n",{"name":5,"license":14,"metadata":24,"description":7},{"author":25,"version":26,"openclaw":27},"Bria AI","1.2.6",{"requires":28,"primaryEnv":30},{"env":29,"bins":31},[30],"BRIA_API_KEY",[32],"curl","main","cb3f39689b7b3a95edb2753c8f3e97a313b885fc","Xiao-Q\u002Fskills\u002Fbria-ai",0,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent","https:\u002F\u002Fgithub.com\u002FJinhong270","2026-09-30 23:42:56",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add Jinhong270\u002FAI-Agent --skill bria-ai",{"tool":46,"command":47},"bunx","bunx skills add Jinhong270\u002FAI-Agent --skill bria-ai",{"tool":49,"command":50},"pnpm","pnpm dlx skills add Jinhong270\u002FAI-Agent --skill bria-ai","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002FSKILL.md",true,[54,60,65,69,75,79,83],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"_meta.json","REFERENCE","参考文档",126,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002F_meta.json",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":15},"LICENSE.txt","LICENSE","许可证",1335,{"path":66,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fapi-endpoints.md",13032,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002Freferences\u002Fapi-endpoints.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fcode-examples\u002Fbria_client.py","SCRIPT","脚本",26746,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002Freferences\u002Fcode-examples\u002Fbria_client.py",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fcode-examples\u002Fbria_client.sh",25018,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002Freferences\u002Fcode-examples\u002Fbria_client.sh",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fcode-examples\u002Fbria_client.ts",23863,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002Freferences\u002Fcode-examples\u002Fbria_client.ts",{"path":84,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fworkflows.md",11024,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fbria-ai\u002Freferences\u002Fworkflows.md",[88,95,103,110,117,124],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M77Z0W1XHJVFS4M183VZTF3Z","xlsx","Open, create, read, analyze, edit, repair, or validate spreadsheet files (.xlsx, .xlsm, .xltx, .csv, .tsv) with zero format loss, with first-class support for Chinese \u002F CJK content. Use whenever the user asks to create, build, modify, fill, analyze, read, repair, validate, or format any spreadsheet, workbook, report, dashboard, budget, financial model, pivot table, or tabular data file. Handles Chinese text, encodings (UTF-8 \u002F GB18030 \u002F GBK), full-width characters, CJK fonts in rendering, and Chinese number\u002Fdate conventions (¥, 万\u002F亿, 年\u002F月\u002F日). Covers: creating new workbooks from scratch, reading and analyzing existing files, editing existing workbooks while preserving pivot tables \u002F VBA macros \u002F charts \u002F sparklines \u002F conditional formatting \u002F named ranges, formula recalculation and validation, visual review of results, and applying professional formatting. Triggers on 'spreadsheet', 'Excel', 'workbook', '表格', '工作簿', '.xlsx', '.xlsm', '.csv', 'pivot table', '透视表', 'macro', '宏', 'chart', '图表', 'financial model', '财务模型', 'formula', '公式', or any request to produce tabular data.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M77Z0EVYYQEYGJME2K56STBZ","xlsx-formula-master","你描述需求(人话)，它给你 Excel \u002F WPS 公式 + 解释 + 不踩坑的边界条件。\n专攻 VLOOKUP \u002F XLOOKUP \u002F INDEX-MATCH \u002F SUMIFS \u002F 数组公式 \u002F 动态数组 \u002F Power Query 等高频但易错场景。\n自动适配你的 Excel 版本（2019 \u002F 365 \u002F WPS）——版本不同公式可能不能用。\n触发：用户说 \"Excel 公式\"、\"VLOOKUP\"、\"怎么算\"、\"WPS 公式\"、\"求和怎么写\"、\"匹配数据\"、\"数据透视\"。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M77Z05X53XF8VVQFFFZE2Z4Z","self-improving-agent","Self-improving agent system that analyzes conversation quality, identifies improvement opportunities, and continuously optimizes response strategies.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiucheng-self-improving-agent\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M77YZ7KXV2B7GDCBKE07QRWE","xiaohongshu-content-tools","小红书运营数据工具｜当提到小红书关键词搜索,小红书笔记详情及评论,小红书博主作品时使用，可实现爆款挖掘\u002F竞品分析\u002FKOL筛选\u002F趋势洞察，用数据驱动小红书流量增长，告别盲目创作","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiaohongshu-content-tools\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M77YYQVPA4EWZPQ8J88BYVYA","xfg-ddd-skills","DDD 六边形架构设计与部署技能包。提供 Domain\u002FCase\u002FInfrastructure 层设计模式与代码模板，以及 Docker 环境部署脚本。当用户询问 DDD 架构、设计模式或需要部署项目时调用。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxfg-ddd-skills\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":19},"01M77YXP7QKKD0HX26W2V63Q9M","wordpress","WordPress.com API integration with managed OAuth. Manage posts, pages, sites, and content.\nUse this skill when users want to create, read, update, or delete WordPress.com posts, pages, or manage site content.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FSKILL.md",[],[]]