Skip to content

Commit ebfa5e4

Browse files
authored
add imagen deprecaton notice (#7988)
## Summary This PR marks all classes and public methods starting with `Imagen` as deprecated in the `ai-logic/firebase-ai` module. This is in preparation for the planned shutdown of Imagen models in June 2026. Developers are encouraged to migrate to Gemini Image models. ## Changes Made ### 1. Class-Level Deprecation Added standard deprecation notices to the KDoc of all identified `Imagen*` classes and interfaces. The notice reads: > `@deprecated **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)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)` Updated files: - `ImagenModel.kt` - `ImagenEditMode.kt` - `ImagenEditingConfig.kt` - `ImagenImagePlacement.kt` - `ImagenPersonFilterLevel.kt` - `ImagenMaskMode.kt` - `ImagenReferenceImage.kt` - `ImagenMaskConfig.kt` - `ImagenGCSImage.kt` - `ImagenSubjectConfig.kt` - `ImagenGenerationResponse.kt` - `ImagenSubjectReferenceType.kt` - `ImagenControlType.kt` - `ImagenInlineImage.kt` - `ImagenAspectRatio.kt` - `ImagenImageFormat.kt` - `ImagenGenerationConfig.kt` - `ImagenSafetyFilterLevel.kt` - `ImagenStyleConfig.kt` - `ImagenSafetySettings.kt` - `ImagenControlConfig.kt` - `ImagenModelFutures.kt` - `Request.kt` (Internal request classes `ImagenPrompt` and `ImagenParameters`) ### 2. Method-Level Deprecation Added the notice to public methods and helper functions within those files to ensure developers are notified when using specific features: - `ImagenInlineImage.kt` (`asBitmap`, `toImagenInlineImage`) - `ImagenImagePlacement.kt` (`fromCoordinate`) - `ImagenModelFutures.kt` (`generateImages`, `editImage`, `inpaintImage`, `outpaintImage`, `getImageModel`, `from`) - `ImagenImageFormat.kt` (`jpeg`, `png`) - `ImagenGenerationConfig.kt` (`Builder` setters, `build`, `imagenGenerationConfig`) - `ImagenReferenceImage.kt` (`generateMaskAndPadForOutpainting`) ### 3. Verification - Code formatted successfully with `./gradlew :ai-logic:firebase-ai:spotlessApply`.
1 parent b77cdc3 commit ebfa5e4

17 files changed

Lines changed: 307 additions & 18 deletions

ai-logic/firebase-ai/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Unreleased
22

3+
- [deprecated] All Imagen models are deprecated and will shut down as early as June 2026.
4+
As a replacement, you can [migrate your apps to use Gemini Image models (the "Nano Banana" models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration).
35
- [feature] Added support for Chat interactions using server prompt templates (#7986)
46
- [fixed] Fixed an issue causing network timeouts to throw the incorrect exception type, instead of
57
`RequestTimeoutException` (#7966)
6-
- [fixed] Fixed missing `toString()` implemenation for `InferenceSource` (#7970)
8+
- [fixed] Fixed missing `toString()` implementation for `InferenceSource` (#7970)
79
- [fixed] Fixed an issue causing the SDK to throw an exception if an unknown message was received
810
from the LiveAPI model, instead of ignoring it (#7975)
911

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/ImagenModel.kt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ import com.google.firebase.auth.internal.InternalAuthProvider
4444
*
4545
* See the documentation for a list of
4646
* [supported models](https://firebase.google.com/docs/ai-logic/models).
47+
*
48+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
49+
* as June 2026. As a replacement, you can
50+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
4751
*/
52+
@Deprecated("All Imagen models are deprecated.")
4853
public class ImagenModel
4954
internal constructor(
5055
private val modelName: String,
@@ -86,7 +91,12 @@ internal constructor(
8691
* Generates an image, returning the result directly to the caller.
8792
*
8893
* @param prompt The input(s) given to the model as a prompt.
94+
*
95+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
96+
* early as June 2026. As a replacement, you can
97+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
8998
*/
99+
@Deprecated("All Imagen models are deprecated.")
90100
public suspend fun generateImages(prompt: String): ImagenGenerationResponse<ImagenInlineImage> =
91101
try {
92102
controller
@@ -104,7 +114,12 @@ internal constructor(
104114
* @param referenceImages the image inputs given to the model as a prompt
105115
* @param prompt the text input given to the model as a prompt
106116
* @param config the editing configuration settings
117+
*
118+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
119+
* early as June 2026. As a replacement, you can
120+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
107121
*/
122+
@Deprecated("All Imagen models are deprecated.")
108123
@PublicPreviewAPI
109124
public suspend fun editImage(
110125
referenceImages: List<ImagenReferenceImage>,
@@ -129,7 +144,12 @@ internal constructor(
129144
* @param prompt the text input given to the model as a prompt
130145
* @param mask the mask which defines where in the image can be painted by Imagen.
131146
* @param config the editing configuration settings, it should include an [ImagenEditMode]
147+
*
148+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
149+
* early as June 2026. As a replacement, you can
150+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
132151
*/
152+
@Deprecated("All Imagen models are deprecated.")
133153
@PublicPreviewAPI
134154
public suspend fun inpaintImage(
135155
image: ImagenInlineImage,
@@ -154,7 +174,12 @@ internal constructor(
154174
* insufficient
155175
* @param config the editing configuration settings
156176
* @see [ImagenMaskReference.generateMaskAndPadForOutpainting]
177+
*
178+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
179+
* early as June 2026. As a replacement, you can
180+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
157181
*/
182+
@Deprecated("All Imagen models are deprecated.")
158183
@PublicPreviewAPI
159184
public suspend fun outpaintImage(
160185
image: ImagenInlineImage,

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/java/ImagenModelFutures.kt

Lines changed: 48 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,24 @@ import com.google.firebase.ai.type.PublicPreviewAPI
3333
* Wrapper class providing Java compatible methods for [ImagenModel].
3434
*
3535
* @see [ImagenModel]
36+
*
37+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
38+
* as June 2026. As a replacement, you can
39+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
3640
*/
41+
@Deprecated("All Imagen models are deprecated.")
3742
@PublicPreviewAPI
3843
public abstract class ImagenModelFutures internal constructor() {
3944
/**
4045
* Generates an image, returning the result directly to the caller.
4146
*
4247
* @param prompt The main text prompt from which the image is generated.
48+
*
49+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
50+
* early as June 2026. As a replacement, you can
51+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
4352
*/
53+
@Deprecated("All Imagen models are deprecated.")
4454
public abstract fun generateImages(
4555
prompt: String,
4656
): ListenableFuture<ImagenGenerationResponse<ImagenInlineImage>>
@@ -52,7 +62,12 @@ public abstract class ImagenModelFutures internal constructor() {
5262
* @param prompt the text input given to the model as a prompt
5363
* @param referenceImages the image inputs given to the model as a prompt
5464
* @param config the editing configuration settings
65+
*
66+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
67+
* early as June 2026. As a replacement, you can
68+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
5569
*/
70+
@Deprecated("All Imagen models are deprecated.")
5671
public abstract fun editImage(
5772
referenceImages: List<ImagenReferenceImage>,
5873
prompt: String,
@@ -65,7 +80,12 @@ public abstract class ImagenModelFutures internal constructor() {
6580
*
6681
* @param prompt the text input given to the model as a prompt
6782
* @param referenceImages the image inputs given to the model as a prompt
83+
*
84+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
85+
* early as June 2026. As a replacement, you can
86+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
6887
*/
88+
@Deprecated("All Imagen models are deprecated.")
6989
public abstract fun editImage(
7090
referenceImages: List<ImagenReferenceImage>,
7191
prompt: String,
@@ -78,7 +98,12 @@ public abstract class ImagenModelFutures internal constructor() {
7898
* @param prompt the text input given to the model as a prompt
7999
* @param mask the mask which defines where in the image can be painted by imagen.
80100
* @param config the editing configuration settings, it should include an [ImagenEditMode]
101+
*
102+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
103+
* early as June 2026. As a replacement, you can
104+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
81105
*/
106+
@Deprecated("All Imagen models are deprecated.")
82107
public abstract fun inpaintImage(
83108
image: ImagenInlineImage,
84109
prompt: String,
@@ -99,7 +124,12 @@ public abstract class ImagenModelFutures internal constructor() {
99124
* insufficient
100125
* @param config the editing configuration settings
101126
* @see [ImagenMaskReference.generateMaskAndPadForOutpainting]
127+
*
128+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
129+
* early as June 2026. As a replacement, you can
130+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
102131
*/
132+
@Deprecated("All Imagen models are deprecated.")
103133
public abstract fun outpaintImage(
104134
image: ImagenInlineImage,
105135
newDimensions: Dimensions,
@@ -108,8 +138,14 @@ public abstract class ImagenModelFutures internal constructor() {
108138
config: ImagenEditingConfig? = null,
109139
): ListenableFuture<ImagenGenerationResponse<ImagenInlineImage>>
110140

111-
/** Returns the [ImagenModel] object wrapped by this object. */
112-
public abstract fun getImageModel(): ImagenModel
141+
/**
142+
* Returns the [ImagenModel] object wrapped by this object.
143+
*
144+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
145+
* early as June 2026. As a replacement, you can
146+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
147+
*/
148+
@Deprecated("All Imagen models are deprecated.") public abstract fun getImageModel(): ImagenModel
113149

114150
private class FuturesImpl(private val model: ImagenModel) : ImagenModelFutures() {
115151
override fun generateImages(
@@ -154,7 +190,15 @@ public abstract class ImagenModelFutures internal constructor() {
154190

155191
public companion object {
156192

157-
/** @return a [ImagenModelFutures] created around the provided [ImagenModel] */
158-
@JvmStatic public fun from(model: ImagenModel): ImagenModelFutures = FuturesImpl(model)
193+
/**
194+
* @return a [ImagenModelFutures] created around the provided [ImagenModel]
195+
*
196+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
197+
* early as June 2026. As a replacement, you can
198+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
199+
*/
200+
@Deprecated("All Imagen models are deprecated.")
201+
@JvmStatic
202+
public fun from(model: ImagenModel): ImagenModelFutures = FuturesImpl(model)
159203
}
160204
}

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenAspectRatio.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616

1717
package com.google.firebase.ai.type
1818

19-
/** Represents the aspect ratio that the generated image should conform to. */
19+
/**
20+
* Represents the aspect ratio that the generated image should conform to.
21+
*
22+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
23+
* as June 2026. As a replacement, you can
24+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
25+
*/
26+
@Deprecated("All Imagen models are deprecated.")
2027
public class ImagenAspectRatio private constructor(internal val internalVal: String) {
2128
public companion object {
2229
/** A square image, useful for icons, profile pictures, etc. */

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenControlType.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515
*/
1616
package com.google.firebase.ai.type
1717

18-
/** Represents a control type for controlled Imagen generation/editing */
18+
/**
19+
* Represents a control type for controlled Imagen generation/editing
20+
*
21+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
22+
* as June 2026. As a replacement, you can
23+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
24+
*/
25+
@Deprecated("All Imagen models are deprecated.")
1926
public class ImagenControlType internal constructor(internal val value: String) {
2027
public companion object {
2128

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenEditMode.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515
*/
1616
package com.google.firebase.ai.type
1717

18-
/** Represents the edit mode for Imagen */
18+
/**
19+
* Represents the edit mode for Imagen
20+
*
21+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
22+
* as June 2026. As a replacement, you can
23+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
24+
*/
25+
@Deprecated("All Imagen models are deprecated.")
1926
public class ImagenEditMode private constructor(internal val value: String) {
2027

2128
public companion object {

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenEditingConfig.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ import kotlinx.serialization.Serializable
2121
* Contains the editing settings which are not specific to a reference image
2222
* @param editMode holds the editing mode if the request is for inpainting or outpainting
2323
* @param editSteps the number of intermediate steps to include in the editing process
24+
*
25+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
26+
* as June 2026. As a replacement, you can
27+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
2428
*/
29+
@Deprecated("All Imagen models are deprecated.")
2530
@PublicPreviewAPI
2631
public class ImagenEditingConfig(
2732
internal val editMode: ImagenEditMode? = null,

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenGenerationConfig.kt

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ package com.google.firebase.ai.type
2525
* @param aspectRatio The aspect ratio of the generated images.
2626
* @param imageFormat The file format/compression of the generated images.
2727
* @param addWatermark Adds an invisible watermark to mark the image as AI generated.
28+
*
29+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
30+
* as June 2026. As a replacement, you can
31+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
2832
*/
2933
import kotlin.jvm.JvmField
3034

35+
@Deprecated("All Imagen models are deprecated.")
3136
public class ImagenGenerationConfig(
3237
public val negativePrompt: String? = null,
3338
public val numberOfImages: Int? = 1,
@@ -40,35 +45,75 @@ public class ImagenGenerationConfig(
4045
*
4146
* This is mainly intended for Java interop. For Kotlin, use [imagenGenerationConfig] for a more
4247
* idiomatic experience.
48+
*
49+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
50+
* early as June 2026. As a replacement, you can
51+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
4352
*/
53+
@Deprecated("All Imagen models are deprecated.")
4454
public class Builder {
4555
@JvmField public var negativePrompt: String? = null
4656
@JvmField public var numberOfImages: Int? = 1
4757
@JvmField public var aspectRatio: ImagenAspectRatio? = null
4858
@JvmField public var imageFormat: ImagenImageFormat? = null
4959
@JvmField public var addWatermark: Boolean? = null
5060

51-
/** See [ImagenGenerationConfig.negativePrompt]. */
61+
/**
62+
* See [ImagenGenerationConfig.negativePrompt].
63+
*
64+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
65+
* early as June 2026. As a replacement, you can
66+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
67+
*/
68+
@Deprecated("All Imagen models are deprecated.")
5269
public fun setNegativePrompt(negativePrompt: String): Builder = apply {
5370
this.negativePrompt = negativePrompt
5471
}
5572

56-
/** See [ImagenGenerationConfig.numberOfImages]. */
73+
/**
74+
* See [ImagenGenerationConfig.numberOfImages].
75+
*
76+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
77+
* early as June 2026. As a replacement, you can
78+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
79+
*/
80+
@Deprecated("All Imagen models are deprecated.")
5781
public fun setNumberOfImages(numberOfImages: Int): Builder = apply {
5882
this.numberOfImages = numberOfImages
5983
}
6084

61-
/** See [ImagenGenerationConfig.aspectRatio]. */
85+
/**
86+
* See [ImagenGenerationConfig.aspectRatio].
87+
*
88+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
89+
* early as June 2026. As a replacement, you can
90+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
91+
*/
92+
@Deprecated("All Imagen models are deprecated.")
6293
public fun setAspectRatio(aspectRatio: ImagenAspectRatio): Builder = apply {
6394
this.aspectRatio = aspectRatio
6495
}
6596

66-
/** See [ImagenGenerationConfig.imageFormat]. */
97+
/**
98+
* See [ImagenGenerationConfig.imageFormat].
99+
*
100+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
101+
* early as June 2026. As a replacement, you can
102+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
103+
*/
104+
@Deprecated("All Imagen models are deprecated.")
67105
public fun setImageFormat(imageFormat: ImagenImageFormat): Builder = apply {
68106
this.imageFormat = imageFormat
69107
}
70108

71-
/** See [ImagenGenerationConfig.addWatermark]. */
109+
/**
110+
* See [ImagenGenerationConfig.addWatermark].
111+
*
112+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
113+
* early as June 2026. As a replacement, you can
114+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
115+
*/
116+
@Deprecated("All Imagen models are deprecated.")
72117
public fun setAddWatermark(addWatermark: Boolean): Builder = apply {
73118
this.addWatermark = addWatermark
74119
}
@@ -78,7 +123,12 @@ public class ImagenGenerationConfig(
78123
* ```
79124
* val config = GenerationConfig.builder()
80125
* ```
126+
*
127+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as
128+
* early as June 2026. As a replacement, you can
129+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
81130
*/
131+
@Deprecated("All Imagen models are deprecated.")
82132
public fun build(): ImagenGenerationConfig =
83133
ImagenGenerationConfig(
84134
negativePrompt = negativePrompt,
@@ -107,7 +157,12 @@ public class ImagenGenerationConfig(
107157
* addWatermark = false
108158
* }
109159
* ```
160+
*
161+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
162+
* as June 2026. As a replacement, you can
163+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
110164
*/
165+
@Deprecated("All Imagen models are deprecated.")
111166
public fun imagenGenerationConfig(
112167
init: ImagenGenerationConfig.Builder.() -> Unit
113168
): ImagenGenerationConfig {

ai-logic/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenGenerationResponse.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ import kotlinx.serialization.Serializable
2626
* @param images contains the generated images
2727
* @param filteredReason if fewer images were generated than were requested, this field will contain
2828
* the reason they were filtered out.
29+
*
30+
* @deprecated **Deprecation Notice:** All Imagen models are deprecated and will shut down as early
31+
* as June 2026. As a replacement, you can
32+
* [migrate your apps to use Gemini Image models (the 'Nano Banana' models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration)
2933
*/
34+
@Deprecated("All Imagen models are deprecated.")
3035
public class ImagenGenerationResponse<T>
3136
internal constructor(public val images: List<T>, public val filteredReason: String?) {
3237

0 commit comments

Comments
 (0)