Image generation is a single server function call. Send a text prompt, get back an image, save it to storage, reference it like any other asset. Great for user avatars, product mockups, and hero art you don't want to pay a stock photo license for.
/Patterns that work
- 01On-demand: User clicks a button, waits a few seconds, sees their image.
- 02Cached to storage: Generate once, save to a bucket, serve forever from the CDN.
- 03Batch generate: Fill an empty product catalog with placeholder art in one background job.
Be specific
Image models reward detailed prompts. "A minimalist illustration of a coffee cup on a desk, warm morning light, flat colors" beats "nice coffee image" every time.