Skip to content
Back to work

Case study

DecorifAI

AI interior design and virtual staging from a photo of a room. Live on the App Store.

React NativeDjangoReplicateCloudinaryRevenueCat
DecorifAI

The problem

Homeowners, renters and real-estate agents want to see a room in a new style before spending money, but AI image models are slow, cost money per call and sometimes fail. The app had to feel instant and never charge for a failed result.

What I built

  • •An Expo / React Native iOS app: pick a room photo, a mode (redesign, furnish, clear out) and one of 20 styles, including Moroccan and Mediterranean ones.
  • •Plain-language edits on any result ("make the walls white") and 5-second videos of the room transforming.
  • •A Django product app that creates Replicate predictions, receives the result by webhook, and stores images and videos on Cloudinary.
  • •Credits, subscriptions and credit packs through RevenueCat, plus rewarded ads.
  • •A Next.js marketing site in English and French.

The hard part

Asynchronous generation with automatic refunds

A generation can take from a few seconds to a minute, so the API doesn't wait for it. It charges the credits, starts the prediction with a webhook URL and returns right away. The app polls the generation's status, and each poll also asks Replicate directly in case a webhook is late. When Replicate calls back, the backend verifies the webhook signature before trusting it. If the prediction failed or was cancelled, the same code path gives the credits back as a ledger entry, so users never pay for nothing.

Results

  • Live on the App Store
  • Redesign, furnish and clear-out modes, 20 styles, room videos
  • No charge for failed generations