AI-Image
view release on metacpan or search on metacpan
lib/AI/Image.pm view on Meta::CPAN
The language model to use (default: 'dall-e-2').
See L<https://platform.openai.com/docs/models/overview>
=item size
The size for the generated image (default: '512x512').
=item debug
Used for testing. If set to any true value, the image method
will return details of the error encountered instead of C<undef>
=back
=head2 image
my $url = $ai->image($prompt);
Generates an image based on the provided prompt and returns the URL of the generated image. The URL is valid for 1 hour.
( run in 1.433 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )