> For the complete documentation index, see [llms.txt](https://docs.claid.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.claid.ai/image-editing-api/image-operations/generative-editing.md).

# 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. You can also control the generation by explicitly describing the desired style in the `prompt` parameter.&#x20;

{% hint style="warning" %}
The style transfer operation can't be used in conjunction with the remove background or blur operations.
{% endhint %}

#### **Properties**

<table><thead><tr><th width="261">Parameter</th><th width="185">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>style_reference_image</code></td><td>string (URL)</td><td>URL of the image to be used as a style reference, can be a Storage URL.</td></tr><tr><td><code>prompt</code></td><td>string</td><td>Text prompt to adjust the style transfer output.</td></tr><tr><td><code>style_strength</code></td><td>float (unit interval)</td><td>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.</td></tr><tr><td><code>denoising_strength</code></td><td>float (unit interval)</td><td>Determines the degree of color and texture modification, default value is 0.75. Higher values means higher colors and textures creativity.</td></tr><tr><td><code>depth_strength</code></td><td>float (unit interval)</td><td>Determines the degree of overall composition and shape preservation, default value is 1.0. Higher values means higher input image composition influence. </td></tr></tbody></table>

#### Request example of style transferring:

```json
"operations": {
    "generative": {
        "style_transfer": {
             "style_reference_image": "storage://storage-name/path/reference.jpg",
             "prompt": "an oil painting",
             "style_strength": 0.75,
             "denoising_strength": 0.75,
             "depth_strength": 1.0
        }
    }
}
```

<figure><img src="/files/FdEGnGYwACLpN84mvO9K" alt=""><figcaption></figcaption></figure>
