BuilderPackInstall in HubSpot

Generate Image

Generate
Create an image from a written description.

What you give it

promptrequired

Describe the image you want, in as much detail as you can.

For example A serene mountain lake at sunset

modelrequired

One ofGPT Image 1DALL-E 3Playground v3flux-kontext-proflux-kontext-maxflux-1.1-proIdeogramRecraft

model_stylerequired

One ofdefaultphotodigital artillustrationdrawing

model_aspect_ratiorequired

One of9:161:14:316:9

Any of these can be a value you type, a CRM property token, or the output of an earlier step.

What you get back

An image hosted for you, returned inside an img tag rather than as a bare URL.

A real response, shortened
<img src="https://…/a-serene-mountain-lake-at-sunset.jpg" alt="A serene mountain lake at sunset" />

Worth knowing

  • Because the response is an img tag, extract the URL from its src attribute before passing it to a step that expects a plain link.

Ready to use it?

Install the pack once and this action appears in every workflow and agent in your portal.

Install in HubSpot
Technical details
Action name
generate_image
Workflow action ID
1-268463153