---
title: "Replicate integration"
description: "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."
canonical: "https://docs.softr.io/integrations/replicate"
updated: "2026-12-04"
---

# Replicate integration

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

1. Sign in to [Replicate](https://replicate.com/account/api-tokens) and generate a new API token that starts with `r8_`.
2. Open your Softr app and go to **Workflows**.
3. Create a workflow and add the **Replicate → Pruna via Replicate** or **Replicate → Flux via Replicate** action.
4. Select **Connect Replicate** and paste your Replicate API token.
5. Choose a model. The Flux action uses Flux Schnell by default, and also offers Flux Dev, Flux Schnell LoRA and Flux Krea Dev.
6. Write your prompt and set the aspect ratio and output options.
7. 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

![The Replicate actions in the workflow step picker: Pruna via Replicate, Flux via Replicate](/integrations/replicate/actions.2x.webp)

_The Replicate actions in the step picker of a workflow\._

| 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.
