# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.claid.ai/image-editing-api/image-operations/generative-editing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
