Quickstart
-
Make a key. Open Account, Developer API in the app and choose New key. A live key needs a confirmed email and any plan or credit pack. No plan yet? Pick Test: a test key is free and every design finishes with a sample picture, so you can build everything first. The key starts with
rmk_(orrmk_test_) and is shown once: keep it on your server.Terminal window export REMODELED_API_KEY="rmk_..." -
Install the SDK (or skip this and use curl).
Terminal window npm install remodeled-aiTerminal window pip install remodeled-aiNothing to install.
-
Make a design from our sample photo. This has the API fetch a sample living room, redesigns it in the Japandi style, and waits for the result (most designs take 20 to 60 seconds). To use your own photo, see the note after this step.
import Remodeled from 'remodeled-ai';const client = new Remodeled(); // reads REMODELED_API_KEYconst photo = await client.uploads.fromUrl('https://docs.remodeled.ai/examples/sample-living-room.jpg');const design = await client.designs.createAndWait({mode: 'remodel',inputAssetId: photo.id,room: 'Living room',style: 'Japandi',});console.log(design.images[0]?.asset.url);from remodeled import Remodeledclient = Remodeled() # reads REMODELED_API_KEYphoto = client.uploads.from_url("https://docs.remodeled.ai/examples/sample-living-room.jpg")design = client.designs.create_and_wait(mode="remodel",input_asset_id=photo["id"],room="Living room",style="Japandi",)print(design["images"][0]["asset"]["url"])Paste as one block (it uses jq to read the upload’s id):
Terminal window # 1. Have the API fetch the sample photo, and keep its idASSET_ID=$(curl -s -X POST https://api.remodeled.ai/public/v1/uploads \-H "Authorization: Bearer $REMODELED_API_KEY" \-H "Content-Type: application/json" \-d '{"url": "https://docs.remodeled.ai/examples/sample-living-room.jpg"}' | jq -r .id)# 2. Start the design and wait up to 60 seconds for itcurl -s -X POST https://api.remodeled.ai/public/v1/designs \-H "Authorization: Bearer $REMODELED_API_KEY" \-H "Content-Type: application/json" \-H "Prefer: wait=60" \-d "{\"mode\": \"remodel\", \"inputAssetId\": \"$ASSET_ID\", \"room\": \"Living room\", \"style\": \"Japandi\"}" \| jq -r '.images[0].asset.url // .status' -
Download the image.
images[].asset.urlis the full-size image. Download what you keep: files are kept as long as your plan keeps designs (keptUntil).
- Try other modes: staging, declutter, exteriors, edits and masks.
- Pick rooms and styles from the catalog.
- For many photos, use webhooks instead of waiting.
- Read going to production before you launch.