decor8ai-sdk

Decor8 AI Dart SDK - AI Interior Design & Virtual Staging API

pub version License: MIT Dart SDK

The official Dart/Flutter SDK for Decor8 AI - a powerful AI interior design and AI virtual staging platform. Build mobile AI room design applications, AI home decorations tools, and interior design by AI services with Flutter.

Features

Installation

Add the dependency to your pubspec.yaml:

dependencies:
  decor8ai: ^2.0.0

Then run:

flutter pub get

Requirements: Dart SDK >= 3.0.0

Configuration

Get your API key at Decor8 AI Platform:

  1. Sign in to Decor8 AI
  2. Click on Profile Photo on Top Left
  3. Click “Generate API Key”

Step 1 Step 2

Quick Start

import 'package:decor8ai/decor8ai.dart';

final client = Decor8AI('your-api-key');

// AI Virtual Staging
final result = await client.generateDesignsForRoom(
  inputImageUrl: 'https://example.com/empty-room.jpg',
  roomType: 'LIVINGROOM',
  designStyle: 'MODERN',
  numImages: 2,
);

print(result['info']['images']);

Table of Contents


AI Virtual Staging

Transform empty rooms into beautifully furnished spaces using AI virtual staging technology.

Using Room Type and Design Style

import 'package:decor8ai/decor8ai.dart';

final client = Decor8AI('your-api-key');

final result = await client.generateDesignsForRoom(
  inputImageUrl: 'https://example.com/empty-room.jpg',
  roomType: 'BEDROOM',
  designStyle: 'FRENCHCOUNTRY',
  numImages: 2,
  colorScheme: 'COLOR_SCHEME_5',
  specialityDecor: 'SPECIALITY_DECOR_2',  // Christmas decor
);

Using Custom Prompt for AI Room Design

final result = await client.generateDesignsForRoom(
  inputImageUrl: 'https://example.com/room.jpg',
  roomType: 'LIVINGROOM',
  designStyle: 'MODERN',
  prompt: 'Modern minimalist room with sleek wardrobe and contemporary table lamps',
  guidanceScale: 15.0,
  numInferenceSteps: 50,
);

With Style Reference Image

final result = await client.generateDesignsForRoom(
  inputImageUrl: 'https://example.com/room.jpg',
  roomType: 'LIVINGROOM',
  designStyle: 'MODERN',
  designStyleImageUrl: 'https://example.com/style-reference.jpg',
  designStyleImageStrength: 0.8,
);

Response Structure

{
  "error": "",
  "message": "Successfully generated designs.",
  "info": {
    "images": [
      {
        "uuid": "81133196-4477-4cdd-834a-89f5482bb9d0",
        "url": "https://generated-image-url.jpg",
        "width": 768,
        "height": 512
      }
    ]
  }
}

Advanced Parameters Reference

Parameter Type Default Description
seed integer random For reproducible results (≥ 0)
guidanceScale integer 15 Controls prompt adherence (1-20)
numInferenceSteps integer 50 Number of denoising steps (1-75)
designCreativity double 0.39 Controls creativity level (0-1)
designStyleImageUrl String null Reference image URL for style guidance
designStyleImageStrength double 0.82 How strongly to follow reference (0-1)
scaleFactor integer 2 Output resolution multiplier (1-8)
maskInfo String null Masking information for targeted editing
webhooksData String null JSON string for webhook URL for async notifications
decorItems String null JSON string for specific furniture/accessories to place

AI Interior Design (Inspirational)

Generate AI interior design concepts without an input image.

// Using room type and style
final result = await client.generateInspirationalDesigns(
  roomType: 'BEDROOM',
  designStyle: 'SCANDINAVIAN',
  numImages: 2,
);

// Using custom prompt for AI room design
final result = await client.generateInspirationalDesigns(
  roomType: 'LIVINGROOM',
  designStyle: 'MODERN',
  prompt: 'Luxurious master bedroom with ocean view',
  guidanceScale: 15.0,
  seed: 42,  // For reproducible results
);

