Download the PHP package azlanali076/image-generator without Composer
On this page you can find all versions of the php package azlanali076/image-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download azlanali076/image-generator
More information about azlanali076/image-generator
Files in azlanali076/image-generator
Download azlanali076/image-generator
More information about azlanali076/image-generator
Files in azlanali076/image-generator
Vendor azlanali076
Package image-generator
Short Description A Laravel package for generating images using the OpenAI API. This package provides an easy-to-use interface for interacting with the OpenAI API to generate images based on text prompts.
License MIT
Package image-generator
Short Description A Laravel package for generating images using the OpenAI API. This package provides an easy-to-use interface for interacting with the OpenAI API to generate images based on text prompts.
License MIT
Please rate this library. Is it a good library?
Informations about the package image-generator
Laravel Image Generator Package
A Laravel package for generating images using the OpenAI API. This package provides an easy-to-use interface for interacting with the OpenAI API to generate images based on text prompts.
Installation
You can install the package via Composer:
Configuration
1. Publish the Configuration File
Publish the configuration file to your application's config directory:
2. Set Up Your API Key
Make sure to add your API key to your .env file:
Usage
You can use the package by calling the generate method on the facade ImageGenerator.
Constants
ImageGenerator::QUALITY_STANDARDConstant for thestandardimage quality.ImageGenerator::QUALITY_HDConstant for thehdimage quality.ImageGenerator::STYLE_NATURALConstant for thenaturalimage style.ImageGenerator::STYLE_VIVIDConstant for thevividimage style.ImageGenerator::RESPONSE_FORMAT_URLConstant for theurlresponse format.ImageGenerator::RESPONSE_FORMAT_BASE64Constant for theb64_json(base 64) response format.Parameters
string $promptThe text prompt for generating the image.int|null $widthThe width of the generated image (default is 1024 if null).int|null $heightThe height of the generated image (default is 1024 if null).string|null $qualityThe quality of the image (default is 'standard').string|null $styleThe style of the image (default is 'vivid').string|null $responseFormatThe format of the response (default is 'url').Response Format
successA boolean indicating whether the request was successful.dataThe data returned from the API (includes the image URL if successful).messageAn error message if the request was not successful.codeAn error code if the request was not successful.
All versions of image-generator with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0|^8.1
illuminate/support Version ^10.48
guzzlehttp/guzzle Version ^7.9
illuminate/support Version ^10.48
guzzlehttp/guzzle Version ^7.9
The package azlanali076/image-generator contains the following files
Loading the files please wait ...