# Sketch Renderer > This endpoint transforms exterior house sketches into realistic photographs based on your prompt as well as interior ## Overview - **Model ID**: `sketch-renderer` - **Category**: image - **Provider**: modelslab - **Status**: active - **Screenshot**: `https://assets.modelslab.com/generations/5b54a23d-925a-4d8b-8067-7b68cd199af2.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/sketch_rendering` - **Method**: POST ### Parameters - **`init_image`** (required): Please provide a URL to the original image of the room that will serve as the basis for the floor plan - Type: file - **`strength`** (required): Strength shows how much the AI should copy the image — 0.1 means it copies just a little, and 1.0 means it copies almost everything - Type: number (range: 0.1-1) - **`prompt`** (required): Text prompt describing the desired layout and features for the generated floor plan image - Type: textarea - Example: Please Enter your prompt - **`guidance_scale`** (optional): Guidance scale (1–20) Controls how strongly the prompt influences the image generation. - Type: number (range: 1-20) - **`num_inference_steps`** (optional): The number of denoising steps. Acceptable values are 21, 31, or 41. - Type: number (range: 21-41) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/interior/sketch_rendering \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "sketch-renderer", "init_image": "https://assets.modelslab.com/generations/aa795482-98ca-4b22-9184-90f0a7121a38", "strength": "0.45", "prompt": "Modern 3-story house with boxy design, large black-framed windows, glass balconies, wood accents, flat roof, minimalist style, surrounded by tall trees, ultra-realistic.", "guidance_scale": "7.5", "num_inference_steps": "31" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/interior/sketch_rendering", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "sketch-renderer", "init_image": "https://assets.modelslab.com/generations/aa795482-98ca-4b22-9184-90f0a7121a38", "strength": "0.45", "prompt": "Modern 3-story house with boxy design, large black-framed windows, glass balconies, wood accents, flat roof, minimalist style, surrounded by tall trees, ultra-realistic.", "guidance_scale": "7.5", "num_inference_steps": "31" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/interior/sketch_rendering", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "sketch-renderer", "init_image": "https://assets.modelslab.com/generations/aa795482-98ca-4b22-9184-90f0a7121a38", "strength": "0.45", "prompt": "Modern 3-story house with boxy design, large black-framed windows, glass balconies, wood accents, flat roof, minimalist style, surrounded by tall trees, ultra-realistic.", "guidance_scale": "7.5", "num_inference_steps": "31" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/sketch-renderer/sketch-renderer) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)