The Kreo AI Search API, our takeoff API for construction drawings, can now start a search from a sample. Draw a box around one symbol and get every match on the sheet. Click inside an area and get its outline. Pass the shape of an area you already measured and get the ones that look like it.
All three run through the same Run AI Search endpoint, with no breaking changes.
Auto Count: count symbols from one sample
Draw a box around one symbol, such as a socket, a light fixture or a sprinkler head, and the API returns every matching symbol on the page. It finds rotated and mirrored copies too.

Send type: "count" with sampleBox: [x1, y1, x2, y2]. The optional countConfig object controls the search:
dpi and modelVersion have no effect on count searches.
{
"type": "count",
"sampleBox": [100, 110, 140, 120],
"countConfig": { "clusterMode": "medium", "filterMode": "disable" }
}Get AI Search Result returns a boxes array. Each item has box (the [x1, y1, x2, y2] pixel coordinates), confidence (0.0 to 1.0) and clusterIndex when you set clusterMode.
One-click Area: positive and negative points
Click inside the area you need and the API draws its outline. If the outline takes too much, add a negative point where it shouldn't reach, and the area is redrawn without that part.

Send type: "polygon" with up to 6 points in pixel coordinates. Mark each one in pointMarks: true for a positive sample, false for a negative one. The first point must be positive. For landscaping and other irregular edges, set disableSnapping: true.
{
"dpi": 150,
"type": "polygon",
"points": [
[20, 25],
[22, 24],
[25, 27]
],
"pointMarks": [true, false, true]
}
Find Similar with AI: measure one area, find the rest
Outline an area once and the API finds the other areas on the drawing that look like it. Give it up to four samples to show what you're after.

Send type: "polygon" with sampleContours, an array of contours where each contour is an array of [x, y] points.
{
"dpi": 150,
"type": "polygon",
"sampleContours": [
[
[10, 10],
[10, 20],
[20, 20],
[20, 10]
],
[
[100, 100],
[100, 200],
[200, 210],
[210, 90],
[150, 100]
]
]
}One-click Area and Find Similar with AI return the same response as other polygon searches: each item in contours has area, perimeter, points, holes, text and confidence.
Note: each polygon request uses exactly one search method. Send either text, or points with pointMarks, or sampleContours, and leave out the other parameters.
These features work alongside Auto Measure 3.0 and text extraction, released the same week.
What you can vibe-code with the takeoff API
We gave an AI coding tool the API docs and asked for apps. The API is easy for an AI to build on: five calls (upload, create project, set scale, run search, get result), JSON in and JSON out, and one polling loop. Here are two apps we got back in [TIME].
Kreo Area Lab: a Windows 95 measuring app
The retro look was a joke, but the workflow is real. You drop in a PDF or an image, set the scale and tick what to find: rooms, walls, doors or windows. Then you choose model 3.0 and press Run. The app sends the request, waits for the job, and paints every room it finds onto the drawing. The request, the raw API response and an event log sit next to the drawing, so it doubles as a debugging tool. Results can be filtered by confidence and exported to CSV or JSON.
.avif)
Kreo One-Click Studio: measure by typing
This one has no tool picker. You type what you want, for example "Duplex Block GEA" or "measure the full building footprint", and the app places positive and negative points on the sheet and calls One-click Area. Every measurement becomes its own layer, with its points, area and DPI.
Then a second AI checks the work. A judge model looks at the full sheet and a zoomed crop and scores the result on match, exclusions and boundaries. If it finds a gap, it says what is wrong ("incomplete coverage of target area, add positive points"), and the app moves the points and runs Kreo again. With Auto-Judge on, it tries up to three times before it shows you the answer.

Ideas for your own build
- A room schedule that fills your own Excel template, from one
spacesearch with thelabelandclassificationextractors - Door and window schedules with marks and types, from one
doorand onewindowsearch - An electrical count sheet: draw a box around each fixture type and let Auto Count do the rest
- No screen at all: connect the API to Claude or ChatGPT and ask for the GIA in chat
Get started: give your AI tool the Kreo AI Search API documentation and an API key. Two things in the docs save the most time: poll Get AI Search Result until the status is no longer Calculating, and send only one polygon search method per request.
FAQ
Do Auto Count, One-click Area and Find Similar need a new endpoint?
No. They all use Run AI Search and Get AI Search Result. Existing integrations keep working.
How many samples can I send?
One sample box for Auto Count, up to 6 points for One-click Area, and up to 4 sample contours for Find Similar with AI.
Does Auto Count find rotated or mirrored symbols?
Yes, by default. Set disableRotation or disableFlipping to turn either off.
Full reference: Kreo AI Search API docs. Questions: info@kreo.net or the in-app chat.



.png)