Module: RunApi::NanoBanana::Types
- Defined in:
- lib/runapi/nano_banana/types.rb
Defined Under Namespace
Classes: AsyncTaskResponse, CompletedEditImageResponse, CompletedTextToImageResponse, EditImageResponse, Image, TextToImageResponse
Constant Summary collapse
- GENERATION_MODELS =
Generation tiers: standard (fast), pro (higher res + more refs), v2 (longest prompts + extreme ratios).
%w[nano-banana nano-banana-pro nano-banana-2].freeze
- EDIT_MODELS =
Dedicated editing model. Requires source images to transform.
%w[nano-banana-edit].freeze
- BASE_ASPECT_RATIOS =
%w[1:1 9:16 16:9 3:4 4:3 3:2 2:3 5:4 4:5 21:9 auto].freeze
- ASPECT_RATIOS =
Full aspect ratio set including extreme panoramic ratios (1:4, 1:8, 4:1, 8:1) for v2.
%w[1:1 1:4 1:8 2:3 3:2 3:4 4:1 4:3 4:5 5:4 8:1 9:16 16:9 21:9 auto].freeze
- OUTPUT_RESOLUTIONS =
Output resolution tiers. Pro and v2 default to 1k; higher tiers increase generation time.
%w[1k 2k 4k].freeze
- OUTPUT_FORMATS =
%w[png jpg jpeg].freeze