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
  • ENDPOINT
  • Weather Types

Was this helpful?

  1. Core APIs

Sky Colors

The sky_colors endpoint offers advanced manipulation of weather conditions in images, allowing users to alter the atmosphere of a scene while keeping the building and associated elements intact. Perfect for architectural visualizations, this feature can turn a sunny day into a rainy or snowy one, providing a range of atmospheric conditions for your visual needs. This capability is particularly valuable for architects and real estate marketers who want to showcase properties under different environmental scenarios

ENDPOINT

POST /sky_colors

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

Modify the weather in your image with the sky_colors endpoint transforming sunny scenes into rainy and more without altering other elements.

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)

no_design integer

Min-1,Max-4

Specifies the number of design variations you want the API to generate. The minimum is 1 and the maximum is 4. (Required Parameter)

weather string

Weather should be as per weather type

Indicates the type of weather for which the design is intended, like 'Clear Sky', 'Cloudy', 'Windy', etc. (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.

no_design

Error Messages
Reason

no_design field required

no_design not provided

no_design value is not a valid enumeration member; permitted: 1, 2, 3, 4

no_design not provided properly

weather

Error Messages
Reason

weather field required

weather not provided

weather should be in ['Sunshine Color','Clear Sky','Rainy'...] this array will replaced dynamically as per your design_type

weather 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",
            "https://storage.googleapis.com/generativebucketapi/UserGenerations/cristian/20230901-085649876484-3.png"
    ]
}

Weather Types

The user can enter or choose different weather conditions to redesign the sky color of the images. Here are some examples of weather types that the user can use to change the sky color in the image accordingly.

  • Sunshine

  • Clear Sky

  • Rainy

  • Cloudy

  • Windy

  • Dawn

  • Dusk

  • Twilight

  • Sunny

  • Night

PreviousDesign AdvisorNextDesign Transfer

Last updated 4 months ago

Was this helpful?

Page cover image