This quick start generates an image after submission and attaches it to the saved entry.
1. Prepare The Form #
Add:
- One or more fields that describe the desired image, such as Subject, Style, and Colors.
- A File Upload field named Generated Image. Leave it optional.
Save the form. The File Upload field must not be required for a post-submission image feed.
2. Create The Feed #
- Open Form Settings -> AI Image.
- Select Add New.
- Name the feed, for example
Create campaign image. - Choose a listed OpenAI image model.
- Choose After form submission.
- Write an image Prompt and insert the form fields with the merge-tag button. Include the intended subject, composition, style, colors, and anything the image must avoid.
- Choose Generated Image as the Target File Upload Field.
- Start with 1024 x 1024, Automatic quality, and PNG.
- Save the feed.
3. Test It #
Submit a test entry. Image generation can take longer than text generation. Open the entry when the request completes and confirm that the generated file is attached to Generated Image.
If the feed fails, review the entry notes and the image troubleshooting guide. Common causes are an untested OpenAI key, insufficient provider credit, an incompatible custom model, a required target upload field, or provider safety rejection.
Frontend Preview Instead #
Premium and Agency plans can let a visitor generate the image before submission. Change the trigger to Frontend button, add an image button shortcode and image preview shortcode near the form, and keep the target File Upload field in the form. The temporary image is verified and attached through Gravity Forms when the form is submitted.