When to use it
A picture to go with a post about a new token or a milestone, made from the event's own values.
At a glance
| Integration | Google Gemini |
|---|---|
| Credits | 2 |
| Connection | Google Gemini, by pasting a key |
Settings
promptRequiredAccepts event fields- Prompt. What to draw. Values from the event go in exactly as written.
model- Model. Leave it on the default, or choose a model your Gemini key can use. Picked from your account's own list, or typed.
aspect_ratio- Shape. Under More options.
What it hands on
Actions run in order, and each one can read what the actions above it produced. This one writes the fields below; a later action reaches them as {{ actions.gemini_generate_image_1.image }} — the action’s key, then which one it is if you use more than one of the same kind.
image- The picture itself, written out in full as an address that starts with data:image/jpeg. It is not a web link, so a place that only takes a web link to an image cannot use it.
mime_type- The picture's file type, image/jpeg.
bytes- The picture's size in bytes.
Good to know
- Runs on your own Gemini key. Google bills your account for what the model reads and writes.
- A key whose account has run out of credit fails the step with that reason. The flow keeps trying on later events, so it carries on once credit is added, and stops after several failures in a row.
- Gemini gives back the picture itself. The step hands it on whole, as a JPEG of at most 512 KB. A larger picture fails the step.
- Values from the event go into the prompt exactly as written, so anyone who can name a token can add words to it. Google's own safety checks still apply.
- Every picture carries Google's invisible SynthID watermark.
- A Webhooks step can send the picture on to your own server, for example as one of its Data rows set to the image field.
- A prompt Gemini will not draw fails the step with Google's reason. The flow keeps running.