How to Use EVF-SAM2 in Instinct
EVF-SAM2 turns an English description into a selection mask for an existing image. Use it to isolate a named object or select hair and background regions with semantic segmentation for later editing.
Prompts to try with EVF-SAM2 in Instinct
Copy an example into Instinct, or ask in your own words.
Each morning, use EVF-SAM2 on new product photos in the review queue to select the handbag. Collect the masks for review before any edits.
Every Friday, use EVF-SAM2 on new portrait submissions to select hair using semantic segmentation. Prepare a contact sheet of the selections for review.
Each evening, use EVF-SAM2 on new landscape submissions to select the sea using semantic segmentation. Collect the masks for the color editor.
Each Monday, use EVF-SAM2 on new room photos to select the chair beside the window. Put the selections in the recoloring review queue.
Each afternoon, use EVF-SAM2 on new table photos to select the plate and exclude the fork. Collect the resulting masks for inspection.
How to set up EVF-SAM2 in Instinct
Pick the way that suits you. Each takes about two minutes.
Use the Spiral skill
- Send Instinct this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use Spiral's MCP server
- Create an API key
In the console, open API keys and create a key for Instinct. Copy it.
- Send Instinct this message
Instinct reads Spiral's skill and asks for your API key.
set up https://spiral.ai/SKILL.md
- Give Instinct the key
When Instinct asks for the key, add it where Instinct keeps secrets, never in the chat itself.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run EVF-SAM2
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "fal", "model": "fal-ai/evf-sam", "input": { "prompt": "Cat in the middle of the image", "image_url": "https://storage.googleapis.com/falserverless/web-examples/evf-sam2/evfsam2-cat.png" } }'
Then paste one of the prompts above: Instinct finds EVF-SAM2 on Spiral, shows the price and runs it.
EVF-SAM2 providers and prices
Spiral runs EVF-SAM2 through fal. Open a card for today's price, with every fee included.
Settings you can ask for
EVF-SAM2 works from your prompt and image URL. Ask Instinct for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Negative prompt | what to leave out, in words | Areas to exclude from segmentation (will be subtracted from prompt results) | |
| Semantic type | on or off | off | Enable semantic level segmentation for body parts, background or multi objects |
| Mask only | on or off | on | Output only the binary mask instead of masked image |
| Use grounding dino | on or off | off | Use GroundingDINO instead of SAM for segmentation |
| Revert mask | on or off | off | Invert the mask (background becomes foreground and vice versa) |
| Blur mask | 0 to 50 | 0 | Apply Gaussian blur to the mask. Value determines kernel size (must be odd number) |
| Expand mask | 0 to 20 | 0 | Expand/dilate the mask by specified pixels |
| Fill holes | on or off | off | Fill holes in the mask using morphological operations |
Every API field of EVF-SAM2 Segmentation is on its tool page: open its card above.
What can you do with EVF-SAM2 in Instinct?
Prepare reviewable image selections as new photos arrive on a schedule. Use EVF-SAM2 with a consistent English description, then collect the masks for inspection before downstream edits.
Product selections for recoloring
Use EVF-SAM2 to mask a specific shoe, bag, or chair in a product photo, then pass the selection to an editing tool.
Background replacement preparation
Use EVF-SAM2 with semantic segmentation to select a photo's background before replacing it in a separate editing step.
Hair color previews
Use EVF-SAM2 with semantic segmentation to select hair for a color preview. Inspect the selection before applying the edit.
One object in a crowded photo
Use EVF-SAM2 to select a target by its location or relationship to another object, such as the cup beside a plate.
Draft annotation masks
Use EVF-SAM2 to propose object masks from English descriptions, then have an annotator review them before adding them to a dataset.
Landscape editing selections
Use EVF-SAM2 with semantic segmentation to select a region such as the sea for a later color adjustment.
More on EVF-SAM2 and Instinct
Overview
EVF-SAM2 in other agents
Questions about EVF-SAM2 in Instinct
Can Instinct use EVF-SAM2?
Yes. Add Spiral to Instinct as an MCP server, and Instinct can find and run EVF-SAM2 like any built-in tool.
How much does EVF-SAM2 cost in Instinct?
$0.0065 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Instinct plan is separate.
Do I need a fal account to use EVF-SAM2 in Instinct?
You need no fal account. Instinct uses one Spiral API key for every tool, and Spiral runs EVF-SAM2 on its own fal account.
How long does it take to set up EVF-SAM2 in Instinct?
About two minutes: create an API key, then send Instinct this message, then give Instinct the key.
Does Instinct wait while EVF-SAM2 runs?
EVF-SAM2 runs in the background. Instinct starts the run, checks on it and gives you the image when it's ready.
What is EVF-SAM2 useful for?
Use EVF-SAM2 to select a region in an existing image by describing it. The resulting mask can serve as the selection for a later edit, such as changing a product's color or replacing a background.
How do I select one object when several look alike?
Name the object and add a visible detail or location, such as 'the red cup beside the plate.' EVF-SAM supports spatial descriptions, so a relationship to another object can help distinguish your target.
Which language should I use for EVF-SAM2 prompts?
Use English. The official demo specifies English-only support, so translate other languages before submitting the target description.
Can EVF-SAM2 select hair or a background region?
Yes. Use semantic segmentation for body parts, background regions, or multiple objects, then describe the region you want.
How do I exclude something from a selection?
Describe the region to keep in the positive description and the unwanted region in the negative description. EVF-SAM2 subtracts the negative selection from the positive result.
Start using EVF-SAM2 in Instinct
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Instinct:
set up https://spiral.ai/SKILL.md


