Interior Remodel API Documentation
Base URL:
https://api.ideal.house
Version: v1
Updated: 2026-05-21
📖 Overview
The Interior Remodel API remodels an interior image and can optionally use room style options, text guidance, and color guidance.
The workflow is asynchronous:
- Create a task — Submit
imageUrland optional parameters, then receive ataskId. - Poll for results — Use
taskIdto retrieve task status and the generated image.
🔐 Authentication
| Header | Value |
|---|---|
APIKEY | your_api_key_here |
💰 Credits Deduction
[!WARNING] 🪙 1 credits are deducted when a task is successfully created. If the task ultimately fails, the deducted credits will be automatically refunded.
Insufficient credits will return error code9051. See Credits Deduction Reference.
| Operation | Credits Deducted |
|---|---|
| Interior Remodel task | 1 credits |
🎨 Style Options
This API supports optional style parameters returned by the API Style Config endpoint.
Use:
GET /api/v1/style/interoir_remodel/getStyles
| Style Group | Request Field | Description |
|---|---|---|
roomType | indoorTypeId | Room type option |
style | indoorStyleId | Interior style option |
elements | indoorElemId | Room element option. Supports multiple option IDs joined by comma, for example id1,id2 |
Each option contains name, id, and url. Pass the option id into the corresponding request field.
🎨 Color Guidance
colorString and colorImgUrl are optional color guidance inputs:
| Case | Behavior |
|---|---|
Only colorString is provided | Use colorString |
Only colorImgUrl is provided | Use the color reference image |
| Both are provided | colorString takes precedence |
| Neither is provided | Color guidance defaults to auto |
📌 API Endpoints
1. Create Interior Remodel Task
Endpoint
POST /api/v1/interiorRemodel/generate
Request Headers
| Header | Required | Description |
|---|---|---|
APIKEY | ✅ Yes | Your API authentication key |
Content-Type | ✅ Yes | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
imageUrl | string | ✅ Yes | URL of the source interior image |
prompt | string | ❌ Optional | Text guidance for the desired remodel |
indoorTypeId | string | ❌ Optional | Room type ID from roomType style options |
indoorStyleId | string | ❌ Optional | Interior style ID from style style options |
indoorElemId | string | ❌ Optional | Room element ID from elements style options. Supports multiple IDs joined by comma, for example id1,id2 |
colorString | string | ❌ Optional | Color palette string, for example [[174,238,238],[36,36,36]] |
colorImgUrl | string | ❌ Optional | Color reference image URL |
Only
imageUrlis required. All other fields are optional.
📥 Request Examples
cURL
curl -X POST "https://api.ideal.house/api/v1/interiorRemodel/generate" \
-H "APIKEY: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"imageUrl": "https://example.com/interior.jpg",
"prompt": "modern warm remodel with clean built-in storage",
"indoorTypeId": "Interior Design_Interior Scene_Living Room",
"indoorStyleId": "Interior_Interior Style_Popular_Modern Country",
"indoorElemId": "Interior Design_Scene Elements_Living Room_Shelving,Interior Design_Scene Elements_Living Room_Coffee Table",
"colorString": "[[174,238,238],[36,36,36],[117,64,95]]"
}'
Java (OkHttp)
import okhttp3.*;
import java.io.IOException;
public class InteriorRemodelApiExample {
private static final String BASE_URL = "https://api.ideal.house";
private static final String API_KEY = "your_api_key_here";
public static void main(String[] args) throws IOException {
OkHttpClient client = new OkHttpClient();
String requestBody = """
{
"imageUrl": "https://example.com/interior.jpg",
"prompt": "modern warm remodel with clean built-in storage",
"indoorTypeId": "Interior Design_Interior Scene_Living Room",
"indoorStyleId": "Interior_Interior Style_Popular_Modern Country",
"indoorElemId": "Interior Design_Scene Elements_Living Room_Shelving,Interior Design_Scene Elements_Living Room_Coffee Table",
"colorString": "[[174,238,238],[36,36,36],[117,64,95]]"
}
""";
Request request = new Request.Builder()
.url(BASE_URL + "/api/v1/interiorRemodel/generate")
.addHeader("APIKEY", API_KEY)
.addHeader("Content-Type", "application/json")
.post(RequestBody.create(requestBody, MediaType.parse("application/json")))
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println("Response: " + response.body().string());
}
}
}
Python (requests)
import requests
BASE_URL = "https://api.ideal.house"
API_KEY = "your_api_key_here"
headers = {
"APIKEY": API_KEY,
"Content-Type": "application/json"
}
payload = {
"imageUrl": "https://example.com/interior.jpg",
"prompt": "modern warm remodel with clean built-in storage",
"indoorTypeId": "Interior Design_Interior Scene_Living Room",
"indoorStyleId": "Interior_Interior Style_Popular_Modern Country",
"indoorElemId": "Interior Design_Scene Elements_Living Room_Shelving,Interior Design_Scene Elements_Living Room_Coffee Table",
"colorString": "[[174,238,238],[36,36,36],[117,64,95]]"
}
response = requests.post(
f"{BASE_URL}/api/v1/interiorRemodel/generate",
headers=headers,
json=payload
)
data = response.json()
task_id = data.get("data")
print(f"Task ID: {task_id}")
Node.js (axios)
const axios = require('axios');
const BASE_URL = 'https://api.ideal.house';
const API_KEY = 'your_api_key_here';
async function createInteriorRemodelTask() {
try {
const response = await axios.post(
`${BASE_URL}/api/v1/interiorRemodel/generate`,
{
imageUrl: 'https://example.com/interior.jpg',
prompt: 'modern warm remodel with clean built-in storage',
indoorTypeId: 'Interior Design_Interior Scene_Living Room',
indoorStyleId: 'Interior_Interior Style_Popular_Modern Country',
indoorElemId: 'Interior Design_Scene Elements_Living Room_Shelving,Interior Design_Scene Elements_Living Room_Coffee Table',
colorString: '[[174,238,238],[36,36,36],[117,64,95]]'
},
{
headers: {
APIKEY: API_KEY,
'Content-Type': 'application/json'
}
}
);
const taskId = response.data.data;
console.log('Task ID:', taskId);
return taskId;
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}
}
createInteriorRemodelTask();
📤 Response
{
"code": 0,
"message": "success",
"data": 1234567890123456789
}
2. Get Task Result
Endpoint
GET /api/v1/interiorRemodel/result
Request Headers
| Header | Required | Description |
|---|---|---|
APIKEY | ✅ Yes | Your API authentication key |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | long | ✅ Yes | Task ID returned by the create endpoint |
📥 Request Examples
cURL
curl -X GET "https://api.ideal.house/api/v1/interiorRemodel/result?taskId=1234567890123456789" \
-H "APIKEY: your_api_key_here"
Java (OkHttp)
import okhttp3.*;
import java.io.IOException;
public class InteriorRemodelResultExample {
private static final String BASE_URL = "https://api.ideal.house";
private static final String API_KEY = "your_api_key_here";
public static void main(String[] args) throws IOException {
OkHttpClient client = new OkHttpClient();
long taskId = 1234567890123456789L;
Request request = new Request.Builder()
.url(BASE_URL + "/api/v1/interiorRemodel/result?taskId=" + taskId)
.addHeader("APIKEY", API_KEY)
.get()
.build();
try (Response response = client.newCall(request).execute()) {
System.out.println("Response: " + response.body().string());
}
}
}
Python (requests)
import requests
import time
BASE_URL = "https://api.ideal.house"
API_KEY = "your_api_key_here"
headers = {"APIKEY": API_KEY}
task_id = 1234567890123456789
while True:
response = requests.get(
f"{BASE_URL}/api/v1/interiorRemodel/result",
headers=headers,
params={"taskId": task_id}
)
data = response.json()
result = data.get("data", {})
status = result.get("status")
print(f"Status: {status}, Progress: {result.get('percentage')}%, Queue: {result.get('waitNumber')}")
if status in ("Success", "Failed"):
break
time.sleep(3)
if status == "Success":
print("Result URL:", result["output"]["resultUrl"])
else:
print("Task ended with status:", status)
Node.js (axios)
const axios = require('axios');
const BASE_URL = 'https://api.ideal.house';
const API_KEY = 'your_api_key_here';
async function pollInteriorRemodelResult(taskId) {
const headers = { APIKEY: API_KEY };
while (true) {
const response = await axios.get(
`${BASE_URL}/api/v1/interiorRemodel/result`,
{
headers,
params: { taskId }
}
);
const result = response.data.data;
const { status, percentage, waitNumber } = result;
console.log(`Status: ${status} | Progress: ${percentage}% | Queue: ${waitNumber}`);
if (['Success', 'Failed'].includes(status)) {
if (status === 'Success') {
console.log('Result URL:', result.output.resultUrl);
console.log('Size:', result.output.width, 'x', result.output.height);
} else {
console.log('Task ended with status:', status);
}
break;
}
await new Promise(resolve => setTimeout(resolve, 3000));
}
}
pollInteriorRemodelResult(1234567890123456789n);
📤 Response Example
{
"code": 0,
"message": "success",
"data": {
"id": 1234567890123456789,
"status": "Success",
"waitNumber": 0,
"percentage": 100,
"input": {
"imageUrl": "https://example.com/interior.jpg",
"prompt": "modern warm remodel with clean built-in storage",
"indoorTypeId": "Interior Design_Interior Scene_Living Room",
"indoorStyleId": "Interior_Interior Style_Popular_Modern Country",
"colorString": "[[174,238,238],[36,36,36],[117,64,95]]"
},
"output": {
"resultUrl": "https://cdn.ideal.house/output/interior_remodel_result.jpg",
"width": 1024,
"height": 1024
}
}
}
Response (Task Processing / In Queue)
{
"code": 0,
"message": "success",
"data": {
"id": 1234567890123456789,
"status": "Processing",
"waitNumber": 1,
"percentage": 45,
"input": {
"imageUrl": "https://example.com/interior.jpg",
"prompt": "modern warm remodel with clean built-in storage"
},
"output": null
}
}
Response (Task Failed)
{
"code": 0,
"message": "success",
"data": {
"id": 1234567890123456789,
"status": "Failed",
"waitNumber": 0,
"percentage": 0,
"input": {
"imageUrl": "https://example.com/interior.jpg"
},
"output": null
}
}
📊 Task Status
| Status | Description |
|---|---|
Unprocessed | Task has been created and is waiting in queue |
Processing | Task is currently running |
Success | Task completed successfully |
Failed | Task failed and no output was produced |
Poll every 3-5 seconds. See API Task Limit.
❌ Error Responses
| Code | Name | Description |
|---|---|---|
1011 | PARAM_ERROR | Request parameter error |
5002 | API_KEY_INVALID | Invalid or missing API key |
9010 | SCAN_TEXT_ERROR | Prompt failed content review |
9038 | PROHIBITED_CONTENT | Generated image contains prohibited content |
9051 | COINS_NOT_ENOUGH | Insufficient credits |
For full common error definitions, see Error Code Reference.