> ## 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。出力解像度に応じて課金されます。

## リクエストヘッダー

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

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

## リクエストボディ

<ParamField body="size" type="string" default="1024x1024">
  出力画像サイズ。システムはこの解像度に基づいて課金 SKU を照合します。

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

<ParamField body="prompt" type="string" required={true}>
  作成する画像の内容を説明します。
</ParamField>

<ParamField body="background" type="string" default="auto">
  出力画像の背景モード。

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

<ParamField body="moderation" type="string" default="auto">
  生成モードでのコンテンツモデレーションの強度。

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

## レスポンス情報

<ResponseField name="images" type="string[]" required={false}>
  生成された画像 URL のリスト。
</ResponseField>
