Click to select
Select any object with a click
Click a subject and MobileSAM draws its outline. Use the selection to erase it, cut it out or edit just that part.
$0.001
per run in the cloud
$0
on your own machine
One click
Click inside the object. Add more points to refine the selection.
Feeds the other tools
The mask goes straight to the magic eraser.
Light and fast
A small model that runs well on the CPU.
Reference
Inputs and parameters
The same on every surface: the desktop app, Claude through MCP and the API. Unknown parameters are refused, so a typo never runs with a default.
Inputs
| Name | Type | Limits | Notes |
|---|---|---|---|
| image required | image | 30 MB, 16 MP | Source image |
Parameters
| Name | Type | Default | Accepted | Notes |
|---|---|---|---|---|
| points required | points | · | [{x, y, label}], up to 16 | Clicks in image pixels: [{x, y, label}] with label 1 = include, 0 = exclude. |
| dilate | int | 0 | 0 to 64 |
Outputs
- maskmask, png
API
Run Click to select from the API
curl https://imference.com/tools/segment \
-H "Authorization: Bearer $IMFERENCE_API_KEY" \
-F image=@image.png \
-F 'params={"points": [{"x": 512, "y": 384, "label": 1}]}'
Files go in multipart fields named after the inputs; JSON works too, with {"inputs": {...}, "params": {...}} and https URLs or base64 data: URIs. The answer is a request_id: poll GET /status?request_id=... until it returns the outputs. Pay per call from a wallet instead at POST /ondemand/tools/segment. A run that fails is refunded to your credits. Details in the reference.
Specs
The details
- Price
- $0.001 · 1 credit
- Runs
- Local and cloud
- Download
- 44.7 MB, once
- License
- Apache-2.0
- Tool id
- segment 1.0.0
- MCP tool
- select_object
More tools
Often used with it
Convert / compress
Convert to PNG, JPEG or WebP and set the compression quality.
$0.001
Crop
Crop an image to a rectangle or to an aspect ratio (centered).
$0.001
Describe image
Write a detailed caption of an image, ready to reuse as a prompt (Florence-2).
$0.002
Magic eraser
Remove what the mask covers and fill it with matching background (LaMa).
$0.004
FAQ
Good to know
What do I get?
A black and white mask of the object, at the size of your image.
Does it need a GPU?
No. MobileSAM is light enough for the CPU.