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
- 1In your Clarifai account, go to Settings > Security (clarifai.com/settings/security).
- 2Generate a new Personal Access Token (PAT) and copy it.
- 3In flooows, add a Clarifai step and click "Connect".
- 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
| Field | Type | Required |
|---|---|---|
| Model Id | List (from your account) | Yes |
| Prompt | Long text | Yes |
Ask IGM2 fields
| Field | Type | Required |
|---|---|---|
| Model Id | List (from your account) | Yes |
| Prompt | Long text | Yes |
Classify Images or Videos2 fields
| Field | Type | Required |
|---|---|---|
| Model URL | Text | Yes |
| Input URL or bytes | File | Yes |
Classify Text2 fields
| Field | Type | Required |
|---|---|---|
| Model URL | Text | Yes |
| Input Text | Long text | Yes |
Image to Text2 fields
| Field | Type | Required |
|---|---|---|
| Model URL | Text | Yes |
| Input URL or bytes | File | Yes |
Text to Text2 fields
| Field | Type | Required |
|---|---|---|
| Model URL | Text | Yes |
| Input Text | Long text | Yes |
Audio to Text2 fields
| Field | Type | Required |
|---|---|---|
| Model URL | Text | Yes |
| Input URL or bytes | File | Yes |
Add Inputs3 fields
| Field | Type | Required |
|---|---|---|
| User ID | Text | Yes |
| App ID | Text | Yes |
| Input URL or bytes | File | Yes |
Run Workflow2 fields
| Field | Type | Required |
|---|---|---|
| Workflow URL | Text | Yes |
| Input URL or bytes | File | Yes |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
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
