> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Midjourney 画像拡張

Midjourney の画像拡張機能を使用して、生成済みの画像に外側への拡張処理を行い、元画像の内容を保持したまま画像の境界を拡張します。このインターフェースは非同期処理方式を採用しており、クライアントは task\_id を使用して最終的な生成結果を照会する必要があります。

## リクエストヘッダー

<ParamField header="Content-Type" type="string" required={true}>
  列挙値: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer 認証形式: Bearer \{\{API Key}}。
</ParamField>

## リクエストボディ

<ParamField body="image_no" type="integer" required={true}>
  画像番号。画像拡張を行う対象の画像を指定するために使用します。

  取値範囲：0\~3
</ParamField>

<ParamField body="task_id" type="string" required={true}>
  元画像生成タスクの一意の識別子。
</ParamField>

<ParamField body="remix_prompt" type="string" required={true}>
  拡張領域のプロンプト。拡張領域の内容を記述するために使用します。

  長さ制限：1-8192 文字。
</ParamField>

<ParamField body="scale" type="float" required={true}>
  画像拡張の目標比率。ビュー内で新しい画像が占める領域が、元画像の領域に対して何倍になるかを示します。

  取値範囲：1.1\~2.0

  例：1:1 の画像を拡張した後、外側に 20% 拡張（scale=1.2）
</ParamField>

## レスポンス情報パラメータ

<ResponseField name="task_id" type="string" required={true}>
  非同期タスクの task\_id。この task\_id を使用して [タスク結果照会 API](/ja/docs/models/reference-get-async-task-result) をリクエストし、生成結果を取得してください
</ResponseField>
