v1

latestOpenAPI 3.0.02026-08-061612131.2 KB
Automotive Endpoints

Segmentation

Try out this capability in Bria's Automobile Playground

Description Generates segmentation masks for specific vehicle parts from an input image, enabling further enhancements such as reflection generation or wheel refinement.

This endpoint returns separate binary masks for each segmented region, including windows, wheels, and body parts. If a specific part is not detected in the image, it will be returned with an empty URL.

The API supports input via image URL or base64-encoded image file, and also includes optional content moderation.

post/product/vehicle/segment

Headers

api_tokenstring required

API token associated with the organization.

Request body

image_urlstring

The URL of the image containing the vehicle to segment. If both image_url and file are provided, image_url will be used. Accepted formats are jpeg, jpg, png, webp. Max file size 12MB.

filestring

Base64-encoded image containing the vehicle to segment. Used only if image_url is not provided. Accepted formats are jpeg, jpg, png, webp. Max file size 12MB.

Response

Segmentation masks successfully generated.

windshieldstring

URL to the PNG mask of the windshield. Empty string if not detected.

rear_windowstring

URL to the PNG mask of the rear window. Empty string if not detected.

side_windowsstring

URL to the PNG mask of the side windows. Empty string if not detected.

bodystring

URL to the PNG mask of the vehicle body. Empty string if not detected.

wheelsstring

URL to the PNG mask of all visible wheels. Empty string if not detected.

hubcapstring

URL to the PNG mask of all visible hubcaps. Empty string if not detected.

tiresstring

URL to the PNG mask of all visible hubcaps. Empty string if not detected.