ImageConfig: {
    aspect_ratio?: ImageConfigAspectRatio;
    image_size?: ImageConfigImageSize;
}

The configuration for image interaction.

Type declaration

  • Optionalaspect_ratio?: ImageConfigAspectRatio

    The aspect ratio of the image to generate. Supported aspect ratios: 1:1,

    2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.

    If not specified, the model will choose a default aspect ratio based on any reference images provided.

  • Optionalimage_size?: ImageConfigImageSize

    Specifies the size of generated images. Supported values are 1K, 2K,

    4K. If not specified, the model will use default value 1K.

class: This will be removed in a future release, please migrate away from it as soon as possible.