Product Shot Editing
//
Harmonization
Description Applies predefined lighting and tone presets to match the product image with a desired environmental context.
Available presets include hot-day, cold-day, hot-night, and cold-night. These harmonization styles help unify the subject with its background for a consistent and visually appealing result.
Security
api_token
The URL of the vehicle image. If both image_url and file are provided, image_url takes precedence. Accepted formats are jpeg, jpg, png, webp.
The vehicle image in base64 format. Used only if image_url is not provided. Accepted formats are jpeg, jpg, png, webp.
POST
# The Python SDK covers v2 endpoints; call this v1 endpoint over HTTP.
import os
import httpx
response = httpx.post(
"https://engine.prod.bria-api.com/v1/product/vehicle/harmonize",
headers={"api_token": os.environ["BRIA_API_TOKEN"]},
json={
"image_url": "https://example.com/images/car_side_view.png",
"preset": "cold-day",
},
timeout=120,
)
response.raise_for_status()
print(response.json())Response
{ "url": "https://example.com/results/full_image_refined_1.png" }