Skip to main content
メソッド: client.generate_image_edit(...)またはclient.create_image_edit(...)。

例

主なパラメーター

  • model(必須):画像編集に対応したモデルのID。
  • image(必須):base64データURLまたは元画像のURL。
  • prompt:編集用の新しい任意の指示。
  • mask:任意のマスク(透明な領域が編集されます)。
  • n(1~10):編集後のバリエーション数。
  • size:例:1024x1024、1024x1792、1792x1024。
  • response_format:urlまたはb64_json。
  • user:エンドユーザー用の任意のタグ。

戻り値

ImageGenerationResponse
最終更新日 2026年10月2日