# Sketch to Render > Turn architectural sketches, floor plans, and elevations into photorealistic 2K renders — interior or exterior, in 45+ styles. ## Overview - **Endpoint**: `https://queue.modelrunner.run/roomix/sketch-to-render` - **Wrapper ID**: `roomix/sketch-to-render` - **Category**: image-to-image - **Kind**: wrapper inference - **Tags**: architecture, sketch, render, floor plan, interior design, exterior design, visualization, rendering ## Pricing - **Estimated Price**: $0.08766667 average per output ## Request Lifecycle This wrapper runs on the ModelRunner **asynchronous queue API** — a single POST does not return the output. Every call requires an `Authorization: Key $MODEL_RUNNER_KEY` header. Run three steps: 1. **Submit** — `POST https://queue.modelrunner.run/roomix/sketch-to-render` with a JSON body holding the input fields at the top level. The body may also include a reserved top-level `metadata` object — a flat string map (max 16 keys, key ≤64 / value ≤512 chars) stored on the request for your own tagging. It is never sent to the wrapper; filter your request history with `GET https://queue.modelrunner.run/requests?metadata=` (exact key=value matches, AND-ed). The response carries request handles only (no output yet): ```json { "status": "IN_QUEUE", "request_id": "<21-char id>", "status_url": "https://queue.modelrunner.run/roomix/sketch-to-render/requests//status", "response_url": "https://queue.modelrunner.run/roomix/sketch-to-render/requests/", "cancel_url": "https://queue.modelrunner.run/roomix/sketch-to-render/requests//cancel" } ``` 2. **Poll status** — `GET ` until `status` is `COMPLETED`. Possible values are `IN_QUEUE`, `IN_PROGRESS`, `COMPLETED`, `FAILED`, `CANCELLED`. A `FAILED` request responds with HTTP 400 and an `error` field. 3. **Read result** — `GET `. Returns the finished request, including the generated `output`: ```json { "id": "", "status": "COMPLETED", "output": ..., "input": ... } ``` The JavaScript and Python SDKs below perform steps 2–3 for you. In any language without an SDK (Swift, Go, Kotlin, etc.) you must implement the polling loop and the final result fetch yourself — see the cURL example for the full flow. ### Input Schema - **`image`** (`string`, _required_): The architectural sketch to render — a hand drawing, line sketch, floor plan, section, or elevation. Photos of paper sketches work too. - **`scene`** (`string`, _optional_): For perspective sketches ('drawing'): whether the sketch shows a building exterior or an interior space. 'auto' infers it from the sketch. Ignored for floorplan/section/elevation. - Default: `"auto"` - Options: `"auto"`, `"exterior"`, `"interior"` - **`style`** (`string`, _optional_): The architectural / design style for the render. 'no-style' keeps whatever the sketch implies. - Default: `"no-style"` - Options: `"no-style"`, `"minimalist-haven"`, `"modern-fusion"`, `"contemporary-elegance"`, `"industrial-loft"`, `"bohemian-oasis"`, `"coastal-breeze"`, `"desert-retreat"`, `"mountain-escape"`, `"victorian-elegance"`, `"art-deco-glamour"`, `"mid-century-modern"`, `"french-country-charm"`, `"colonial-classic"`, `"mediterranean-villa"`, `"scandinavian-simplicity"`, `"japanese-zen"`, `"gothic-revival"`, `"rustic-farmhouse"`, `"tropical-paradise"`, `"urban-chic"`, `"shabby-chic"`, `"eclectic-mix"`, `"futuristic-vision"`, `"retro-revival"`, `"hollywood-regency"`, `"traditional-estate"`, `"wabi-sabi"`, `"bauhaus-inspired"`, `"brutalist-statement"`, `"cyberpunk-dreams"`, `"steampunk-fantasy"`, `"arabian-nights"`, `"moroccan-magic"`, `"tuscan-sun"`, `"alpine-lodge"`, `"asian-fusion"`, `"classic-americana"`, `"english-cottage"`, `"spanish-revival"`, `"modern-farmhouse"`, `"craftsman-bungalow"`, `"neoclassical"`, `"cape-cod"`, `"a-frame-cabin"`, `"georgian-manor"` - **`prompt`** (`string`, _optional_): Optional extra instructions — materials, colors, furnishings, or anything specific you want in the render. - **`season`** (`string`, _optional_): Season for vegetation and atmosphere (mostly affects exteriors). - Default: `"auto"` - Options: `"auto"`, `"spring"`, `"summer"`, `"autumn"`, `"winter"` - **`fidelity`** (`string`, _optional_): How closely to follow the sketch. 'strict' reproduces the geometry exactly (best for CAD/precise drawings), 'balanced' keeps the layout but fills in unspecified detail (best for rough sketches), 'creative' treats the sketch as a concept to elaborate on. - Default: `"strict"` - Options: `"strict"`, `"balanced"`, `"creative"` - **`image_size`** (`string`, _optional_): Output size ({aspect}_{resolution}). Pick the aspect ratio closest to your sketch so framing is preserved; 2k is recommended, 4k for print-quality boards (4k costs more on the default base model's megapixel pricing). - Default: `"4_3_2k"` - Options: `"4_3_2k"`, `"3_4_2k"`, `"16_9_2k"`, `"9_16_2k"`, `"1_1_2k"`, `"3_2_2k"`, `"2_3_2k"`, `"21_9_2k"`, `"4_3_4k"`, `"16_9_4k"`, `"1_1_4k"` - **`environment`** (`string`, _optional_): Surroundings/context for exterior renders. - Default: `"auto"` - Options: `"auto"`, `"urban"`, `"suburban"`, `"countryside"`, `"forest"`, `"waterfront"`, `"mountain"`, `"desert"`, `"tropical"` - **`sketch_view`** (`string`, _optional_): What kind of drawing the sketch is: 'drawing' = perspective sketch, 'floorplan' = 2D plan (rendered as a furnished 3D floor plan seen from above), 'section' = cross-section, 'elevation' = straight-on facade drawing. - Default: `"drawing"` - Options: `"drawing"`, `"floorplan"`, `"section"`, `"elevation"` - **`time_of_day`** (`string`, _optional_): Lighting scenario for the render. - Default: `"auto"` - Options: `"auto"`, `"morning"`, `"midday"`, `"golden-hour"`, `"dusk"`, `"night"` - **`num_variants`** (`string`, _optional_): Number of render variants in one run. Only honored on the Seedream base model — the default Nano Banana 2 base model always returns 1 image per run. Each variant is billed as one output. - Default: `"1"` - Options: `"1"`, `"2"`, `"3"`, `"4"` ### Output Schema _No `Output` schema properties are available._ ## Default Example **Output** ```json "IXxC5LFCatNoHuFo3AVK6" ``` ## Usage Examples ### cURL The queue API is asynchronous: submit the request, poll `status_url` until it is `COMPLETED`, then read the result from `response_url`. Requires `jq`. ```bash # 1. Submit the request (returns request handles, not the output) SUBMIT=$(curl --silent --request POST \ --url https://queue.modelrunner.run/roomix/sketch-to-render \ --header "Authorization: Key $MODEL_RUNNER_KEY" \ --header "Content-Type: application/json" \ --data '{ "image": "" }') STATUS_URL=$(echo "$SUBMIT" | jq -r '.status_url') RESPONSE_URL=$(echo "$SUBMIT" | jq -r '.response_url') # 2. Poll until the request leaves the queue / in-progress state while true; do STATUS=$(curl --silent --url "$STATUS_URL" \ --header "Authorization: Key $MODEL_RUNNER_KEY" | jq -r '.status') echo "Status: $STATUS" case "$STATUS" in COMPLETED) break ;; FAILED|CANCELLED) echo "Request $STATUS"; exit 1 ;; esac sleep 1 done # 3. Read the finished request, including the generated output curl --silent --url "$RESPONSE_URL" \ --header "Authorization: Key $MODEL_RUNNER_KEY" ``` ### JavaScript ```javascript import { modelrunner } from "@modelrunner/client"; const result = await modelrunner.subscribe("roomix/sketch-to-render", { input: { "image": "" } }); console.log(result.data); ``` ### Python ```python import asyncio import modelrunner_ai async def main(): response = await modelrunner_ai.submit_async( "roomix/sketch-to-render", arguments={ "image": "" } ) result = await response.get() print(result["output"]) asyncio.run(main()) ``` ## Additional Resources - [Playground](https://modelrunner.ai/wrappers/roomix/sketch-to-render) - [OpenAPI Schema](https://modelrunner.ai/wrappers/roomix/sketch-to-render/openapi.json) - [LLM Instructions](https://modelrunner.ai/wrappers/roomix/sketch-to-render/llms.txt)