ImageSize
struct ImageSize : Sendable, EquatableThe size of images to generate.
-
512px (0.5K) image size.
This corresponds to 512x512 pixel images in a
square1x1aspect ratio. See the documentation for specific sizes in other aspect ratios.Declaration
Swift
public static let size512: ImageConfig.ImageSize -
1K image size.
This corresponds to 1024x1024 pixel images in a
square1x1aspect ratio. See the documentation for specific sizes in other aspect ratios.Declaration
Swift
public static let size1K: ImageConfig.ImageSize -
2K image size.
This corresponds to 2048x2048 pixel images in a
square1x1aspect ratio. See the documentation for specific sizes in other aspect ratios.Declaration
Swift
public static let size2K: ImageConfig.ImageSize -
4K image size.
This corresponds to 4096x4096 pixel images in a
square1x1aspect ratio. See the documentation for specific sizes in other aspect ratios.Declaration
Swift
public static let size4K: ImageConfig.ImageSize