PromptBuilder::generateImage(): WordPressAiClientFilesDTOFile

In this article

Generates an image from the prompt.

Return

WordPressAiClientFilesDTOFile The generated image file.

Source

public function generateImage(): File
{
    return $this->generateImageResult()->toFile();
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.