ImagenStyleReference
@PublicPreviewAPI
public final class ImagenStyleReference extends ImagenReferenceImage
| java.lang.Object | ||
| ↳ | com.google.firebase.ai.type.ImagenReferenceImage | |
| ↳ | com.google.firebase.ai.type.ImagenStyleReference |
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( |
Inherited fields |
||||
|---|---|---|---|---|
|
Public constructors
ImagenStyleReference
public ImagenStyleReference(
@NonNull ImagenInlineImage image,
Integer referenceId,
String description
)
| Parameters | |
|---|---|
@NonNull ImagenInlineImage 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 |