You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class provides methods for generating images using the Imagen model.
18
+
This class provides methods for generating images using the Imagen model. See the documentation for a list of [supported models](https://firebase.google.com/docs/ai-logic/models)<!---->.
19
19
20
20
<b>Signature:</b>
21
21
@@ -144,7 +144,7 @@ If the request to generate images fails. This happens if the prompt is blocked.
| [model](./ai.imagenmodelparams.md#imagenmodelparamsmodel) | string | <b><i>(PublicPreview)</i></b> TheImagenmodeltouseforgeneratingimages.Forexample: <code>imagen-3.0-generate-002</code>.<!-- -->OnlyImagen 3 models (named <code>imagen-3.0-*</code>) aresupported.<!-- -->See [modelversions](https://firebase.google.com/docs/vertex-ai/models) for a full list of supported Imagen 3 models. |
29
+
| [model](./ai.imagenmodelparams.md#imagenmodelparamsmodel) | string | <b><i>(PublicPreview)</i></b> TheImagenmodeltouseforgeneratingimages.<!-- -->Seethedocumentationforalistof [supportedmodels](https://firebase.google.com/docs/ai-logic/models)<!-- -->.<!-- -->See [model versions](https://firebase.google.com/docs/vertex-ai/models) for a full list of supported Imagen 3 models. |
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ The Firebase AI Web SDK.
20
20
|[getAI(app, options)](./ai.md#getai_a94a413)| Returns the default [AI](./ai.ai.md#ai_interface) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with the default settings. |
21
21
| <b>function(ai, ...)</b> |
22
22
|[getGenerativeModel(ai, modelParams, requestOptions)](./ai.md#getgenerativemodel_c63f46a)| Returns a [GenerativeModel](./ai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
23
-
|[getImagenModel(ai, modelParams, requestOptions)](./ai.md#getimagenmodel_e1f6645)| <b><i>(Public Preview)</i></b> Returns an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class) class with methods for using Imagen.<!---->Only Imagen 3 models (named <code>imagen-3.0-*</code>) are supported. |
23
+
|[getImagenModel(ai, modelParams, requestOptions)](./ai.md#getimagenmodel_e1f6645)| <b><i>(Public Preview)</i></b> Returns an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class) class with methods for using Imagen.<!---->See the documentation for a list of [supported models](https://firebase.google.com/docs/ai-logic/models)<!---->. |
24
24
25
25
## Classes
26
26
@@ -36,7 +36,7 @@ The Firebase AI Web SDK.
36
36
|[GenerativeModel](./ai.generativemodel.md#generativemodel_class)| Class for generative model APIs. |
37
37
|[GoogleAIBackend](./ai.googleaibackend.md#googleaibackend_class)| Configuration class for the Gemini Developer API.<!---->Use this with [AIOptions](./ai.aioptions.md#aioptions_interface) when initializing the AI service via [getAI()](./ai.md#getai_a94a413) to specify the Gemini Developer API as the backend. |
38
38
|[ImagenImageFormat](./ai.imagenimageformat.md#imagenimageformat_class)| <b><i>(Public Preview)</i></b> Defines the image format for images generated by Imagen.<!---->Use this class to specify the desired format (JPEG or PNG) and compression quality for images generated by Imagen. This is typically included as part of [ImagenModelParams](./ai.imagenmodelparams.md#imagenmodelparams_interface)<!---->. |
39
-
|[ImagenModel](./ai.imagenmodel.md#imagenmodel_class)| <b><i>(Public Preview)</i></b> Class for Imagen model APIs.<!---->This class provides methods for generating images using the Imagen model. |
39
+
|[ImagenModel](./ai.imagenmodel.md#imagenmodel_class)| <b><i>(Public Preview)</i></b> Class for Imagen model APIs.<!---->This class provides methods for generating images using the Imagen model. See the documentation for a list of [supported models](https://firebase.google.com/docs/ai-logic/models)<!---->. |
40
40
|[IntegerSchema](./ai.integerschema.md#integerschema_class)| Schema class for "integer" types. |
41
41
|[NumberSchema](./ai.numberschema.md#numberschema_class)| Schema class for "number" types. |
42
42
|[ObjectSchema](./ai.objectschema.md#objectschema_class)| Schema class for "object" types. The <code>properties</code> param must be a map of <code>Schema</code> objects. |
@@ -254,7 +254,7 @@ export declare function getGenerativeModel(ai: AI, modelParams: ModelParams | Hy
254
254
255
255
Returns an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class) class with methods for using Imagen.
256
256
257
-
Only Imagen 3 models (named `imagen-3.0-*`<!---->) are supported.
257
+
See the documentation for a list of [supported models](https://firebase.google.com/docs/ai-logic/models)<!---->.
0 commit comments