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

# Gemini 2.5 Flash Image 画像編集

Gemini 2.5 Flash モデルを使用し、テキストプロンプトで画像を編集します。画像は URL または base64 エンコード文字列で指定できます。

## リクエストヘッダー

<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="prompt" type="string" required={true}>
  画像に期待する編集効果を説明するテキストプロンプト
</ParamField>

<ParamField body="image_urls" type="string[]">
  編集に使用する入力画像 URL のリスト
</ParamField>

<ParamField body="aspect_ratio" type="string">
  生成画像のアスペクト比。利用可能な値：1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9

  任意の値：`1:1`, `3:2`, `2:3`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
</ParamField>

<ParamField body="image_base64s" type="string[]">
  編集に使用する base64 エンコード画像のリスト
</ParamField>

## レスポンス情報

<ResponseField name="image_urls" type="string[]" required={false}>
  編集後の出力画像 URL のリスト
</ResponseField>
