CommunityHire an ExpertSign Up
AI models and RAGReplicate
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

  1. Sign in to Replicate 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 caseWhat it does
Personalized hero imagesWhen a user signs up, generate a banner from their bio and store the URL on their profile.
Per-record illustrationsFor every new record in a listing, generate a thumbnail from the record’s description.
Form-driven creative briefsTurn a form submission into four image variations with Flux Schnell for review.
AI assistant visualsLet 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

The Replicate actions in the step picker of a workflow.
ActionWhat it does
Pruna via ReplicateGenerates 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 ReplicateGenerates 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.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.