PixelFlow Template

AI Interior Makeover


API

If you're looking for an API, here is a sample code in NodeJS to help you out.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 const axios = require('axios'); const api_key = "YOUR API KEY"; const url = "https://api.segmind.com/workflows/66cc630ac9734558783ada2b-v2"; const data = { input_image: "publicly accessible image link", text-prompt: "the user input string" }; axios.post(url, data, { headers: { 'x-api-key': api_key, 'Content-Type': 'application/json' } }).then((response) => { console.log(response.data); });
Response
application/json
1 2 3 4 5 { "poll_url": "<base_url>/requests/<some_request_id>", "request_id": "some_request_id", "status": "QUEUED" }

You can poll the above link to get the status and output of your request.

Response
application/json
1 2 3 { "image_output": "image in URL Format" }

Attributes


input_imageimage*

text-promptstr*

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

AI Interior Makeover Using IPadapter Depth Model

This workflow helps you in designing and reimagining interior spaces which previously always been an art reserved for professionals.

The IPadapter depth model is a sophisticated tool designed to understand and manipulate the depth of images. By accurately capturing the 3D spatial relationships in a scene, it allows for realistic modifications, additions, and enhancements, making it ideal for interior design.

Workflow Overview

The AI interior makeover workflow employs a streamlined process. The illustrated workflow defines the sequence of processing stages that an image undergoes to achieve the desired makeover.

  • Stage 1: The process starts by inputting an image of the interior space to be redesigned. The photo is uploaded into the Input image node, which then proceeds to the next stage.

  • Stage 2: The IPadapter depth model conducts a comprehensive analysis of the uploaded image, identifying the various elements within the space and their respective distances from the camera. This crucial step lays the groundwork for realistic 3D manipulation.

  • Stage 3: Designers can choose from various preset or custom interior design styles that the AI can apply to the scene. These styles range from classic to modern, each incorporating unique furniture, colour schemes, and decorative elements. You can add or change different reference style to the node and change the prompt to get your desired design

  • Stage 4: Once the design selection is made, the depth model leverages its analysis to make adjustments while maintaining spatial consistency. The AI replaces the furniture, alters the colour palette, and adds or removes elements as per the chosen design. The final image, a beautifully reimagined interior space, is generated and can be exported for client presentations, marketing materials, or personal use.

Using the Template

  1. Input your room image and hit the run button to generate outputs.

  2. Optionally, you can also tweak the text prompt to change the outputs to your liking.