struct

AI::Provider::ImageModel::Result

Inherits JSON::Serializable < Struct < Value < Object

The result of an image model doGenerate call.

Constructors

new(images : Array(ImageData), warnings : Array(Shared::Warning), response : ResultResponse, provider_metadata : ProviderMetadata | Nil = nil, usage : Usage | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

images

Generated images as base64 encoded strings or binary data.

Source
provider_metadata

Additional provider-specific metadata.

Source
response

Response information for telemetry and debugging.

Source
usage

Optional token usage for the image generation call.

Source
warnings

Warnings for the call, e.g. unsupported features.

Source