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

# GPT Image 2 Light 編集

GPT Image 2 Light 画像編集 API。images 配列で画像 URL を受け取り、プロンプトに基づいて入力画像を編集し、編集後の画像 URL を返します。

## リクエストヘッダー

<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="mask" type="object">
  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="image_url" type="string">
      マスク画像の URL または data URL。マスク画像は PNG である必要があり、RGBA または LA などの alpha channel を含む必要があります。透明領域は編集または再描画が必要な領域を示し、不透明領域は可能な限り変更を保持する領域を示します。マスクのサイズは通常、入力 image と一致している必要があります。file\_id はサポートされていません。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="size" type="string" default="1024x1024">
  出力画像の解像度。

  指定可能な値：`1024x1024`, `1024x1536`, `1536x1024`, `1152x2048`, `2048x1152`, `2048x2048`, `2160x3840`, `3840x2160`
</ParamField>

<ParamField body="images" type="object[]" required={true}>
  JSON URL モードで編集対象となる元画像のリスト。少なくとも 1 つの image\_url が必要で、URL または data URL をサポートします。

  配列の長さ：1 - 16

  <Expandable title="properties" defaultOpen={true}>
    <ParamField body="image_url" type="string" required={true}>
      入力画像の URL または data URL。file\_id はサポートされていません。
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  入力画像をどのように変更したいかを説明する編集指示。空の場合は prompt is required が返されます。

  長さ制限：0 - 32000
</ParamField>

<ParamField body="background" type="string">
  出力画像の背景処理方法。

  指定可能な値：`auto`, `opaque`
</ParamField>

<ParamField body="moderation" type="string">
  コンテンツ審査の厳格度。

  指定可能な値：`auto`, `low`
</ParamField>

## レスポンス情報

<ResponseField name="images" type="string[]" required={false}>
  プラットフォームに保存された、変換後の編集結果画像 URL の配列。
</ResponseField>
