Skip to content
Hugging Face

How to use Hugging Face

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

What it is for

Hugging Face gives access to thousands of open AI models for text, image and audio. In flooows you can translate, summarize, classify text, chat with models, generate images or detect objects without running your own infrastructure.

Hugging Face has no triggers: use it as an action inside flows started by other events, such as an email, a ticket or a new file.

Set up the connection

Authentication type: API key or token

  1. 1Sign in to huggingface.co and open Settings > Access Tokens (huggingface.co/settings/tokens).
  2. 2Create a new token with read access or, if needed, permission to call inference providers.
  3. 3In flooows, add a Hugging Face step and click "Connect".
  4. 4Paste the token 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

  • Text Summarization: pick "Content Type" and "Summarization Model", map "Text to Summarize" from an earlier step and set "Summary Length".
  • Language Translation: choose a "Translation Model" or type one in "Or Enter Custom Model ID" and pass the "Text to Translate".
  • Text Classification: with zero-shot you can define your own "Custom Categories" (for example, complaint, question, order).
  • Chat Completion: choose a "Chat Model", write a "System Prompt (Optional)" and map the "User Message".
  • Create Image and Object Detection work from a "Text Prompt" or an image from a previous step.

Tips

  • •Enable "Wait for Model" to avoid errors while a model is starting up.
  • •Anonymize confidential data with flooows before sending it to the model.
  • •Try several models: quality varies a lot by language.

Actions (8)

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

Document Question Answering9 fields
FieldTypeRequired
ModelFixed listYes
Document ImageFileYes
QuestionTextYes
Number of AnswersNumberNo
Max Answer LengthNumberNo
Handle Impossible AnswersYes / NoNo
OCR LanguageFixed listNo
Use CacheYes / NoNo
Wait for ModelYes / NoNo
Language Translation9 fields
FieldTypeRequired
Translation ModelList (from your account)Yes
Or Enter Custom Model IDTextNo
Text to TranslateLong textYes
Source Language (Optional)TextNo
Target Language (Optional)TextNo
Clean Up Extra SpacesYes / NoNo
Max Translation LengthNumberNo
Use CacheYes / NoNo
Wait for ModelYes / NoNo
Text Classification10 fields
FieldTypeRequired
Classification TypeFixed listYes
Zero-Shot ModelFixed listNo
Custom CategoriesLong textNo
Pre-trained ModelFixed listNo
Search ModelsList (from your account)No
Text to ClassifyLong textYes
Number of ResultsNumberNo
Output FunctionFixed listNo
Use CacheYes / NoNo
Wait for ModelYes / NoNo
Text Summarization10 fields
FieldTypeRequired
Content TypeFixed listYes
Summarization ModelList (from your account)Yes
Text to SummarizeLong textYes
Summary LengthFixed listNo
Custom Min LengthNumberNo
Custom Max LengthNumberNo
Clean Up Extra SpacesYes / NoNo
Truncation StrategyFixed listNo
Use CacheYes / NoNo
Wait for ModelYes / NoNo
Chat Completion16 fields
FieldTypeRequired
Use CaseFixed listYes
Chat ModelList (from your account)Yes
Conversation ModeFixed listYes
User MessageLong textNo
System Prompt (Optional)Long textNo
Conversation HistoryList of valuesNo
Response TemplateFixed listNo
Response LengthFixed listNo
Custom Max TokensNumberNo
Creativity LevelNumberNo
Response VarietyNumberNo
Stop Sequences (Optional)List of valuesNo
Repetition PenaltyNumberNo
Topic DiversityNumberNo
Use CacheYes / NoNo
Wait for ModelYes / NoNo
Create Image12 fields
FieldTypeRequired
Use CaseFixed listYes
Image Generation ModelList (from your account)Yes
Text PromptLong textYes
Aspect RatioFixed listNo
Custom WidthNumberNo
Custom HeightNumberNo
Negative PromptLong textNo
Quality vs SpeedFixed listNo
Custom Inference StepsNumberNo
Guidance ScaleNumberNo
Seed (Optional)NumberNo
SchedulerFixed listNo
Object Detection7 fields
FieldTypeRequired
Use CaseFixed listYes
Detection ModelList (from your account)Yes
Image to AnalyzeFileYes
Confidence ThresholdNumberNo
Max DetectionsNumberNo
Detection FilterFixed listNo
Output FormatFixed listNo
Image Classification11 fields
FieldTypeRequired
Classification ModeFixed listYes
Use CaseFixed listYes
Classification ModelList (from your account)Yes
Image SourceFixed listYes
Image FileFileYes
Image URLTextYes
Custom CategoriesList of valuesYes
Classification TemplateTextNo
Number of ResultsNumberNo
Confidence ThresholdNumberNo
Output FormatFixed listNo

Common errors

503 model loading

Enable "Wait for Model" or retry after a few seconds.

401 invalid token

Create a new token with the right permissions and reconnect.

429 usage limit

Lower the frequency or check your account plan.

Model unavailable

Some models do not support serverless inference; pick another from the list.

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