FirebaseAILogic Framework Reference

ImagenGenerationResponse

public struct ImagenGenerationResponse<T> : Sendable where T : Sendable
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