FirebaseVertexAI Framework Reference

ImagenGenerationResponse

@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
public struct ImagenGenerationResponse<T>
extension ImagenGenerationResponse: Decodable where T: Decodable

A response from a request to generate images with Imagen.

The type placeholder T is an image type; this is currently always an ImagenInlineImage.

This type is returned from:

  • Declaration

    Swift

    public init(from decoder: any Decoder) throws