# Specific Floor Planning > Generate a rendered image of a floor plan for a room based on the provided input as well as interior ## Overview - **Model ID**: `floor-planning` - **Category**: image - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/c8a13a83-8a7c-4bb1-a3c3-e41d0485d692.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/interior/floor_planning` - **Method**: POST ### Parameters - **`init_image`** (required): A URL to the initial image - Type: file (image/jpeg,image/png) - **`strength`** (required): The degree to which the prompt influences the initial image. 1.0 corresponds to full destruction of the initial image details. - Type: number (range: 0.1-1) - **`prompt`** (required): A text prompt describing the content you want in the generated image. - Type: textarea - **`scenario`** (required): The scenario to be changed, it includes beach, deserat , plain , taiga - Type: select (options: beach, deserat, plain, taiga) - **`guidance_scale`** (optional): The scale for classifier-free guidance. Minimum is 1, and maximum is 20. - Type: number (range: 1-20) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/interior/floor_planning \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "floor-planning", "init_image": "https://assets.modelslab.com/generations/7abe6c28-4235-406c-9a76-98e80da6d075", "strength": "0.7", "prompt": "rendering floor plan of the apartment layout,top view,white background,masterpiece, kitchen, living room, sofa, chair,bedroom,car best quality, extremely detailed,best illustration, best shadow", "scenario": "plain", "guidance_scale": "8" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/interior/floor_planning", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "floor-planning", "init_image": "https://assets.modelslab.com/generations/7abe6c28-4235-406c-9a76-98e80da6d075", "strength": "0.7", "prompt": "rendering floor plan of the apartment layout,top view,white background,masterpiece, kitchen, living room, sofa, chair,bedroom,car best quality, extremely detailed,best illustration, best shadow", "scenario": "plain", "guidance_scale": "8" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/interior/floor_planning", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "floor-planning", "init_image": "https://assets.modelslab.com/generations/7abe6c28-4235-406c-9a76-98e80da6d075", "strength": "0.7", "prompt": "rendering floor plan of the apartment layout,top view,white background,masterpiece, kitchen, living room, sofa, chair,bedroom,car best quality, extremely detailed,best illustration, best shadow", "scenario": "plain", "guidance_scale": "8" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/floor-planning/floor-planning) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)