Skip to content
Clarifai

How to use Clarifai

Artificial intelligenceCost: 1 credit + 2 per runTop 100 · #98Full guide

What it is for

Clarifai is an AI platform focused on visual recognition that also offers language, image and audio models. From flooows you can classify images or videos, describe images, transcribe audio, query LLMs or run your Clarifai workflows.

Clarifai has no triggers: use it as an action inside flows started by other events, such as an image uploaded to a folder or a message with an attachment.

Set up the connection

Authentication type: API key or token

  1. 1In your Clarifai account, go to Settings > Security (clarifai.com/settings/security).
  2. 2Generate a new Personal Access Token (PAT) and copy it.
  3. 3In flooows, add a Clarifai step and click "Connect".
  4. 4Paste the token into the PAT Key field and save the connection.

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Classify Images or Videos: paste the Clarifai model URL into "Model URL" and map the image from a previous step into "Input URL or bytes".
  • Image to Text produces an image description; Audio to Text transcribes an audio file.
  • Ask LLM: set the "Model Id" and write the "Prompt" combining fixed text and flow data.
  • Run Workflow runs a full Clarifai workflow via "Workflow URL".
  • Add Inputs uploads examples to your app using "User ID" and "App ID".

Tips

  • •Copy the model URL straight from its Clarifai page to avoid typos.
  • •Add a condition on the returned confidence to discard unreliable results.

Actions (10)

Operations available as flow steps. Expand each one to see its fields.

Ask LLM2 fields
FieldTypeRequired
Model IdList (from your account)Yes
PromptLong textYes
Ask IGM2 fields
FieldTypeRequired
Model IdList (from your account)Yes
PromptLong textYes
Classify Images or Videos2 fields
FieldTypeRequired
Model URLTextYes
Input URL or bytesFileYes
Classify Text2 fields
FieldTypeRequired
Model URLTextYes
Input TextLong textYes
Image to Text2 fields
FieldTypeRequired
Model URLTextYes
Input URL or bytesFileYes
Text to Text2 fields
FieldTypeRequired
Model URLTextYes
Input TextLong textYes
Audio to Text2 fields
FieldTypeRequired
Model URLTextYes
Input URL or bytesFileYes
Add Inputs3 fields
FieldTypeRequired
User IDTextYes
App IDTextYes
Input URL or bytesFileYes
Run Workflow2 fields
FieldTypeRequired
Workflow URLTextYes
Input URL or bytesFileYes
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

401 or invalid PAT

Create a new token in the security tab and reconnect.

Model not found

Check the "Model URL" or "Model Id" and that the model is public or yours.

Input cannot be read

The image URL must be publicly reachable; otherwise pass the file as bytes.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps