Skip to content
ActionHugging FaceUpdated May 2026

How do I generate images via Hugging Face?

Short answer: Drop the "Hugging FaceHF Text to Image" action anywhere in your workflow, map the inputs from upstream nodes, and publish.

Inputs

The fields this action accepts.

Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.

FieldTypeRequiredDescription
Model ID
model
stringRequiredHF model id (any text-to-image)
Prompt
prompt
stringRequiredPrompt (required)
Negative Prompt
negative_prompt
stringOptionalNegative Prompt
Width
width
stringOptionalWidth
Height
height
stringOptionalHeight
Sample request
{
"model": "e.g. black-forest-labs/FLUX.1-schnell, stabilityai/stable-diffusion-3.5-large",
"prompt": "{{trigger.prompt}}",
"negative_prompt": "{{trigger.negative_prompt}}",
"width": "{{trigger.width}}",
"height": "{{trigger.height}}"
}
Returns
"<binary>"

Use these fields in downstream nodes for routing, logging, or error handling.

Triggered by

Apps that pair well as the trigger for HF Text to Image.

Any of these apps can fire this action as part of a workflow.

FAQ

Questions about HF Text to Image.

What does the HF Text to Image action do in Hugging Face?
Generates images from text using any HF-hosted image model (SDXL, SD3.5, Flux variants, community fine-tunes). For accessing niche or specific image models from the broad HF catalog.
What inputs does HF Text to Image require?
Required: Model ID, Prompt. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if Hugging Face returns an error?
The workflow pauses on the failed node, the error message is captured in the run log, and you can retry the run with one click. Auto-retry policies are configurable per workflow with exponential backoff up to 5 attempts.
Does HF Text to Image support batch operations?
Yes. Run HF Text to Image inside a Loop node to process arrays. Tiny Command handles Hugging Face's rate limits automatically so you don't have to throttle manually.
More actions

Other Hugging Face actions.

Send hf text to image from your workflows.

Triggered by anything in the catalog. Free tier available. No credit card.