Image Generation as an Application Feature
Image generation may be provided by a dedicated image model or a multimodal model that returns image files. Model capabilities, output formats, editing support, and policy rules vary. Design a job abstraction that records prompt, model, parameters, input asset references, status, output locations, and moderation outcome.
Do not assume an image URL remains available indefinitely. Store generated assets in controlled object storage if your product needs persistence, apply access controls, and define retention. Handle rejected requests and partial failures gracefully, and tell users when outputs are generated rather than verified facts.
{
"jobId": "imgjob_123",
"status": "queued",
"model": "configured-image-model",
"promptVersion": "thumbnail-v2",
"inputAssetIds": [],
"outputAssetIds": [],
"createdAt": "2026-10-28T00:00:00Z"
}- Use durable job records for asynchronous generation.
- Manage output assets and permissions explicitly.
- Apply content policy and provenance appropriate to your product.
Why should generated images be stored in your own controlled asset storage when persistence is required?