ImagenStyleReference

@PublicPreviewAPI
class ImagenStyleReference : ImagenReferenceImage


A reference image for style transfer

Deprecation Notice: All Imagen models are deprecated and will shut down as early as June 2026. As a replacement, you can migrate your apps to use Gemini Image models (the 'Nano Banana' models)

Summary

Public constructors

ImagenStyleReference(
    image: ImagenInlineImage,
    referenceId: Int?,
    description: String?
)

Public constructors

ImagenStyleReference

ImagenStyleReference(
    image: ImagenInlineImage,
    referenceId: Int? = null,
    description: String? = null
)
Parameters
image: ImagenInlineImage

the image representing the style you want to transfer to your original images

referenceId: Int? = null

the reference ID you can use to reference this style in your prompt

description: String? = null

the description you can use to reference this style in your prompt