<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
openbackend / laravel-ai-image-generator example snippets
use OpenBackend\AiImageGenerator\Facades\AIImageGenerator;
// Generate an image with default settings
$generation = AIImageGenerator::generate('A beautiful sunset over mountains');
echo $generation->url; // URL to the generated image
echo $generation->file_path; // Local file path (if auto-download enabled)