AI Wall Color Change

Virtually repaint walls with AI home decorations technology.

final result = await client.changeWallColor(
  'https://example.com/room.jpg',
  '#4A90D9',  // Hex color code for the new wall color
);

AI Cabinet Color Change

Preview new cabinet finishes with AI kitchen design capabilities.

final result = await client.changeKitchenCabinetsColor(
  'https://example.com/kitchen.jpg',
  '#2C3E50',  // Hex color code for the new cabinet color
);

AI Kitchen Remodeling

Visualize kitchen renovations using AI interior design technology.

final result = await client.remodelKitchen(
  'https://example.com/kitchen.jpg',
  'MODERN',
  numImages: 2,
  scaleFactor: 2,
);

AI Bathroom Remodeling

Preview bathroom transformations with AI home design visualization.

final result = await client.remodelBathroom(
  'https://example.com/bathroom.jpg',
  'CONTEMPORARY',
  numImages: 2,
  scaleFactor: 2,
);

AI Landscaping

Generate AI landscaping designs for outdoor spaces (Beta).

final result = await client.generateLandscapingDesigns(
  'https://example.com/yard.jpg',
  'FRONT_YARD',       // 'FRONT_YARD', 'BACKYARD', or 'SIDE_YARD'
  'JAPANESE_ZEN',     // Garden style
  numImages: 2,
);

Garden Styles

Style Description
JAPANESE_ZEN Tranquil Japanese garden design
ENGLISH_COTTAGE Classic English garden aesthetic
MEDITERRANEAN Mediterranean-inspired landscaping
MODERN_MINIMALIST Clean, contemporary outdoor design
TROPICAL Lush tropical garden style

AI Sky Replacement

Enhance exterior property photos with beautiful skies.

final result = await client.replaceSkyBehindHouse(
  'https://example.com/house-exterior.jpg',
  'DUSK',  // 'DAY', 'DUSK', or 'NIGHT'
);

Sketch to 3D Render

Convert hand-drawn sketches into photorealistic AI room design renders.

final result = await client.sketchTo3dRender(
  'https://example.com/floor-plan-sketch.jpg',
  'MODERN',
  numImages: 2,
  scaleFactor: 2,
  renderType: 'PERSPECTIVE',  // 'PERSPECTIVE' or 'isometric'
);

Object Removal

Remove unwanted items from photos using AI interior design technology.

// Auto-detect and remove objects
final result = await client.removeObjectsFromRoom(
  'https://example.com/cluttered-room.jpg',
);

// With custom mask for specific areas
final result = await client.removeObjectsFromRoom(
  'https://example.com/room.jpg',
  maskImageUrl: 'https://example.com/mask.jpg',
);

Image Upscaling

Enhance image resolution for professional AI home decorations output.

final result = await client.upscaleImage(
  '/path/to/local/image.jpg',
  scaleFactor: 4,  // Scale factor (1-8)
);

Wall Priming

Prepare walls for AI virtual staging by applying uniform wall texture.

// From URL
final result = await client.primeWallsForRoom(
  'https://example.com/room-with-damaged-walls.jpg',
);

// From local file
final result = await client.primeTheRoomWalls(
  '/path/to/local/image.jpg',
);

Saving Generated Images

import 'dart:convert';
import 'dart:io';

// Save images from response
final images = result['info']['images'] as List;
for (var image in images) {
  if (image['data'] != null) {
    // Base64 encoded image (from multipart endpoints)
    final outputFile = File('output/${image['uuid']}.jpg');
    await outputFile.create(recursive: true);
    await outputFile.writeAsBytes(base64Decode(image['data']));
    print('Image saved: ${outputFile.path}');
  } else if (image['url'] != null) {
    // Download from URL (from JSON endpoints)
    print('Image URL: ${image['url']}');
  }
}

