← All examples

Price Estimation

Submit a room image with estimation parameters and display the estimated price range with confidence scores — in both imperial and metric unit systems, from two concurrent dwm.estimates.create() calls. The analysis runs asynchronously on the service; the SDK waits for it, so each call simply resolves with the finished estimate.

Mock mode is on. Every DesignWithMe API call on this page is answered by a mock running inside the browser — no API key, and no request leaves the tab. The SDK is unchanged and the wire shapes are the real ones, but the results are canned fixtures, so read them as shapes rather than answers. Drop ?mock=1 from the URL to call the live service with your own key.

1Connect

There is no separate authenticate step — createDesignWithMe() signs in on its first real call below.

Settings persist across every example page for this browser tab. Change them, then reload the page to build a new client.

2Request an estimate

The service analyzes the room photo and returns a summary of the room, floor/wall areas, a cost range with a per-component breakdown, and a confidence score for every figure. The photo must already be in DesignWithMe storage — a gs:// URI or a path in your environment's bucket; a public https:// URL is rejected. This page requests both unit systems so you can compare.

Activity feed

One subscription, dwm.on('activity', ...), sees every event this client emits — the same feed powers dwm.activity.log.