Text-to-image & image-to-image
Prompt a FLUX model on fal.ai, or start from an existing image when image-to-image is enabled.
A complete image generator: a composer, FLUX models on fal.ai, a credit debited per render and refunded if it fails, and every image stored in your own private Cloudflare R2 bucket — browsed in a gallery with folders, likes and remix.
SITE_PROFILE="image-studio"one line picks this site typePrompt a FLUX model on fal.ai, or start from an existing image when image-to-image is enabled.
Each model and size has a credit cost. The debit is recorded with the generation, and a failed render is refunded automatically.
Finished images are copied to Cloudflare R2 and shown through short-lived signed URLs — the bucket never goes public.
Folders, likes, remix from any prompt, bulk download and a lightbox with the full prompt and settings.
Webhook and polling both finish a job idempotently, and a reconcile script catches anything stuck.
Explore every screen without provider keys using the local generation mock.
The user picks a model and size; the credit cost is shown before they press Generate.
Credits are debited with the generation row, then the job goes to fal.ai.
The result is copied into your R2 bucket and the job completes once.
The image appears in the gallery; a failed job refunds its credits.
Screenshots of the template running locally with sample data, on the house design. Switch SITE_DESIGN and the public pages wear any of the other designs.
SITE_PROFILE="image-studio" FAL_KEY="…" R2_ACCOUNT_ID="…" R2_BUCKET="your-images" R2_ACCESS_KEY_ID="…"
Copy the folder and run the installer — it creates the database and secrets.
php scripts/install.phpIt checks every key, extension and permission and names anything missing.
php scripts/doctor.phpNGINX + PHP on any small VPS, with the step-by-step deploy guide and nightly backups.
The studio calls FLUX models on fal.ai. Models, sizes and their credit costs are configured in app/image_gen.php, so you choose what to sell and at what price.
In your own Cloudflare R2 bucket, kept private. The app shows them through short-lived signed URLs.
You pay fal.ai per generation and R2 for storage, plus payment fees. Price your credits above those costs; the template doesn't add any fee.
Full source, every site type, the admin, the CMS, 43 designs and the deploy guides — £49, once. Unlimited own and client projects.