Developers · /v1/floor-plans/redraw and /v1/cad
Floor plan API
Turn a hand sketch, a photo of a plan or a text brief into a clean 2D floor plan image in 30 seconds, or a dimensioned, layered CAD plan (DXF, DWG, PDF) in a few minutes. Revise any plan by instruction.


One request
curl https://api.20.vision/v1/floor-plans/redraw \
-H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
-d '{"image_url":"https://example.com/sketch-of-plan.jpg"}'The call answers 202 with a job; poll GET /v1/jobs/{id} or receive a signed job.succeeded webhook with the download links. Full reference: developer docs and the OpenAPI spec.
What you get
- Redraw (image): black walls on white, door swings, windows, room names and written dimensions; layout and proportions kept
- CAD (files): AI drafter makes a measured plan with layers, walls, openings, rooms and dimensions as DXF, DWG, A3 PDF and PNG
- Revise by instruction: POST /v1/cad/{job_id}/revise ("make bedroom 2 a home office") for "customize this plan" features
- Metric or feet-and-inches; credits by real usage, failed jobs free
Who uses it
Real-estate photographers adding floor plans to every listing, house-plan marketplaces, prefab and tiny-house builders, proptech apps.
FAQ
Is there a free tier or sandbox?
Every account gets sandbox keys (sk_test_...). Sandbox jobs run the full flow (queue, webhooks, files, errors) with sample outputs and cost nothing. Live keys (sk_live_...) use your account's credits.
Are outputs white-label?
Yes. Files carry no AI Architectures name, logo or watermark, and download links are on api.20.vision. Images keep a neutral machine-readable "AI-generated" EXIF tag, which EU law (AI Act Art. 50) asks for; you may resell outputs under your own brand.
How is usage billed?
In credits from the same account as the web apps: 100 credits per 2K image, 1,000 per 4K image; CAD drawings by real usage (typically 300-1,500 credits, never more than 2,500). Failed jobs cost nothing. Each key can have its own monthly credit limit.
How fast is it?
Image jobs take about 30 seconds; CAD drawings 2-6 minutes. Up to 8 image jobs and 4 CAD jobs run at once per account; more are queued automatically, not rejected.
What input formats work?
JPEG, PNG, WebP and HEIC (iPhone) up to 15 MB, as a public https image_url or base64 in the JSON body. Images are re-encoded; EXIF location data is not kept.