API Documentation
  • Introduction
  • API Reference
  • 🔐Authentication
  • Core APIs
    • Perfect Redesign
    • Beautiful Redesign
    • Creative Redesign
    • Sketch to Render
    • Virtual staging
    • Precision
    • Fill Spaces
    • Decor Staging
    • Furniture Removal
    • Colors & Textures
    • Furniture Finder
    • Full HD
    • Text to design
    • Furniture Creator
    • Design Advisor
    • Sky Colors
    • Design Transfer
    • Floor Editor
    • Paint Visualizer
    • Material Swap
    • Room Composer
    • Design Critique
    • Create Mask Image
    • Download Generated Images
    • Smart Home AI
  • DESIGN SCOPE
    • Interiors
      • Design Styles for Interiors
      • Room Types
      • Colors in Interior Design
      • Explore Material Options for Interior Designs
    • Exteriors
      • Design Styles for Exteriors
      • Copy of Design Styles for Exteriors
      • House angles
      • Exterior Colors
      • Material Options for Exterior Designs
    • Gardens
      • Design Styles for Gardens
      • Garden Types
      • Explore Color Options for Garden Designs
      • Material Options for Garden Designs
  • Data
    • User Details
    • Design Scope
  • Others
    • What is Masked Image?
Powered by GitBook
On this page

Was this helpful?

  1. Core APIs

Design Transfer

PreviousSky ColorsNextFloor Editor

Last updated 1 month ago

Was this helpful?

ai_intervention not provided properlyTransfer the design elements from an inspiration image to a target space. The design_transfer endpoint replicates styles, layouts, and decor themes from one image to another, perfect for clients wanting to recreate the feel of a room they admire.

ENDPOINT

POST /design_transfer

An API URL would be like https://homedesigns.ai/api/v2/design_transfer

Design transfer is the process of taking a design concept or idea and bringing it to life in a tangible form.

An API request must be in the form-data format.

Request

Parameters & Data Type
Value
Description

image

file[ .jpg, .jpeg, .png] / base64 Image string

-

The image to be processed by the API. The image dimensions must be 512x512 pixels or greater for optimal results. (Required Parameter)

Style_image file[ .jpg, .jpeg, .png] / base64 Image string

The style of the image can be adjusted according to your preference.

The image to be processed by the API. (Image size not required) (Required Parameter)

ai_intervention

string

Very Low, Low, Mid, Extreme

Indicates the level of AI intervention in the design process. "Very Low" means minimal changes, while "Extreme" allows for significant alterations to the original design. (Required Parameter)

Parameters & Errors

image

Error Messages
Reason

Image field required

Image not provided

Invalid image size. The image width and height must be 512x512 or greater than 512x512 pixels.

Image Size Not Proper.

Invalid image format. Only PNG, JPEG and JPG images are allowed.

Image Format not valid.

style_image

Error Messages
Reason

The style_image field is required.

whether the style_image is required to get the results.

The style_image field must be a file of type: jpeg, png, jpg

ai_intervention

Error Messages
Reason

ai_intervention field required

ai_intervention not provided

The style_image field must be a file of type: jpeg, png, jpg

ai_intervention not provided properly


//Output should be in list of array depends on no of designs as shown below:

{
    "input_image": "https://storage.googleapis.com/generativebucketapi/UserGenerations/cristian/input-20230901-085649876484.png",
    "output_images": [
            "https://storage.googleapis.com/generativebucketapi/UserGenerations/cristian/20230901-085649876484-1.png",
            "https://storage.googleapis.com/generativebucketapi/UserGenerations/cristian/20230901-085649876484-2.png"

    ]
}

Image Format is not valid.

Page cover image