require_relative "base" module Fal module Models # http[本机配置路径] class GptImage25 < Base ENDPOINT = "openai/gpt-image-2.5/sunburst/text-to-image".freeze DEFAULTS = { quality: "xhigh", output_format: "png", num_images: 1 }.freeze # Explicit sizes (multiples of 16) matching nano-banana-2's 2K output, so generations compare 1:1. SIZES = { "16:9" => { width: 2752, height: 1536 } }.freeze # Same signature as NanoBanana2#generate; this endpoint has no seed param. def generate(prompt:, aspect_ratio: "16:9", seed: nil, **opts) call(prompt: prompt, image_size: SIZES.fetch(aspect_ratio), **opts) end end end end