Meta Segment Anything Model 2, or SAM 2, is a free AI model from Meta. It selects objects in images and tracks them across videos. Meta released SAM 2 on July 29, 2024. The model creates masks that mark each selected object’s shape. Users can guide selections with clicks, points, and boxes. Developers can also run the model using free code. SAM 2 suits video editors, researchers, and software teams. It focuses on object selection rather than image creation. Meta also offers a web demo for basic tasks. The current code includes improved SAM 2.1 models.
Who makes Meta Segment Anything Model 2?
Meta makes SAM 2 through its Fundamental AI Research team. The team studies how computers understand images and videos. SAM 2 builds on Meta’s first Segment Anything Model. That earlier model focused mainly on still images. SAM 2 added support for objects moving through videos. Both models help computers find objects by their shapes. Meta released the first SAM model in April 2023. SAM 2 followed in July 2024.
Meta shares SAM 2 through its public research code library. Developers can access the code and trained model files. The project also provides guides and working code examples. Its Apache 2.0 license allows broad use and changes. Teams must still follow the license terms. The separate training data can have different license rules. These details matter when building a product for customers. Meta also shares research papers explaining the model. These papers cover design choices, training data, and results.
SAM 2 belongs to the wider Image Generation & Editing field. However, its main task is object selection. It does not create new pictures from written requests. Tools like Stable Diffusion focus on making images. Midjourney also serves a different creative goal. SAM 2 can help prepare objects for later edits. This makes it useful alongside other image tools. Its value comes from finding objects, not drawing them.
What does Meta Segment Anything Model 2 do?
Meta Segment Anything Model 2 identifies selected objects within visual content. It marks the pixels that belong to each object. These marked areas are called masks. A user can click an object to guide selection. A box can also show which area matters. The model then predicts the object’s outline. Users can give more guidance when the outline looks wrong. This supports careful selection without tracing every edge by hand.
SAM 2 also follows selected objects across video frames. A frame is one still image within a video. The model uses earlier frames to guide later selections. This helps track objects as they move. Objects can still become hard to follow when hidden. Similar objects can also confuse the selection process. Users should review the masks throughout the video. A good first frame does not ensure every frame works.
SAM 2 can support many different editing tasks. An editor might isolate a moving person. A researcher might track animals in field footage. A developer might mark objects for a training set. The model can also support masks for image effects. However, another program must apply most finished effects. The model mainly supplies object boundaries and tracking data. For broader editing choices, see AI Image Generator Editing Features Compared. That guide covers tools with different creative tasks.
How is Meta Segment Anything Model 2 positioned in AI image editing?
Meta Segment Anything Model 2 serves a focused editing role. It helps identify where one object ends and another begins. That task is useful before removing or changing backgrounds. It can also help place effects on moving subjects. Unlike image generators, SAM 2 needs existing visual content. It does not build complete scenes from a text request. Its main output is a mask, not finished artwork.
This difference matters when choosing an image tool. SAM 2 suits people who already have source images. It also suits teams working with video clips. Shutterstock serves users looking for visual assets. Magnific serves a different image improvement task. Neither has the same core purpose as SAM 2. Pick tools based on the actual job. Object tracking and image creation are not the same task.
SAM 2 also suits software teams building custom workflows. Its public code can run within developer projects. That offers more control than a fixed editing screen. However, setup requires technical work and suitable hardware. Beginners may prefer the web demo for early learning. Developers can use the local code for deeper changes. The free versus paid image tools guide explains other cost factors. Free software can still need paid computing resources.
What changed recently?
Meta Segment Anything Model 2 received several major updates after launch. Meta released SAM 2.1 during September 2024. This update brought improved model files and training code. It also made the web demo code available. The new files improved results for some difficult objects. These include similar objects and partly hidden subjects. SAM 2.1 became the main updated release in the project.
Another update arrived on December 11, 2024. It added an option to speed up video processing. It also improved tracking when several objects appear together. Users could add new objects after tracking had begun. These changes made longer tracking workflows more flexible. The official release notes describe the technical details. They do not promise perfect tracking in every scene.
Meta later expanded access through Amazon SageMaker JumpStart. That route supports managed model deployment through AWS. The base code remains available for local use. In 2025, Meta also introduced the newer SAM 3 family. SAM 3 added selection based on text descriptions. Its project received another update in March 2026. These newer releases do not remove SAM 2’s free code. They do give developers another option to compare. The SAM 2 release notes list no newer named SAM 2 update.
What Meta Segment Anything Model 2 does not do
Meta Segment Anything Model 2 does not create finished images. It cannot replace a full video editing program. It produces masks that other tools can use. Users still need software for cuts, sound, and effects. SAM 2 also does not offer text-based object search. The newer SAM 3 adds that type of input. SAM 2 mainly uses visual hints for object selection.
SAM 2 can also make mistakes in difficult scenes. Fast motion may make object tracking harder. Hidden objects can create gaps in selected areas. Similar subjects may cause unwanted changes between objects. Thin edges can also need closer review. The improved models help with some of these problems. They do not remove the need for human checks. Important masks should be reviewed before final use.
Local setup also has limits. Meta recommends Linux and recent Python tools. Some features work best with suitable graphics hardware. Windows users may need a Linux-based setup. The free code does not include managed cloud hosting. Teams must plan their own hardware and running costs. Meta does not publish a universal file-size limit. Real limits depend partly on the chosen setup. Long videos can need more memory and computing power.
Meta Segment Anything Model 2 integrations and connectors
Meta Segment Anything Model 2 works with Python-based projects. Its official code uses PyTorch for model processing. Developers can load images and create object masks. They can also process video clips through supplied code. Example notebooks help explain these workflows. The project includes tools for training and changing models. These options suit teams that need custom systems.
SAM 2 also has a route through Amazon SageMaker JumpStart. This supports teams using managed AWS services. However, AWS hosting has separate service costs. Meta does not provide a fixed monthly SAM 2 plan. Local code use and cloud hosting are different choices. Teams should check cloud prices before deployment.
SAM 2 does not list standard plug-ins for every editor. Its official project focuses on code and model files. Developers may connect the output to editing software. Those custom links need their own setup and checks. The model can support larger image and video workflows. It does not replace their other parts. Start with the official examples before building a custom link.
Meta Segment Anything Model 2 free plan details
Meta Segment Anything Model 2 offers free model code and weights. Its Apache 2.0 license allows broad use. There is no standard paid monthly software plan. The public project does not publish a fixed use quota. Local users must supply their own computing resources. The demo provides another way to explore basic features. Demo availability may differ from local model use. Cloud hosting may add costs outside Meta’s free release.
| Plan | Price per month | Billed annually | Free tier | Key limit | Source | Checked |
|---|---|---|---|---|---|---|
| Open-source model | $0 | Not applicable | Yes | Own hardware and setup required | Dec 2026 | |
| Public demo | $0 listed | Not applicable | Free demo access | No fixed public usage quota listed | Dec 2026 | |
| AWS deployment | Varies | Not applicable | No included SAM 2 hosting plan | AWS service charges may apply | Dec 2026 |
Free access does not mean every workflow costs nothing. Running larger video jobs may need better hardware. Cloud services can also charge for model processing. Teams should count these costs before starting production. The license covers the model, not every connected service.