Hugging Face
App · AI Models · 6 actions
Run open models from Hugging Face: chat, sort text into labels, make images, and find the right model.
Actions
| Action | What it does |
|---|---|
| Chat with a model | Ask an open chat model, such as Llama, Qwen or DeepSeek, to write, answer or summarize, and get its reply. |
| Find models | Search Hugging Face for models by name, task or author, most popular first, to pick one for another step. |
| Generate an image | Make a picture from a description with an open image model. |
| Get a model's details | Get a model's task, author, licence and popularity, and whether you must ask for access before using it. |
| Run a model | Run an open model from Hugging Face on your text: summarize, classify, translate or embed it, depending on the model. |
| Sort text into labels | Decide which of your own labels fits a piece of text best, such as sorting messages into 'complaint', 'question' or 'praise', with no training needed. |
Chat with a model
Ask an open chat model, such as Llama, Qwen or DeepSeek, to write, answer or summarize, and get its reply. Hugging Face picks a provider that runs the model.
Inputs
- Message
messagetextRequired - What to ask or tell the model.
- Model
modeltext - The chat model's name as shown on huggingface.co. Leave empty for meta-llama/Llama-3.1-8B-Instruct.
- Instructions
instructionstext - Optional guidance the model follows, such as the tone to use or what to leave out.
- Maximum response length
max_tokensnumber - The most tokens the reply may use. Leave empty for the model's default.From 1 to 32000.
- Creativity (temperature)
temperaturenumber - From 0 (focused) to 2 (varied). Leave empty for the model's default.From 0 to 2.
Outputs
finish_reasontext- Why the reply ended: 'stop' when it was complete, 'length' when it hit the maximum length.
modeltext- The model that replied.
response_texttext- The model's reply.
total_tokensnumber- Tokens the message and reply used together.
Example output
{
"finish_reason": "stop",
"model": "meta-llama/Llama-3.1-8B-Instruct",
"response_text": "We're open 9 to 5, Monday to Saturday.",
"total_tokens": 58
}Find models
Search Hugging Face for models by name, task or author, most popular first, to pick one for another step.
Inputs
- Search
searchtext - Words in the model's name, such as 'sentiment'.
- Task
tasktext - Only models for this task, such as summarization, translation or text-to-image.
- Author
authortext - Only models from this person or organization, such as meta-llama.
- Sort by
sorttext - Which models come first.One of:
downloads(Most downloaded),likes(Most liked),trending_score(Trending),lastModified(Recently updated). Default:downloads. - Limit
limitnumber - The most models to list, up to 100. Leave empty for 20.From 1 to 100.
Outputs
countnumber- How many models were listed.
modelslist- The models found.
Example output
{
"count": 1,
"models": [
{
"downloads": 992569,
"likes": 1662,
"model": "facebook/bart-large-cnn",
"task": "summarization",
"url": "https://huggingface.co/facebook/bart-large-cnn"
}
]
}Generate an image
Make a picture from a description with an open image model. The picture is saved to your workspace's files for a later step to send, post or attach.
Inputs
- Description
prompttextRequired - What the picture should show.
- Model
modeltext - An image model whose page lists HF Inference under 'Inference Providers'. Leave empty for stabilityai/stable-diffusion-3-medium-diffusers.
- Leave out
leave_outtext - What the picture should not show, such as 'text, blur'.
- Width (pixels)
widthnumber - Leave empty for the model's default.From 64 to 2048.
- Height (pixels)
heightnumber - Leave empty for the model's default.From 64 to 2048.
Outputs
content_typetext- The kind of picture, such as image/jpeg.
document_reftext- The saved picture, for a later step to send or attach.
documentslist- The saved picture, as a list of one.
modeltext- The model that made it.
urltext- Where to download the picture.
Example output
{
"content_type": "image/jpeg",
"document_ref": "doc_5c6d7e8f90123456",
"documents": [
{
"content_type": "image/jpeg",
"document_ref": "doc_5c6d7e8f90123456",
"filename": "huggingface-image.jpg",
"size_bytes": 182340,
"url": "/actions/core/serve-document/doc_5c6d7e8f90123456?teamId=6512a1b2c3d4e5f600000001"
}
],
"model": "stabilityai/stable-diffusion-3-medium-diffusers",
"url": "/actions/core/serve-document/doc_5c6d7e8f90123456?teamId=6512a1b2c3d4e5f600000001"
}Get a model's details
Get a model's task, author, licence and popularity, and whether you must ask for access before using it.
Inputs
- Model
modeltextRequired - The model's name as shown on huggingface.co, such as `facebook/bart-large-cnn`.
Outputs
authortext- Who published it.
downloadsnumber- Downloads in the last month.
gatedtrue/false- Whether you must ask for access on its page first.
licensetext- Its licence, such as mit, or empty.
likesnumber- How many people liked it.
modeltext- The model's name, to give a step's Model field.
tagslist- Its tags, such as languages and libraries.
tasktext- What it does, such as summarization, or empty.
updated_attext- When it last changed (ISO 8601).
urltext- Its page on huggingface.co.
Example output
{
"author": "facebook",
"downloads": 992569,
"gated": false,
"license": "mit",
"likes": 1662,
"model": "facebook/bart-large-cnn",
"tags": [
"transformers",
"summarization",
"en"
],
"task": "summarization",
"updated_at": "2024-02-13T18:02:05.000Z",
"url": "https://huggingface.co/facebook/bart-large-cnn"
}Run a model
Run an open model from Hugging Face on your text: summarize, classify, translate or embed it, depending on the model.
Inputs
- Model
modeltextRequired - The model's name as it appears at the top of its page on huggingface.co, such as `facebook/bart-large-cnn`. Pick a model whose page lists HF Inference under 'Inference Providers', as only those can be run from here.
- Text
inputstextRequired - The text to give the model: a passage to summarize or translate, a sentence to classify, a prompt to continue, and so on.
- Settings
parametersobject - Optional settings for the model, such as {"max_length": 130, "min_length": 30} to set a summary's length. The model's page lists what it takes. Leave empty for its defaults.
- Wait for the model to start
wait_for_modeltrue/false - A model that hasn't been used for a while takes a moment to start. Leave on to wait for it rather than fail.Default:
true.
Outputs
generated_texttext- The model's primary text output, for text-producing tasks (summarization, translation, generation). Null for tasks that don't produce text (see 'result').
modeltext- The name of the model that was run.
result- The raw model output. Its shape depends on the model's task: a list of summaries for summarization, nested label/score lists for classification, and so on.
Example output
{
"generated_text": "Hugging Face builds tools for machine learning and hosts open models.",
"model": "facebook/bart-large-cnn",
"result": [
{
"summary_text": "Hugging Face builds tools for machine learning and hosts open models."
}
]
}Sort text into labels
Decide which of your own labels fits a piece of text best, such as sorting messages into 'complaint', 'question' or 'praise', with no training needed.
Inputs
- Text
texttextRequired - The text to sort, such as an email or review.
- Labels
labelstextRequired - The labels to choose between, separated by commas or one per line, from 2 to 20.
- Several can fit
allow_severaltrue/false - Score each label on its own, for text that can fit more than one.Default:
false. - Model
modeltext - A zero-shot classification model. Leave empty for facebook/bart-large-mnli.
Outputs
labeltext- The label that fits best.
modeltext- The model that sorted it.
scorenumber- How well it fits, from 0 to 1.
scoreslist- Every label with its score, best first.
Example output
{
"label": "complaint",
"model": "facebook/bart-large-mnli",
"score": 0.91,
"scores": [
{
"label": "complaint",
"score": 0.91
},
{
"label": "question",
"score": 0.07
},
{
"label": "praise",
"score": 0.02
}
]
}