AI models and RAG
Replicate integration
Connect Replicate to Softr and generate images from a text prompt in your workflows and agents. Use the image URL in a Files field, an email or a later step.
Replicate hosts AI image-generation models. In Softr workflows, pass a text prompt to a Replicate action and get back an image URL for a Files field, email, or another step.
Connect Replicate
- Sign in to Replicate and generate a new API token that starts with
r8_. - Open your Softr app and go to Workflows.
- Create a workflow and add the Replicate → Pruna via Replicate or Replicate → Flux via Replicate action.
- Select Connect Replicate and paste your Replicate API token.
- Choose a model. The Flux action uses Flux Schnell by default, and also offers Flux Dev, Flux Schnell LoRA and Flux Krea Dev.
- Write your prompt and set the aspect ratio and output options.
- Test the action, then publish the workflow.
The same token works for every Replicate action, current and future.
Use cases
| Use case | What it does |
|---|---|
| Personalized hero images | When a user signs up, generate a banner from their bio and store the URL on their profile. |
| Per-record illustrations | For every new record in a listing, generate a thumbnail from the record’s description. |
| Form-driven creative briefs | Turn a form submission into four image variations with Flux Schnell for review. |
| AI assistant visuals | Let a Softr AI agent run the action when a user asks for a visual. |
Use Replicate in workflows and agents
Workflows and agents can run Replicate actions to generate images from text prompts.
Actions

| Action | What it does |
|---|---|
| Pruna via Replicate | Generates an image with a Pruna AI model, including Z-Image Turbo, Flux Fast, P-Image, and SDXL Lightning. Every model uses the same prompt, aspect ratio, and output format inputs. |
| Flux via Replicate | Generates up to 4 images with a Black Forest Labs Flux model: Flux Schnell by default, or Flux Dev, Flux Schnell LoRA or Flux Krea Dev. Add an optional seed to reproduce an image, or leave it empty for new variations. |
FAQ
Do I need a token for each Replicate action?
No. One Replicate API token works for every Replicate action, current and future.
Can I get the same image again?
Yes, with Flux Schnell. Add a seed to reproduce an image, or leave it empty for new variations.
What do I get back from the action?
An image URL. Use it in a Files field, an email, or a later step.