Tailflow
Skip to article
Browse documentation

OpenAI · Action

Analyze image

Sends an image link, your prompt and the event to an OpenAI model and hands its answer to the steps below.

When to use it

A look at a freshly minted NFT before it is posted: what it shows, and whether it copies a collection people know.

At a glance

IntegrationOpenAI
Credits2
ConnectionOpenAI, by pasting a key

Settings

imageRequiredAccepts event fields
Image link. A public web address. IPFS and Arweave links work too.
promptRequiredAccepts event fields
Prompt. The event is given to the model alongside this. Anything written inside the event is treated as data, never as instructions.
model
Model. Leave it on the default, or choose a model your OpenAI account can use. Picked from your account's own list, or typed.
max_output_tokens
Answer length limit. The most the model may write, counted the way OpenAI bills it. About 750 words per 1,000, and the model's own thinking counts too. At most 32,000. A whole number. 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.openai_analyze_image_1.text }} — the action’s key, then which one it is if you use more than one of the same kind.

text
The model's answer.
model
The model that answered, as OpenAI names it.

Good to know

  • Runs on your own OpenAI key. OpenAI 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.
  • Token names, symbols and other values in an event can be written by anyone. The model is told to treat the event as data and never to follow instructions inside it.
  • OpenAI fetches the image itself. A link that needs signing in, or that is too slow, fails the step with OpenAI's reason.
  • An image written into the event itself, rather than linked, is not accepted.
  • Text inside an image is read by the model like any other part of the event.