---
schema_version: "1"
id: 7110f5273eac9a2ace809eabe0e760a55e78c35d9c9fbee0c7b5cbd7ded20dea
title: Configuring Image Generation Operations
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/amazon-bedrock-connector/1.0/configuring-image-generation-operations.md
canonical_url: https://docs.mulesoft.com/amazon-bedrock-connector/1.0/configuring-image-generation-operations
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7734b5d0bee0dd944b25915ec82bca373fbb7dd5cd21f01e6022bcda5811cc7d
description: MuleSoft Documentation Site
release: "1.0"
latest: false
---
---
product: Amazon Bedrock Connector
version: 1.0
---

# Configuring Image Generation Operations

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Configure the **IMAGE Generate** operation.

## Configure the IMAGE Generate Operation

The **IMAGE Generate** operation generates an image based on a prompt sent to Amazon Bedrock.

To configure the **IMAGE Generate** operation:

1.  Select the operation on the Anypoint Code Builder or Studio canvas.

2.  In the **General** properties tab for the operation, enter these values:

    - **Text to image**

      Instructions for the image generation. Provide a text description of the image you want to
      generate.

    - **Avoid in image**

      Instructions specifying what should be avoided in the generated image.

    - **Full path output**

      The complete file path where the generated image should be saved. For example:
      `mule.home "/apps/" app.name ++ "/Image.png"`.

    - **Model name**

      The name of the model to be used for image generation. Select any model from the supported LLM
      Providers.

    - **Region**

      The AWS region to be used for the request.

    - **Num of images**

      The number of images to generate (default: 1).

    - **Height**

      Height of the generated image in pixels (default: 512).

    - **Width**

      Width of the generated image in pixels (default: 512).

    - **Cfg scale**

      CFG scale value for image generation (default: 8.0).

    - **Seed**

      Seed for randomizing image generation (default: 0).

This is the XML for this operation:

```xml
<ms-bedrock:
  image-generate
  doc:name="Image generate"
  doc:id="8304d49f-5e96-4514-ac4c-7abf48fcd8f3"
  config-ref="AWS"
  TextToImage="#[payload.prompt]"
  fullPathOutput='#[mule.home ++ "/apps/" ++ app.name ++ "/Image.png"]'
  AvoidInImage="#[payload.avoid]"
  modelName="amazon.titan-image-generator-v1"
/>
```

### Output Configuration

This operation responds with a JSON payload with the path of the generated image.

## See Also

- [Amazon Bedrock Connector Overview](https://docs.mulesoft.com/amazon-bedrock-connector/1.0/)

- [Amazon Bedrock Connector Reference](https://docs.mulesoft.com/amazon-bedrock-connector/1.0/amazon-bedrock-connector-reference)

- [Salesforce Help](https://help.salesforce.com)
