[Models](/models)/[Segmentation](/models?category=segmentation)/facebook/sam-vit-huge

HFSegmentationApache 2.0

# sam-vit-huge

by facebook

Promptable foundation model for image segmentation

3.2Mdl/month

632Mparams

[HuggingFace](https://huggingface.co/facebook/sam-vit-huge)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`facebook/sam-vit-huge`

## Deploy sam-vit-huge

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

SAM (Segment Anything Model) is Meta's foundation model for image segmentation. Given prompts like points, boxes, or text, it produces high-quality object masks. Trained on SA-1B: the largest segmentation dataset with 1 billion masks on 11M images.

On Mixpeek, SAM powers pixel-level object segmentation for precise content understanding, enabling mask-based filtering and region-specific feature extraction.

## Architecture

ViT-H image encoder (632M params) with a lightweight mask decoder. Produces 256x256 low-res masks refined to full resolution. Supports multiple prompt types: points, boxes, and masks.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so sam-vit-huge runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // Boxes, masks, depth maps and anomaly scores are structured
          // results, not vectors. They go in payload and are reachable
          // through pre\_filters on a retriever, not through similarity.
          payload: {
            detections: modelOutput,
            source\_key: "archive/2026/asset-00412",
          },
        },
      \],
    }),
  },
);

// No managed alternative for an open label set. Two extractors do emit a
// bbox, for the one thing each detects: document\_graph\_extractor@v1 per
// layout block, face\_identity\_extractor@v1 per face. Nothing ships that
// returns masks, depth maps or anomaly scores.

## Capabilities

*   Promptable segmentation with points, boxes, or masks
*   Automatic mask generation for everything in an image
*   Zero-shot transfer competitive with supervised models
*   Trained on 1 billion masks (SA-1B dataset)

## Use Cases on Mixpeek

Pixel-level content segmentation in video and images

Automated mask generation for training data creation

Region-specific feature extraction pipelines

Interactive annotation assistance

## Benchmarks

Dataset

Metric

Score

Source

SA-1B (segmentation)

mIoU

79.3

Kirillov et al., 2023: Table 1

COCO (instance seg.)

AP

46.5

Kirillov et al., 2023: Table 7

## Performance

Input Size1024×1024 px

GPU Latency~42ms / image (A100)

CPU Latency~620ms / image

GPU Throughput~24 images/sec (A100)

GPU Memory~2.6 GB

Image encoder runs once; mask decoder runs per prompt (~6ms)

## Common Pipeline Companions

[

IDEA-Research/grounding-dino-base

Text-prompted box generation

](/model/IDEA-Research/grounding-dino-base)[

openai/clip-vit-large-patch14

Embed segmented regions

](/model/openai/clip-vit-large-patch14)

## Explore on Mixpeek

[

More Segmentation models

Compare alternatives in this category

](/models?category=segmentation)[

Best Computer Vision APIs

Hand-picked tools & platforms compared

](/curated-lists/best-computer-vision-apis)[

Mask-Aware Retrieval

Deep-dive technical guide

](/guides/mask-aware-retrieval-for-ai-agents)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationfacebook

FeatureSegmentation

Outputmask + label

Modalitiesvideo, image

RetrieverMask Filter

Parameters632M

LicenseApache 2.0

Downloads/mo3.2M

[

### Research Paper

Segment Anything

arxiv.org](https://arxiv.org/abs/2304.02643)

### Build a pipeline with sam-vit-huge

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

facebook/sam2.1-hiera-large

Segmentation

](/model/facebook/sam2.1-hiera-large)[

facebook/sam3

Segmentation

](/model/facebook/sam3)[

facebook/sam3.1

Segmentation

](/model/facebook/sam3.1)[

netflix/void-model

Segmentation

](/model/netflix/void-model)