ArchAstro. SDK. Types. AIImageResult
(archastro v0.3.3)
Copy Markdown
The result returned by an AI image generation or editing operation. Contains the generated image (as inline data or a URL) along with dimension, size, and usage metadata.
Summary
Types
@type t() :: %ArchAstro.SDK.Types.AIImageResult{ aspect_ratio: String.t() | ArchAstro.SDK.Unset.t(), height: integer() | ArchAstro.SDK.Unset.t(), image_data: String.t() | ArchAstro.SDK.Unset.t(), image_size: String.t() | ArchAstro.SDK.Unset.t(), image_type: String.t() | ArchAstro.SDK.Unset.t(), image_url: String.t() | ArchAstro.SDK.Unset.t(), model: String.t(), revised_prompt: String.t() | ArchAstro.SDK.Unset.t(), size: String.t() | ArchAstro.SDK.Unset.t(), usage: %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(), width: integer() | ArchAstro.SDK.Unset.t() }
Functions
@spec from_map(ArchAstro.SDK.JSON.object()) :: t()
@spec matches?(ArchAstro.SDK.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.SDK.JSON.object()