{"slug":"automotive","title":"automotive","summary":"Vehicle/automotive image editing for cars, trucks, SUVs, motorcycles — car scenes, reflections, tires refinement with snow/mud/grass, segment windshield/wheels/body/windows/hubcaps, atmospheric effects (dust, fog, snow, light leaks, lens flare), and lighting harmonization (hot-da","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-17T17:01:36.179247Z","repo":{"url":"https://github.com/Bria-AI/bria-skill","stars":68,"forks":6,"license":null,"updatedAt":"2026-09-20T09:13:38Z"},"bodyHtml":"<hr>\n<h2>name: automotive\ndescription: Vehicle/automotive image editing for cars, trucks, SUVs, motorcycles — car scenes, reflections, tires refinement with snow/mud/grass, segment windshield/wheels/body/windows/hubcaps, atmospheric effects (dust, fog, snow, light leaks, lens flare), and lighting harmonization (hot-day, cold-day, hot-night, cold-night presets). Powered by Bria.ai's dedicated automotive pipeline. Use this skill whenever the user mentions a car, vehicle, truck, SUV, motorcycle, auto photo, car reflections, tire enhancement, muddy tires, vehicle background, automotive marketing, car dealership visual, vehicle configurator, or car scene generation. ALWAYS prefer this skill over general image tools when the subject is a vehicle — faster and more accurate for automotive workflows.\nlicense: MIT\nmetadata:\nauthor: Bria AI\nversion: \"1.3.7\"</h2>\n<h1>Bria Automotive — Vehicle Image Editing &amp; Shot Generation</h1>\n<p>Specialized endpoints for automotive imagery: place vehicles in realistic environments, generate reflections on glossy surfaces, refine tires with terrain textures, mask vehicle parts for downstream edits, add atmospheric effects, and harmonize lighting to match scene context. Commercially safe, royalty-free, built on Bria's product vehicle pipeline.</p>\n<h2>When to Use This Skill</h2>\n<p>Use this skill when the user is working with <strong>any vehicle image</strong> — cars, trucks, SUVs, motorcycles, vans. Triggers on:</p>\n<ul>\n<li><strong>Vehicle scene generation</strong> — \"place this car in a desert\", \"put the SUV on a mountain road\", \"show the truck at a city night scene\", \"generate a lifestyle shot for this car\"</li>\n<li><strong>Reflections on glass/metal</strong> — \"add reflections to the windshield\", \"make the hood look glossy\", \"realistic window reflections\"</li>\n<li><strong>Tire enhancement</strong> — \"add snow to the tires\", \"muddy tires for off-road shot\", \"dirt/grass on the wheels\"</li>\n<li><strong>Vehicle part segmentation</strong> — \"mask the windshield\", \"separate the body from the wheels\", \"isolate the rear window\", \"get wheel masks\"</li>\n<li><strong>Atmospheric effects</strong> — \"add dust clouds around the car\", \"foggy scene\", \"snow falling\", \"lens flare\", \"light leaks\"</li>\n<li><strong>Lighting harmonization</strong> — \"match the car to a cold night scene\", \"hot-day lighting preset\", \"unify the vehicle with the background\"</li>\n<li><strong>Automotive marketing &amp; dealer content</strong> — configurators, ad creatives, catalog variations, social media posts featuring vehicles</li>\n</ul>\n<h3>When NOT to Use This Skill</h3>\n<p>For non-vehicle image work, use <strong>bria-ai</strong> (general image generation/editing) or <strong>remove-background</strong> (transparent PNGs). If the subject is a coffee cup, a bag, or any non-vehicle product, use <strong>bria-ai</strong>'s product endpoints instead.</p>\n<p>This skill does one category of thing well: <strong>vehicle-aware image operations</strong>.</p>\n<hr>\n<h2>Setup — Authentication</h2>\n<p>Before making any API call, you need a valid Bria access token.</p>\n<h3>Step 1: Check for existing credentials</h3>\n<pre><code>if [ -f ~/.bria/credentials ]; then\n  BRIA_ACCESS_TOKEN=$(grep '^access_token=' \"$HOME/.bria/credentials\" | cut -d= -f2-)\n  BRIA_API_KEY=$(grep '^api_token=' \"$HOME/.bria/credentials\" | cut -d= -f2-)\nfi\nif [ -z \"$BRIA_ACCESS_TOKEN\" ]; then\n  echo \"NO_CREDENTIALS\"\nelif [ -n \"$BRIA_API_KEY\" ]; then\n  echo \"READY\"\nelse\n  echo \"CREDENTIALS_FOUND\"\nfi\n</code></pre>\n<p>If the output is <code>READY</code>, skip straight to making API calls — no introspection needed.\nIf the output is <code>CREDENTIALS_FOUND</code>, skip to Step 3.\nIf the output is <code>NO_CREDENTIALS</code>, proceed to Step 2.</p>\n<h3>Step 2: Authenticate via device authorization</h3>\n<p><strong>2a. Request a device code:</strong></p>\n<pre><code>DEVICE_RESPONSE=$(curl -s -X POST \"https://engine.prod.bria-api.com/v2/auth/device/authorize\" \\\n  -H \"Content-Type: application/json\")\necho \"$DEVICE_RESPONSE\"\n</code></pre>\n<p>Parse the response fields:</p>\n<ul>\n<li><code>device_code</code> — used to poll for the token (keep this, don't show to user)</li>\n<li><code>user_code</code> — the code the user must enter (e.g. <code>BRIA-XXXX</code>)</li>\n<li><code>interval</code> — seconds between poll attempts</li>\n</ul>\n<p><strong>2b. Show the user a single sign-in link.</strong> Tell them exactly this — nothing more:</p>\n<blockquote>\n<p><strong>Connect your Bria account:</strong> <a href=\"https://platform.bria.ai/device/verify?user_code=%7Buser_code%7D\">Click here to sign in</a>\nYour code is <strong></strong> — it's already filled in.</p>\n</blockquote>\n<p>Do NOT show two links. Do NOT show the raw URL separately. Do NOT use <code>verification_uri</code> from the API response. Keep it to one clickable link.</p>\n<p><strong>2c. Poll for the token.</strong> After showing the user the code, immediately start polling:</p>\n<pre><code>for i in $(seq 1 60); do\n  TOKEN_RESPONSE=$(curl -s -X POST \"https://engine.prod.bria-api.com/v2/auth/token\" \\\n    -d \"grant_type=urn:ietf:params:oauth:grant-type:device_code\" \\\n    -d \"device_code=$DEVICE_CODE\")\n  ACCESS_TOKEN=$(printf '%s' \"$TOKEN_RESPONSE\" | sed -n 's/.*\"access_token\" *: *\"\\([^\"]*\\)\".*/\\1/p')\n  if [ -n \"$ACCESS_TOKEN\" ]; then\n    BRIA_ACCESS_TOKEN=\"$ACCESS_TOKEN\"\n    REFRESH_TOKEN=$(printf '%s' \"$TOKEN_RESPONSE\" | sed -n 's/.*\"refresh_token\" *: *\"\\([^\"]*\\)\".*/\\1/p')\n    mkdir -p ~/.bria\n    printf 'access_token=%s\\nrefresh_token=%s\\n' \"$BRIA_ACCESS_TOKEN\" \"$REFRESH_TOKEN\" &gt; \"$HOME/.bria/credentials\"\n    echo \"AUTHENTICATED\"\n    break\n  fi\n  sleep 5\ndone\n</code></pre>\n<p>If the output contains <code>AUTHENTICATED</code>, proceed to Step 3. Otherwise the code expired — start over from Step 2a.</p>\n<p><strong>Do not proceed with any API call until authentication is confirmed.</strong></p>\n<h3>Step 3: Verify billing status and resolve API key</h3>\n<pre><code>INTROSPECT=$(curl -s -X POST \"https://engine.prod.bria-api.com/v2/auth/token/introspect\" \\\n  -d \"token=$BRIA_ACCESS_TOKEN\")\nBILLING_STATUS=$(printf '%s' \"$INTROSPECT\" | sed -n 's/.*\"billing_status\" *: *\"\\([^\"]*\\)\".*/\\1/p')\nif [ \"$BILLING_STATUS\" = \"blocked\" ]; then\n  BILLING_MSG=$(printf '%s' \"$INTROSPECT\" | sed -n 's/.*\"billing_message\" *: *\"\\([^\"]*\\)\".*/\\1/p')\n  echo \"BILLING_ERROR: $BILLING_MSG\"\nfi\nACTIVE=$(printf '%s' \"$INTROSPECT\" | sed -n 's/.*\"active\" *: *\\([^,}]*\\).*/\\1/p' | tr -d ' ')\nif [ \"$ACTIVE\" = \"false\" ]; then\n  printf '' &gt; \"$HOME/.bria/credentials\"\n  echo \"TOKEN_EXPIRED\"\nfi\nBRIA_API_KEY=$(printf '%s' \"$INTROSPECT\" | sed -n 's/.*\"api_token\" *: *\"\\([^\"]*\\)\".*/\\1/p')\nif [ -n \"$BRIA_API_KEY\" ]; then\n  grep -v '^api_token=' \"$HOME/.bria/credentials\" &gt; \"$HOME/.bria/credentials.tmp\" 2&gt;/dev/null || true\n  printf 'api_token=%s\\n' \"$BRIA_API_KEY\" &gt;&gt; \"$HOME/.bria/credentials.tmp\"\n  mv \"$HOME/.bria/credentials.tmp\" \"$HOME/.bria/credentials\"\nfi\n</code></pre>\n<ul>\n<li>If <code>BILLING_ERROR: ...</code> — relay the message to the user exactly as shown and <strong>stop</strong>.</li>\n<li>If <code>TOKEN_EXPIRED</code> — tell the user their session expired and restart from Step 2.</li>\n<li>Otherwise, <code>BRIA_API_KEY</code> is cached. Proceed.</li>\n</ul>\n<hr>\n<h2>Core Capabilities</h2>\n<table>\n<thead>\n<tr>\n<th>Endpoint</th>\n<th>Path</th>\n<th>What it does</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Vehicle Shot by Text</td>\n<td><code>POST /v1/product/vehicle/shot_by_text</code></td>\n<td>Place a vehicle in a text-described environment (road, garage, mountain, city night)</td>\n</tr>\n<tr>\n<td>Vehicle Segmentation</td>\n<td><code>POST /v1/product/vehicle/segment</code></td>\n<td>Return binary masks for windshield, rear window, side windows, body, wheels, hubcaps, tires</td>\n</tr>\n<tr>\n<td>Generate Reflections</td>\n<td><code>POST /v1/product/vehicle/generate_reflections</code></td>\n<td>Paint realistic reflections onto glass, metal, and glossy bodywork</td>\n</tr>\n<tr>\n<td>Refine Tires</td>\n<td><code>POST /v1/product/vehicle/refine_tires</code></td>\n<td>Replace tire textures with <code>snow</code>, <code>mud</code>, or <code>grass</code> using a tire mask</td>\n</tr>\n<tr>\n<td>Apply Effects</td>\n<td><code>POST /v1/product/vehicle/apply_effect</code></td>\n<td>Overlay atmospheric effects: <code>dust</code>, <code>snow</code>, <code>fog</code>, <code>light leaks</code>, <code>lens flare</code></td>\n</tr>\n<tr>\n<td>Harmonize</td>\n<td><code>POST /v1/product/vehicle/harmonize</code></td>\n<td>Apply lighting presets: <code>hot-day</code>, <code>cold-day</code>, <code>hot-night</code>, <code>cold-night</code></td>\n</tr>\n</tbody>\n</table>\n<p>The typical multi-step pipeline: <strong>segment → refine tires / add reflections → apply effects → harmonize lighting</strong>.</p>\n<hr>\n<h2>How to Call Any Automotive Endpoint</h2>\n<p>Use <code>bria_call</code> for all API calls. It handles URL passthrough, local file base64 encoding, JSON construction, API call, and async polling in a single function call. The API key is auto-loaded from <code>~/.bria/credentials</code>.</p>\n<p><strong>First</strong>, source the helper script at <code>references/code-examples/bria_client.sh</code> (resolve relative to this skill's directory).</p>\n<pre><code>source &lt;SKILL_DIR&gt;/references/code-examples/bria_client.sh\n\n# Place vehicle in a text-described scene\nRESULT=$(bria_call /v1/product/vehicle/shot_by_text \"/path/to/car.png\" \\\n  '\"scene_description\": \"coastal highway at sunset, dramatic sky\", \"placement_type\": \"automatic\", \"num_results\": 1')\n\n# Segment vehicle parts → returns URLs for body, wheels, windows, tires, etc.\nRESULT=$(bria_call /v1/product/vehicle/segment \"/path/to/car.png\")\n\n# Add reflections (pairs well with segment output)\nRESULT=$(bria_call /v1/product/vehicle/generate_reflections \"/path/to/car.png\")\n\n# Refine tires with snow texture (requires a tire mask)\nRESULT=$(bria_call /v1/product/vehicle/refine_tires \"/path/to/car.png\" \\\n  --key image \\\n  '\"tire_mask\": \"https://cdn.example.com/tires_mask.png\", \"surface\": \"snow\"')\n\n# Apply atmospheric dust effect\nRESULT=$(bria_call /v1/product/vehicle/apply_effect \"/path/to/car.png\" \\\n  '\"effect\": \"dust\", \"layers\": false')\n\n# Harmonize to cold-night lighting\nRESULT=$(bria_call /v1/product/vehicle/harmonize \"/path/to/car.png\" \\\n  '\"preset\": \"cold-night\"')\n\necho \"$RESULT\"\n</code></pre>\n<p><strong>Calling convention:</strong> <code>bria_call &lt;endpoint&gt; &lt;image_or_empty&gt; [--key &lt;json_key&gt;] [extra JSON fields...]</code></p>\n<ul>\n<li>Pass a URL, local file path, or <code>\"\"</code> (empty) for endpoints without a primary image input</li>\n<li>Extra JSON fields are appended as key-value pairs: <code>'\"key\": \"value\"'</code></li>\n<li>Returns the result URL on success, or prints an error to stderr</li>\n</ul>\n<p>See <strong><a href=\"references/api-endpoints.md\">API Endpoints Reference</a></strong> for the full parameter list, placement options, response schemas, and error codes.</p>\n<hr>\n<h2>Example Pipelines</h2>\n<h3>Pipeline 1 — Vehicle in a dramatic environment, cold-night look</h3>\n<pre><code>source &lt;SKILL_DIR&gt;/references/code-examples/bria_client.sh\n\n# 1. Place the vehicle in a scene\nSCENE_URL=$(bria_call /v1/product/vehicle/shot_by_text \"/path/to/car.png\" \\\n  '\"scene_description\": \"empty mountain road with snow flurries\", \"placement_type\": \"automatic\"')\n\n# 2. Harmonize lighting to match a cold night\nFINAL_URL=$(bria_call /v1/product/vehicle/harmonize \"$SCENE_URL\" \\\n  '\"preset\": \"cold-night\"')\n\ncurl -sL \"$FINAL_URL\" -o car_cold_night.jpg\n</code></pre>\n<h3>Pipeline 2 — Off-road with muddy tires and dust</h3>\n<pre><code># 1. Segment tires\nMASKS=$(bria_call /v1/product/vehicle/segment \"/path/to/car.png\")\nTIRES_MASK=$(printf '%s' \"$MASKS\" | sed -n 's/.*\"tires\" *: *\"\\([^\"]*\\)\".*/\\1/p')\n\n# 2. Apply mud surface to tires\nMUDDY=$(bria_call /v1/product/vehicle/refine_tires \"/path/to/car.png\" \\\n  --key image \\\n  \"\\\"tire_mask\\\": \\\"$TIRES_MASK\\\", \\\"surface\\\": \\\"mud\\\"\")\n\n# 3. Add dust effect\nFINAL=$(bria_call /v1/product/vehicle/apply_effect \"$MUDDY\" \\\n  '\"effect\": \"dust\"')\n\ncurl -sL \"$FINAL\" -o offroad.jpg\n</code></pre>\n<h3>Pipeline 3 — Glossy showroom shot with studio reflections</h3>\n<pre><code># Add reflections on glass and bodywork\nSHOWROOM=$(bria_call /v1/product/vehicle/generate_reflections \"/path/to/car.png\")\n\n# Harmonize to bright hot-day lighting\nFINAL=$(bria_call /v1/product/vehicle/harmonize \"$SHOWROOM\" \\\n  '\"preset\": \"hot-day\"')\n\ncurl -sL \"$FINAL\" -o showroom.jpg\n</code></pre>\n<hr>\n<h2>Placement Types (Vehicle Shot by Text)</h2>\n<table>\n<thead>\n<tr>\n<th>Placement</th>\n<th>What it controls</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>original</code></td>\n<td>Keep the vehicle's current position and size</td>\n</tr>\n<tr>\n<td><code>automatic</code></td>\n<td>Auto-select up to 7 good placements</td>\n</tr>\n<tr>\n<td><code>manual_placement</code></td>\n<td>Use a predefined position (top-left, center, etc.)</td>\n</tr>\n<tr>\n<td><code>custom_coordinates</code></td>\n<td>Full control via x/y/width/height</td>\n</tr>\n<tr>\n<td><code>manual_padding</code></td>\n<td>Pixel-based padding around the subject</td>\n</tr>\n<tr>\n<td><code>automatic_aspect_ratio</code></td>\n<td>Center the subject; resize canvas to target ratio</td>\n</tr>\n</tbody>\n</table>\n<p>See the full list of conditional parameters in <a href=\"references/api-endpoints.md\">API Endpoints Reference</a>.</p>\n<hr>\n<h2>Prompt Tips for Vehicle Scenes</h2>\n<ul>\n<li><strong>Environment first</strong>: \"coastal highway at sunset\", \"urban parking garage\", \"dense forest trail\", \"alpine switchback in snow\"</li>\n<li><strong>Time and weather</strong>: \"golden hour\", \"stormy overcast\", \"foggy dawn\", \"neon-lit night\"</li>\n<li><strong>Camera intent</strong>: \"low-angle hero shot\", \"three-quarter front\", \"rear tracking shot\", \"aerial drone view\"</li>\n<li><strong>Mood keywords</strong>: \"cinematic\", \"editorial\", \"commercial automotive photography\", \"dealership catalog\"</li>\n</ul>\n<p>Pair <code>shot_by_text</code> for the environment with <code>harmonize</code> for a final lighting pass — the two together produce the most cohesive results.</p>\n<hr>\n<h2>Additional Resources</h2>\n<ul>\n<li><strong><a href=\"references/api-endpoints.md\">API Endpoints Reference</a></strong> — Full parameter docs for all 6 automotive endpoints</li>\n<li><strong><a href=\"references/code-examples/bria_client.sh\">Shell Client (bria_client.sh)</a></strong> — <code>bria_call</code> handles auth, base64, JSON, polling</li>\n<li><strong><a href=\"https://docs.bria.ai/product-shot-editing/automotive-endpoints\">Bria automotive docs</a></strong> — Upstream reference</li>\n</ul>\n<h2>Related Skills</h2>\n<ul>\n<li><strong>bria-ai</strong> — General image generation, editing, and background removal for non-vehicle subjects</li>\n<li><strong>remove-background</strong> — Dedicated transparent PNG / cutout skill</li>\n<li><strong>vgl</strong> — Structured VGL prompts for deterministic FIBO generation (pairs well with <code>shot_by_text</code>)</li>\n</ul>\n","files":[{"path":"LICENSE.txt","sizeBytes":1335,"isText":true},{"path":"references/api-endpoints.md","sizeBytes":7719,"isText":true},{"path":"references/code-examples/bria_client.sh","sizeBytes":4244,"isText":true},{"path":"SKILL.md","sizeBytes":13020,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-17T17:02:50.710654Z","sha256":"50D000E3E3CC8BD0054F91343B73E847481083180DF241610E5BB901FB137196","sizeBytes":10368},"review":null,"source":{"repositoryUrl":"https://github.com/Bria-AI/bria-skill","path":"bria-ai-openclaw/skills/automotive","license":null,"commit":"348d2d4e76ade63382dff87a4f651b7c50afba65","subtreeSha":"2B982B0C67BFC25D1F7A8DC6537F165BC3B7406584DF56B792062A3AE39E2364","lastSyncedAt":"2026-09-25T23:11:53.294767Z"},"reviewedAt":"2026-09-17T17:05:34.449365Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/Bria-AI/bria-skill/tree/main/bria-ai-openclaw/skills/automotive"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install bria-ai-bria-skill@llmmart"},{"target":"git","command":"git clone https://github.com/Bria-AI/bria-skill.git"}]}