% tinyrox says don't edit this manually, but it can't stop you!
\name{txt2img}
\alias{txt2img}
\title{Generate an image from a text prompt using a diffusion pipeline}
\usage{
txt2img(prompt, model_name = c("sd21", "sdxl", "flux1", "flux2", "zimage"), ...)
}
\arguments{
\item{prompt}{A character string prompt describing the image to generate.}

\item{model_name}{Name of the model to use (e.g., `"sd21"`).}

\item{...}{Additional parameters passed to the diffusion process.}
}
\value{
A tensor or image object, depending on implementation.
}
\description{
Generate an image from a text prompt using a diffusion pipeline
}
\examples{
\dontrun{
img <- txt2img("a cat wearing sunglasses in space", device = "cuda")
}
}
