---
schema_version: "1"
id: 66cf428003ad07e5423052ebd0e6480bafe4083f8a06b4109aab6eb347b021f9
title: 画像生成操作の設定
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mulesoft-inference-connector/1.0/configuring-image-generation-operations.md
canonical_url: https://docs.mulesoft.com/jp/mulesoft-inference-connector/1.0/configuring-image-generation-operations
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f452e3ba65923cfdd2bf31985bfe1b03e3706ab79f16f2af87a7a0c9d64e1e8c
description: MuleSoft Documentation Site
release: "1.0"
latest: true
---
# 画像生成操作の設定

**\[Image\] Generate (only Base64)**​ 操作を設定します。

## [](#image-generate-only-base64-操作の設定)\[Image\] Generate (only Base64) 操作の設定

**\[Image\] Generate (only Base64)**​ 操作では、AI を活用した画像生成モデルを使用して、テキストの説明から画像を作成します。

**\[Image\] Generate (only Base64)**​ 操作を次のようなさまざまなシナリオで適用します。

- **コンテンツの生成**
    
    ブログ投稿、記事、ソーシャルメディア、調査、設計プロジェクトの画像を生成します。

**\[Image\] Generate (only Base64)**​ 操作を設定する手順は、次のとおりです。

Unresolved include directive in modules/ROOT/pages/configuring-image-generation-operations.adoc - include::connectors::partial$t-configure-operations.adoc\[\] \* **Prompt (プロンプト)**

\+ 生成する画像のテキストの説明を入力します。

この操作の XML を次に示します。

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

### [](#出力設定)出力設定

この操作の応答には、生成された画像データと生成プロセスに関するメタデータを含む JSON ペイロードが含まれます。応答の例を次に示します。

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

この操作では、メイン JSON ペイロード内に含まれない属性も返されます。次に例を示します。

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

## [](#関連情報)関連情報

- [MuleSoft Inference Connector の概要](https://docs.mulesoft.com/jp/mulesoft-inference-connector/1.0/)
- [MuleSoft Inference Connector リファレンス](https://docs.mulesoft.com/jp/mulesoft-inference-connector/1.0/mulesoft-inference-connector-reference)
- [MuleSoft ヘルプセンター](https://help.mulesoft.com)