SAM 3.1 Image
SAM 3.1 from Meta AI is a promptable image segmentation model with Object Multiplex for joint multi-object tracking. Segment subjects from a text prompt (or optional point/box prompts) and return applied masks ready for compositing and asset pipelines: https://fal.ai/models/fal-ai/sam-3-1/image
See more
SAM 3.1 from Meta AI is a promptable image segmentation model with Object Multiplex for joint multi-object tracking. Segment subjects from a text prompt (or optional point/box prompts) and return applied masks ready for compositing and asset pipelines: https://fal.ai/models/fal-ai/sam-3-1/image
Connect Claude, Cursor, VS Code, or Codex to Layer’s MCP server and SAM 3.1 Image becomes a tool your agent can reach for — it picks the parameters, runs the generation, and shows you the result in the conversation.
https://mcp.app.layer.ai/mcpAsk your agent
“Use SAM 3.1 Image to generate 4 variations of a crystal sword icon on a transparent background.”
execute_forge({
"base_model_id": "sam-3-1-image",
"prompt": "A crystal sword icon on a transparent background, game UI art",
"batch_size": 4,
"width": 1024,
"height": 1024
})Authenticate with a personal access token, post the model’s own form, and poll the inference until it completes. Every field below is accepted by this endpoint.
# Start the generation — returns an inference id straight away.
curl -X POST https://api.app.layer.ai/api/v2/workspaces/$WORKSPACE_ID/base-models/sam-3-1-image/inferences \
-H "Authorization: Bearer $LAYER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A crystal sword icon on a transparent background, game UI art"
}'
# Poll until status is "complete" — the response then carries the asset URLs.
curl https://api.app.layer.ai/api/v2/workspaces/$WORKSPACE_ID/inferences/$INFERENCE_ID \
-H "Authorization: Bearer $LAYER_TOKEN"- prompt stringrequired
- Describe what to generate, or the change to make.
- guidance_file_init_image file[]required
- The image to modify
- output_fit any
- Trim the transparent margin, and place the image on a canvas of a fixed size.
- prompt_language string
- The language the prompt is written in, so it reaches the model as you meant it.
Why use SAM 3.1 Image for image?
High-quality image generation
SAM 3.1 Image delivers production-ready outputs with clean structure, sharp detail, and strong prompt adherence. Ideal for character art, environments, and marketing assets.
Strong prompt control
The model interprets creative instructions with high accuracy, even when switching between different styles, lighting setups, or character directions.
Clean compositions for UA
Maintains stable framing, clear silhouettes, and high focal clarity. Assets read well at mobile sizes, making it strong for UA experiments and ad creatives.
Rapid character and cosmetic ideation with strong structure
Quickly explore character poses, cosmetic ideas, and early art directions. Clean silhouettes and expressive results help teams evaluate concepts before moving to heavier models.
Fast UA creative exploration and thumbnail testing
Generate clear, high-readability frames that work well for quick A/B testing across networks. Test multiple creative angles and iterate quickly based on results.
Lightweight environment and item exploration for LiveOps
Draft environments, themed content, shop items, and event visuals in a rapid loop. Ideal for early-stage direction setting before committing to final polish.
FAQ
How much does SAM 3.1 Image cost? Is it free?+
How does Layer's pricing work?+
There are no seat fees, feature gates, or plans on Layer. Instead, our platform uses a consumption based system with Creative Units (CUs) with a flexible monthly subscription. Every generation on Layer (image, video, 3D, or audio) consumes a Creative Unit, and you only pay for what you create.
Other image models on Layer
Muse Image 1.0
Meta
Meta's Muse Image model with faithful instruction-following and precise multi-reference editing.
Recraft V4.1 Vector
Recraft
Recraft's V4.1 text-to-vector model. Generates scalable vector art (SVG) directly from a prompt.
FLUX Pro VTO
Black Forest Labs
Virtual try-on from Black Forest Labs: dress a person photo with a garment reference.
Recraft V4.1 Pro Vector
Recraft
Recraft's V4.1 Pro text-to-vector model. Generates scalable vector art (SVG) directly from a prompt.
Topaz CGI
Topaz Labs
Topaz's precision upscaler for rendered art and CG rather than photographs.
Image to SVG
fal
Convert raster images to clean, scalable SVG vector graphics with fine-grained control over detail.