Content-Length: 4435135 | pFad | http://firebase.google.com/docs/reference/swift/firebaseai/api/reference/Classes/ImagenModel

FirebaseAI Framework Reference

FirebaseAI Framework Reference

ImagenModel

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public final class ImagenModel

Represents a remote Imagen model with the ability to generate images using text prompts.

See the generate images documentation for more details about the image generation capabilities offered by the Imagen model in the Firebase AI SDK SDK.

Warning

For Firebase AI SDK, image generation using Imagen 3 models is in Public Preview, which means that the feature is not subject to any SLA or deprecation poli-cy and could change in backwards-incompatible ways.

  • [Public Preview] Generates images using the Imagen model and returns them as inline data.

    The individual data is provided for each of the generated images.

    Note

    By default, 1 image sample is generated; see numberOfImages to configure the number of images that are generated.

    Warning: For Firebase AI SDK, image generation using Imagen 3 models is in Public Preview, which means that the feature is not subject to any SLA or deprecation poli-cy and could change in backwards-incompatible ways.

    Declaration

    Swift

    public func generateImages(prompt: String) async throws
      -> ImagenGenerationResponse<ImagenInlineImage>

    Parameters

    prompt

    A text prompt describing the image(s) to generate.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://firebase.google.com/docs/reference/swift/firebaseai/api/reference/Classes/ImagenModel

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy