ImagenControlReference

@PublicPreviewAPI
class ImagenControlReference : ImagenReferenceImage


Represents a reference image (provided or generated) to bound the created image via controlled generation.

Summary

Public constructors

ImagenControlReference(
    type: ImagenControlType,
    image: ImagenInlineImage?,
    referenceId: Int?,
    enableComputation: Boolean?,
    superpixelRegionSize: Int?,
    superpixelRuler: Int?
)

Public constructors

ImagenControlReference

ImagenControlReference(
    type: ImagenControlType,
    image: ImagenInlineImage? = null,
    referenceId: Int? = null,
    enableComputation: Boolean? = null,
    superpixelRegionSize: Int? = null,
    superpixelRuler: Int? = null
)
Parameters
type: ImagenControlType

the type of control reference image

image: ImagenInlineImage? = null

the image provided, required if enableComputation is false

referenceId: Int? = null

the reference ID for this image, to be referenced in the prompt

enableComputation: Boolean? = null

requests that the reference image be generated serverside instead of provided

superpixelRegionSize: Int? = null

if type is ImagenControlType.COLOR_SUPERPIXEL and enableComputation is true, this will control the size of each superpixel region in pixels for the generated referenced image

superpixelRuler: Int? = null

if type is ImagenControlType.COLOR_SUPERPIXEL and enableComputation is true, this will control the superpixel smoothness factor for the generated referenced image