A
Cursor logoCursorBulk catalog and ad image generation

Generate thousands of product images via the Flux API on Replicate

setuproll@setuproll
86.0Overall score

A scripted pipeline that calls the Flux.1 pro model on Replicate so you can batch-generate hundreds of product shots or ad variants from a spreadsheet of prompts. For ecommerce teams and growth marketers who need volume and a real API, not a chat window.

86.0Score
1.5kVotes
5Components

Install this build

Export
terminal
npm i replicate && node bulk-flux.js prompts.csv

Components

Model

  • Flux.1 pro (Replicate)
  • Flux.1 dev for cheap drafts

Stack

  • Node 20
  • Replicate SDK
  • CSV/Sheets prompt source

Tools

  • replicate.run()
  • p-limit concurrency
  • S3 / R2 upload

Workflow

  • Template prompts per SKU
  • Throttle to API rate limit
  • Save URLs back to the sheet

How it works

  • Write a prompt template that fills product fields from each spreadsheet row
  • Loop rows and call Flux.1 pro on Replicate with capped concurrency
  • Pipe each returned image to R2 and write the public URL back to the row
  • Spot-check failures, then re-run only the rows that errored

Summary

A scripted pipeline that calls the Flux.1 pro model on Replicate so you can batch-generate hundreds of product shots or ad variants from a spreadsheet of prompts. For ecommerce teams and growth marketers who need volume and a real API, not a chat window.

86.0 score 1.5k votes

0 Reviews

Your rating
Sign in to post

Loading discussion...