Design Styles Reference

50+ AI interior design styles available:

Styles      
MINIMALIST SCANDINAVIAN INDUSTRIAL BOHO
TRADITIONAL ARTDECO MIDCENTURYMODERN COASTAL
TROPICAL ECLECTIC CONTEMPORARY FRENCHCOUNTRY
RUSTIC SHABBYCHIC VINTAGE COUNTRY
MODERN ASIAN_ZEN HOLLYWOODREGENCY BAUHAUS
MEDITERRANEAN FARMHOUSE VICTORIAN GOTHIC
MOROCCAN SOUTHWESTERN TRANSITIONAL MAXIMALIST
ARABIC JAPANDI RETROFUTURISM ARTNOUVEAU
URBANMODERN WABI_SABI GRANDMILLENNIAL COASTALGRANDMOTHER
NEWTRADITIONAL COTTAGECORE LUXEMODERN HIGH_TECH
ORGANICMODERN TUSCAN CABIN DESERTMODERN
GLOBAL INDUSTRIALCHIC MODERNFARMHOUSE EUROPEANCLASSIC
NEOTRADITIONAL WARMMINIMALIST    

Learn more at Decor8 AI Decoration Styles


Room Types Reference

30+ room types for AI room design:

Room Types      
LIVINGROOM KITCHEN DININGROOM BEDROOM
BATHROOM KIDSROOM FAMILYROOM READINGNOOK
SUNROOM WALKINCLOSET MUDROOM TOYROOM
OFFICE FOYER POWDERROOM LAUNDRYROOM
GYM BASEMENT GARAGE BALCONY
CAFE HOMEBAR STUDY_ROOM FRONT_PORCH
BACK_PORCH BACK_PATIO OPENPLAN BOARDROOM
MEETINGROOM OPENWORKSPACE PRIVATEOFFICE  

Learn more at Decor8 AI Room Types


Color Schemes

Color Scheme Value Description
COLOR_SCHEME_0 Default
COLOR_SCHEME_1 Moss Green, Tan, White
COLOR_SCHEME_2 Gray, Sand, Blue
COLOR_SCHEME_3 Hunter Green, Red
COLOR_SCHEME_4 White, Pops of Color
COLOR_SCHEME_5 Blue, Neon
COLOR_SCHEME_6 Light Blue, Emerald
COLOR_SCHEME_7 Blue, Grass Green
COLOR_SCHEME_8 Blue, Beige
COLOR_SCHEME_9 Gray, Brown
COLOR_SCHEME_10 Black, Red
COLOR_SCHEME_11 Gray-Green, White, Black
COLOR_SCHEME_12 Blue, Gray, Taupe
COLOR_SCHEME_13 Black, Navy
COLOR_SCHEME_14 Emerald, Tan
COLOR_SCHEME_15 Forest Green, Light Gray
COLOR_SCHEME_16 Yellow, Gray
COLOR_SCHEME_17 Pink, Green
COLOR_SCHEME_18 Blush Pink, Black
COLOR_SCHEME_19 Black, White
COLOR_SCHEME_20 Blue, White

Seasonal Decor

Speciality Decor Value Description
SPECIALITY_DECOR_0 None
SPECIALITY_DECOR_1 Halloween Decor
SPECIALITY_DECOR_2 Christmas Decor
SPECIALITY_DECOR_3 Thanksgiving Decor
SPECIALITY_DECOR_4 Fall Season Decor
SPECIALITY_DECOR_5 Spring Season Decor
SPECIALITY_DECOR_6 Summer Season Decor
SPECIALITY_DECOR_7 Winter Season Decor

Use Cases

Mobile App Integration

Real Estate AI Virtual Staging

AI Interior Design Services



Keywords: AI Interior Design, AI Virtual Staging, AI Virtual Staging API, AI decorations, AI Home Decorations, AI room design, Interior design by AI, AI home design, Flutter virtual staging, Dart interior design SDK