v2

latestOpenAPI 3.1.0raw.githubusercontent.com2024-07-2562352.8 KB

Creative Generator

post/creative-generator

Request body

heightinteger nullable

Integer representing the height of image to generate. Supported resolutions (w,h): SDXL={(1536, 640), (768, 1344), (832, 1216), (1344, 768), (1152, 896), (640, 1536), (1216, 832), (896, 1152), (1024, 1024)}

lorasobject nullable

A dictionary of LoRAs to apply. LoRAs as keys and their weights (float) as values.

negative_promptstring nullable

Text describing image traits to avoid during generation.

num_imagesinteger

Integer representing how many output images to generate with this prompt.

product_image_b64string required

The original product image to place in the creative. Image should feature a plain background and should be larger than target_product_size_px.

promptstring required

Text describing the image content to generate.

rotate_degnumber

Number of degrees to rotate product_image_b64.

style_preset'base' | 'cinematic' | 'photographic' | 'Advertising'

The supported SDXL styles.

target_product_height_pxinteger required

Target product height, in pixels. The product width will be scaled so the target product dimensions match the original aspect ratio of product_image_b64.

widthinteger nullable

Integer representing the width of image to generate. Supported resolutions (w,h): SDXL={(1536, 640), (768, 1344), (832, 1216), (1344, 768), (1152, 896), (640, 1536), (1216, 832), (896, 1152), (1024, 1024)}

Response

Successful Response