SAM 2 (Segment Anything 2)

MultimodalAvailable
by MetaModel ID: sam-2

Meta Segment Anything 2. Promptable segmentation across images and video with temporal memory. Zero-shot, point/box/mask prompts, fast on a single H100.

Price
โ‰ˆ $0.018/run
Input โ†’ output
Text + Image + Video โ†’ Text
Developer
Meta
Updated
September 23, 2026
01

Playground

Try SAM 2 (Segment Anything 2)

No input form

โ‰ˆ $0.018/run

No input form for this model yet

Its inputs are not documented yet. So that no run fails on a wrong input, we don't offer a form here. Pick a comparable model instead.

02

Examples

Real outputs from the public examples of this model on Replicate, with the prompt and settings that produced them. They were not generated live on this page.
  • Example output 1 from SAM 2 (Segment Anything 2)Open full size
    InputInput

    No text prompt: the model only takes the input shown.

  • Example output 2 from SAM 2 (Segment Anything 2)Open full size
    InputInput

    No text prompt: the model only takes the input shown.

03

About SAM 2 (Segment Anything 2)

TL;DRAs of September 23, 2026

SAM 2 (Segment Anything 2) is a model by Meta in the Multimodal category. On Railwail, SAM 2 (Segment Anything 2) costs โ‰ˆ $0.018 per run.

04

Pricing

Prices in US dollars. Usage is charged from prepaid credits.
Typical run (โ‰ˆ 15 s on L40S)$0.018 per run
GPU time (L40S)$0.00117 per GPU second
  • Billed by the GPU time the run actually takes. When the run starts, 3ร— the typical price is reserved from your balance and settled afterwards.
  • 1 credit = $0.01

Cost calculator

Price calculator

s

Typical according to the provider: about 15.4 s

Total

$1.80

180 credits

Per run

$0.018 ยท 1.8 credits

Billed by the actual GPU time; this is an estimate.

05

API

Call SAM 2 (Segment Anything 2) with your Railwail API key. Use this model ID in the request:

No verified API example

The public API passes a different input format than this model needs. Use the playground above.

06

Specifications

Model ID
sam-2
Developer
Meta
Category
Multimodal
Input
Text, Image, Video
Output
Text
Billing
By usage (tokens or GPU time)
Catalog entry updated
September 23, 2026

Tags

  • replicate
  • segmentation
  • meta
  • vision-understanding
  • open-weights
07

Frequently asked questions

What is SAM 2 (Segment Anything 2)?

SAM 2 (Segment Anything 2) is a model by Meta in the Multimodal category.

How much does SAM 2 (Segment Anything 2) cost on Railwail?

On Railwail, SAM 2 (Segment Anything 2) costs โ‰ˆ $0.018 per run. You are charged for what each request actually uses. Usage is paid from prepaid credits; 1 credit equals $0.01.

How fast is SAM 2 (Segment Anything 2)?

There are not enough measured runs of SAM 2 (Segment Anything 2) on Railwail yet to state a run time. It depends on the input, the settings and the load at the provider.

Is SAM 2 (Segment Anything 2) better than BLIP?

That depends on the task. SAM 2 (Segment Anything 2) (Meta) and BLIP (Salesforce) are both models in the Multimodal category. The comparison page shows their prices and specifications side by side.

Compare SAM 2 (Segment Anything 2) and BLIP

Can SAM 2 (Segment Anything 2) process images?

Yes. SAM 2 (Segment Anything 2) accepts images as input in addition to text.

08

Comparable models

All in this category
  • BLIPSalesforce

    Salesforce BLIP. Vision-language model for image captioning and visual question answering. Given an image it writes a short natural-language caption, or answers a question about the image when one is supplied. A widely used baseline for automatic captioning.

    โ‰ˆ $0.00030/run

    98 % cheaper per unit

    Compare SAM 2 (Segment Anything 2) vs. BLIP
  • pharmapsychotic's CLIP Interrogator. Takes an image and produces a Stable-Diffusion-style text prompt by combining BLIP captioning with CLIP to rank likely subjects, artists, mediums and styles. Commonly used to reverse-engineer a prompt from an existing picture.

    โ‰ˆ $0.0457/run

    154 % more expensive per unit

    Compare SAM 2 (Segment Anything 2) vs. CLIP Interrogator
  • Monocular depth-estimation model trained on 595k labeled and 62M unlabeled images. Strong zero-shot generalization in indoor and outdoor scenes.

    โ‰ˆ $0.0050/run

    72 % cheaper per unit

    Compare SAM 2 (Segment Anything 2) vs. Depth Anything v2

All models through one API

One API key for every model on Railwail. Usage is charged from prepaid credits, 1 credit = $0.01.