Experiment公開済み

GPT Image 2で本当の透明背景を作る条件

同じpromptを二つのGPT Image 2経路で実行し、市松模様が画像に焼き込まれたRGB出力と、alpha channelを持つRGBA出力を比較しました。

Tested question
promptで透明背景を指示するだけの場合と、Images APIでbackground=transparentを指定する場合で、実際のalpha channelを持つ画像になるか。
Exact tools
  • openai-codex image integration tool-reported tier gpt-image-2-high, 1536×1024
  • OpenAI Images API quality=high, background=transparent, output_format=png, 1536×1024
  • PNG channel inspection
  • alpha histogram inspection
Exact models
  • gpt-image-2-high(current Codex integration route)
  • gpt-image-2(official Images API)
Validation method
同一promptを各経路で1回使用し、出力PNGのmode、alpha channel、画素ごとのalpha値を検査しました。Codex Responses経路ではbackground=transparentの明示probeも行いました。
Result
Codex integration出力はRGBで、市松模様が焼き込まれていました。official Images API出力はRGBAで、818,805 pixels(52.06%)が完全透明、754,059 pixelsが部分透明、観測alpha値は0〜254の255段階でした。
Limitations
  • 二つの経路はendpointと指定可能parameterが異なり、同一endpoint内のparameter ablationではありません。
  • 各経路1出力のintegration testで、生成一般の成功率を測っていません。
  • Codex Responsesでbackground=transparentを指定した別probeはHTTP 400『Transparent background is not supported for this model.』でした。
  • 画像integrationとAPIのversion番号は記録されていません。

見た目の透明と、データとしての透明

最初の画像には透明背景でよく使われる市松模様が見えました。しかしfileはRGBで、背景は消せる情報ではなく画像の一部でした。promptで「transparent」と書いただけでは、透明を表現した絵になる可能性があります。

official Images APIでbackground="transparent"を明示した出力にはalpha channelがありました。今回は見た目ではなく、RGBA mode、完全透明pixel、alpha levelを確認して判定しています。