Firebase. AI. ImagenModel
Represents a remote Imagen model with the ability to generate images using text prompts.
Summary
See the generate images documentation for more details about the image generation capabilities offered by the Imagen model in the FirebaseAI SDK SDK.
Public functions |
|
|---|---|
GenerateImagesAsync(string prompt, CancellationToken cancellationToken)
|
Task< ImagenGenerationResponse< ImagenInlineImage > >
Generates images using the Imagen model and returns them as inline data.
|
Public functions
GenerateImagesAsync
Task< ImagenGenerationResponse< ImagenInlineImage > > GenerateImagesAsync( string prompt, CancellationToken cancellationToken )
Generates images using the Imagen model and returns them as inline data.
Warning: For FirebaseAI SDK, image generation using Imagen 3 models is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
| Exceptions |
|
||||
| Returns |
The generated content response from the model.
|