---
schema_version: "1"
id: 096e824ffe167eae701a204281abe8a9f86f5522cbfd1835573d2d8226e532b4
title: Configuring Image Generation Operations
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mulesoft-inference-connector/1.0/configuring-image-generation-operations.md
canonical_url: https://docs.mulesoft.com/mulesoft-inference-connector/1.0/configuring-image-generation-operations
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b27c2528b5475f26931d32062cd18d0e7b3fda85f87417ee4ef0561d7039de45
description: MuleSoft Documentation Site
release: "1.0"
latest: false
---
---
product: MuleSoft Inference Connector
version: 1.0
---

# Configuring Image Generation Operations

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

Configure the **\[Image\] Generate (only Base64)** operation.

## Configure the Image Generate (only Base64) Operation

The **\[Image\] Generate (only Base64)** operation creates images from text descriptions using
AI-powered image generation models.

Apply the **\[Image\] Generate (only Base64)** operation in various scenarios, such as for:

- **Content Generation**

  Generate images for blog posts, articles, social media, research, or design projects.

To configure the **\[Image\] Generate (only Base64)** 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:

    - **Prompt**

      Enter the text description of the image you want to generate.

This is the XML for this operation:

```xml
<ms-inference:image-generation
  doc:id="7e62e70e-eff7-4080-bb20-3d162bb84c39"
  config-ref="OpenAIConfig"
  doc:name="Image generation">
    <ms-inference:prompt>
      <![CDATA[A photorealistic image of a modern office building with glass facades, surrounded by landscaped gardens]]>
    </ms-inference:prompt>
</ms-inference:image-generation>
```

### Output Configuration

This operation responds with a JSON payload containing the generated image data and metadata about
the generation process. This is an example response:

```json
{
  "payload": {
    "response": "<Base64 of image>"
  }
}
```

The operation also returns attributes that aren’t within the main JSON payload, for example:

```json
{
  "model": "Model name used",
  "promptUsed": "Revised prompt from LLM"
}
```

## See Also

- [MuleSoft Inference Connector Overview](https://docs.mulesoft.com/mulesoft-inference-connector/1.0/)

- [MuleSoft Inference Connector Reference](https://docs.mulesoft.com/mulesoft-inference-connector/1.0/mulesoft-inference-connector-reference)

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