ImagenStyleReference

@PublicPreviewAPI
public final classImagenStyleReference extendsImagenReferenceImage


A reference image for style transfer

Summary

Public constructors

ImagenStyleReference(
    @NonNullImagenInlineImage image,
    Integer referenceId,
    String description
)

Public constructors

ImagenStyleReference

public ImagenStyleReference(
    @NonNullImagenInlineImage image,
    Integer referenceId,
    String description
)
Parameters
@NonNullImagenInlineImage image

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

Integer referenceId

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

String description

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-08 UTC.