SAM 2 (Segment Anything 2)

Popular
Meta
Multimodal

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

Try SAM 2 (Segment Anything 2) now
Send a single prompt and stream a response inline. Hit Cmd+Enter to submit.
Sign in to try this model with €5 free credits.
Sign in
Press Cmd+Enter to send
Response appears here.
TL;DRΒ·Last updated May 16, 2026

SAM 2 (Segment Anything 2) is multimodal AI model from Meta, priced at €0.000 per 1M input tokens with a unknown context window.

Try SAM 2 (Segment Anything 2)

0.7

Sign in to generate β€” 50 free credits on sign-up

Pricing

Price per Generation
Per generation€0.01

API Integration

Use our OpenAI-compatible API to integrate SAM 2 (Segment Anything 2) into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

// Simple β€” just pass a string
const reply = await rw.run("sam-2", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("sam-2", [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content: "Explain quantum computing simply." },
]);
console.log(reply2);

// Full response with usage info
const res = await rw.chat("sam-2", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Price
€0.01
Developer
Meta
Category
Multimodal
Supported Formats
image
video
Tags
replicate
segmentation
meta
vision-understanding
open-weights

Frequently asked questions

Start using SAM 2 (Segment Anything 2) today

Get started with free credits. No credit card required. Access SAM 2 (Segment Anything 2) and 100+ other models through a single API.