ArchAstro.Types.Operations.PostApiV1AiImageGenerations.Input (archastro v0.2.0)

Copy Markdown

Generate an image from a text prompt

Summary

Types

t()

@type t() :: %ArchAstro.Types.Operations.PostApiV1AiImageGenerations.Input{
  aspect_ratio: String.t() | ArchAstro.Unset.t(),
  background: String.t() | ArchAstro.Unset.t(),
  height: integer() | ArchAstro.Unset.t(),
  image_size: String.t() | ArchAstro.Unset.t(),
  model: String.t() | ArchAstro.Unset.t(),
  n: integer() | ArchAstro.Unset.t(),
  output_format: String.t() | ArchAstro.Unset.t(),
  prompt: String.t(),
  quality: String.t() | ArchAstro.Unset.t(),
  size: String.t() | ArchAstro.Unset.t(),
  style: String.t() | ArchAstro.Unset.t(),
  width: integer() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()