Generative Editing

The Generative section contains AI-powered image processing operations that can be used in a variety of workflows.

Style Transfer

This operation proposes to change the style of an input image to a style of a reference image.

A reference image URL goes to the style_reference_image parameter of the style_transfer object. You can control style transferring strength with the style_strength parameter, colors and texture preservation of the original image with the denoising_strength parameter, overall composition and shape preservation with the depth_strength parameter.

The style transfer operation can't be used in conjunction with the remove background or blur operations.

Properties

ParameterTypeDescription

style_reference_image

string (URL)

URL of the image to be used as a style reference, can be a Storage URL.

style_strength

float (unit interval)

Determines the degree of overall style intensity as taken from the style reference, default value is 0.75. Higher values means higher reference style influence.

denoising_strength

float (unit interval)

Determines the degree of color and texture modification, default value is 0.75. Higher values means higher colors and textures creativity.

depth_strength

float (unit interval)

Determines the degree of overall composition and shape preservation, default value is 1.0. Higher values means higher input image composition influence.

Request example of style transferring:

"operations": {
    "generative": {
        "style_transfer": {
             "style_reference_image": "storage://storage-name/path/reference.jpg",
             "style_strength": 0.75,
             "denoising_strength": 0.75,
             "depth_strength": 1.0
        }
    }
}

Last updated