- Integrations
- /
- Hugging Face
- /
- Actions
- /
- HF Text to Image
ActionHugging FaceUpdated May 2026
How do I generate images via Hugging Face?
Short answer: Drop the "Hugging Face → HF 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.
| Field | Type | Required | Description |
|---|---|---|---|
Model ID model | string | Required | HF model id (any text-to-image) |
Prompt prompt | string | Required | Prompt (required) |
Negative Prompt negative_prompt | string | Optional | Negative Prompt |
Width width | string | Optional | Width |
Height height | string | Optional | Height |
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.
Action
Hugging Face Chat Completion
Runs chat completion against any text-generation model on Hugging Face Hub that supports the TGI server. OpenAI-compatible message-array shape. Model selection via model ID (e.g., meta-llama/Llama-3.3-70B-Instruct).
ActionHF Feature Extraction (Embeddings)
Generates sentence embeddings from any sentence-transformers or BGE-class model on the HF Hub. For RAG-pipeline vector generation when you want a specific HF-hosted embedding model.
ActionHF Text Classification
Runs any classifier model from HF Hub on text input — sentiment, toxicity, NER, intent. Pick the right classifier for your use case from the broad Hub catalog.
Send hf text to image from your workflows.
Triggered by anything in the catalog. Free tier available. No credit card.