POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 const axios = require('axios'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/bria-lifestyle-shot-by-image"; const data = { "sku": "SKU12345", "image_url": "https://segmind-resources.s3.amazonaws.com/input/7f07de4f-35b2-4e48-939f-9496a1214b31-235b4b11-6dd1-4457-a780-e107cdff2df7.jpeg", "ref_image_urls": "https://segmind-resources.s3.amazonaws.com/input/923be7b5-9c0a-419b-835e-98de2806fb8e-For_Sofa.jpg", "enhance_ref_image": true, "ref_image_influence": 1, "placement_type": "original", "original_quality": false, "aspect_ratio": "16:9", "force_rmbg": false, "content_moderation": false }; (async function() { try { const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } }); console.log(response.data); } catch (error) { console.error('Error:', error.response.data); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


skustr ( default: SKU12345 )

An optional identifier for the product. Use for inventory management or tracking specific items.


image_urlstr ( default: https://segmind-resources.s3.amazonaws.com/input/7f07de4f-35b2-4e48-939f-9496a1214b31-235b4b11-6dd1-4457-a780-e107cdff2df7.jpeg )

URL for the product image. Use a high-quality image URL for best results.


ref_image_urlsstr *

List of reference images. Use related visual contexts for accurate representation.


enhance_ref_imageboolean ( default: true )

Enhance image quality and realism. Enable for better visual results.


ref_image_influenceint ( default: 1 )

Degree of likeness to reference. Use 0 for minimal, 1 for strong resemblance.

min : 0,

max : 1


placement_typeenum:str ( default: original )

Controls product positioning and shot size. 'original' for exact placement, 'automatic' for versatile options.

Allowed values:


original_qualityboolean ( default: 1 )

Retain original size and quality. Enable for high-detail images.


aspect_ratioenum:str ( default: 16:9 )

Aspect ratio for output image. Choose from standard ratios for best fit.

Allowed values:


force_rmbgboolean ( default: 1 )

Enforce background removal for clearer images. Useful for image refinement.


content_moderationboolean ( default: 1 )

Enable moderation to ensure content appropriateness. Essential for compliance.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Bria AI Product Shot Editor – Product Photography Enhancement Model

What is Bria AI Product Shot Editor?

Bria AI Product Shot Editor is an integrated model that ameliorates product photography by automating it for eCommerce and marketing professionals. It effectively uses several high-end AI models synergistically to generate impeccable results - Product Cutout to remove background from images; Product Packshot to achieve professional shots; Product Shadow for near-natural lightning; and Lifestyle Product Shot Editor to automate and enhance product photography.

Bria AI Product Shot Editor impressively transforms simple images into polished, ready-to-use shots for commercial use. Its users have complete control over the creative process, including important aspects, such as object placement within the image, styling, and the environmental elements to give the product image depth and a realistic tone.

Key Features of Bria AI Product Shot Editor

  • Multi-model architecture - It combines different AI models to render cutout, packshot, shadow, and lifestyle generation capabilities
  • Reference image integration - It is made possible with adjustable influence levels (0-1 scale) for style consistency
  • Flexible placement controls - These support options for original, automatic, and custom positioning
  • Multiple aspect ratio support - Ranging from square 1:1 to widescreen 16:9 formats
  • Quality preservation - It ensures original resolution retention options
  • Background removal enforcement - Important for clean product isolation
  • Content moderation - A vital aspect that is built in for compliance and brand safety

Best Use Cases

Bria AI Product Shot Editor is ideal for - -eCommerce Businesses that need consistent product catalogs in less time -Marketing Agencies that have to create campaign visuals -Retail Brands as they have to maintain visual identity across platforms. -Automotive Photography benefits from the model as it supports specialized vehicle reflection and tire refinement capabilities. -Lifestyle Product Placement since products have to be integrated into realistic environments -Inventory Management that needs standardized product shots with SKU (Stock Keeping Unit) tracking

Prompt Tips and Output Quality

  • Utilizing high-quality reference images that match your desired aesthetic and lighting conditions will ensure the best results.
  • Set ref_image_influence to 1 for strong style matching or lower values for subtle guidance.
  • Enable enhance_ref_image to improve visual quality and realism.
  • Choose placement_type carefully - use "original" for exact product positioning, "automatic" for AI-optimized placement, or "manual" for precise control.
  • Enable original_quality when working with high-resolution product images to maintain detail integrity.

FAQs

Is Bria AI Product Shot Editor suitable for automotive photography? Yes, it is excellent for automotive photography as Bria AI includes specialized models for vehicle reflections, tire refinement, and environmental effects, specifically designed for automotive imagery.

How does a reference image influence output quality? The ref_image_influence parameter (0-1) controls style transfer strength - higher values create closer resemblance to reference aesthetics, while lower values provide subtle guidance.

What's the difference between placement types? "Original" maintains the exact product positioning, "automatic" allows AI to optimize placement, while "manual" options provide precise control over coordinates and padding.

Can I maintain original image quality? Yes, you can maintain the original image quality by enabling the original_quality parameter to retain source image resolution and detail levels in the final output.

Does the model support batch processing with SKUs? Yes, the optional SKU (Stock Keeping Unit) parameter enables inventory tracking and batch processing for large product catalogs.

Is content moderation required for commercial use? Though content moderation is optional, but enabling content_moderation ensures output compliance with platform guidelines and brand safety requirements.