bytedance
/
sa2va-26b-image
Sa2VA: Marrying SAM2 with LLaVA for Dense Grounded Understanding of Images and Videos
Prediction
bytedance/sa2va-26b-image:addd35ccIDtwn4165kb9rj60cn5gg86kwycwStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "please segment the woman dancing in a blue dress" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", instruction: "please segment the woman dancing in a blue dress" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "please segment the woman dancing in a blue dress" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "please segment the woman dancing in a blue dress" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-22T05:28:17.460111Z", "created_at": "2025-02-22T05:28:15.450000Z", "data_removed": false, "error": null, "id": "twn4165kb9rj60cn5gg86kwycw", "input": { "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "please segment the woman dancing in a blue dress" }, "logs": "propagate in video: 0%| | 0/1 [00:00<?, ?it/s]\npropagate in video: 100%|██████████| 1/1 [00:00<00:00, 5548.02it/s]", "metrics": { "predict_time": 1.99516588, "total_time": 2.010111 }, "output": { "img": "https://replicate.delivery/yhqm/XMIPgu8PAvqhKxFjrsAzCGgZFfnlbIA6SeNtEIqM2JmxJxRUA/output.png", "response": "Sure, [SEG] .<|im_end|>" }, "started_at": "2025-02-22T05:28:15.464945Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/twn4165kb9rj60cn5gg86kwycw", "cancel": "https://api.replicate.com/v1/predictions/twn4165kb9rj60cn5gg86kwycw/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inpropagate in video: 0%| | 0/1 [00:00<?, ?it/s] propagate in video: 100%|██████████| 1/1 [00:00<00:00, 5548.02it/s]
Prediction
bytedance/sa2va-26b-image:addd35ccIDvrc0ya2vcnrj20cn5ggse1dw28StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "describe the image" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", instruction: "describe the image" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "describe the image" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "describe the image" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The image depicts a woman in a blue dress dancing in the middle of a street. She is surrounded by a crowd of people who are watching her performance. There are also musicians playing guitars in the background, adding to the lively atmosphere. The scene appears to be a street performance or a cultural event, with the woman as the main focus.<|im_end|>{ "completed_at": "2025-02-22T05:29:02.759860Z", "created_at": "2025-02-22T05:28:58.469000Z", "data_removed": false, "error": null, "id": "vrc0ya2vcnrj20cn5ggse1dw28", "input": { "image": "https://replicate.delivery/pbxt/MXeFEYuz0b5rNtNmOhvMkzhAfJUWEa29ywD88KamZd6aegmD/replicate-prediction-bjg6qedsznrma0cn5gftx6w40r.webp", "instruction": "describe the image" }, "logs": null, "metrics": { "predict_time": 4.279089545, "total_time": 4.29086 }, "output": { "img": null, "response": "The image depicts a woman in a blue dress dancing in the middle of a street. She is surrounded by a crowd of people who are watching her performance. There are also musicians playing guitars in the background, adding to the lively atmosphere. The scene appears to be a street performance or a cultural event, with the woman as the main focus.<|im_end|>" }, "started_at": "2025-02-22T05:28:58.480771Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vrc0ya2vcnrj20cn5ggse1dw28", "cancel": "https://api.replicate.com/v1/predictions/vrc0ya2vcnrj20cn5ggse1dw28/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inPrediction
bytedance/sa2va-26b-image:addd35ccIDnszcy6gtknrj00cn5ghbj6v5n8StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeGgymKIKllXhh1rLl2q6hjSLMej1MQC4EcKKg8tmC2Wrm3/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "caption this image" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeGgymKIKllXhh1rLl2q6hjSLMej1MQC4EcKKg8tmC2Wrm3/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", instruction: "caption this image" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeGgymKIKllXhh1rLl2q6hjSLMej1MQC4EcKKg8tmC2Wrm3/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "caption this image" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeGgymKIKllXhh1rLl2q6hjSLMej1MQC4EcKKg8tmC2Wrm3/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "caption this image" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
A snowboarder in a white jacket and black pants is performing a jump on a snowy mountain slope, with a stunning mountain range in the background.<|im_end|>{ "completed_at": "2025-02-22T05:29:50.380359Z", "created_at": "2025-02-22T05:29:47.421000Z", "data_removed": false, "error": null, "id": "nszcy6gtknrj00cn5ghbj6v5n8", "input": { "image": "https://replicate.delivery/pbxt/MXeGgymKIKllXhh1rLl2q6hjSLMej1MQC4EcKKg8tmC2Wrm3/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "caption this image" }, "logs": null, "metrics": { "predict_time": 2.949820254, "total_time": 2.959359 }, "output": { "img": null, "response": "A snowboarder in a white jacket and black pants is performing a jump on a snowy mountain slope, with a stunning mountain range in the background.<|im_end|>" }, "started_at": "2025-02-22T05:29:47.430539Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nszcy6gtknrj00cn5ghbj6v5n8", "cancel": "https://api.replicate.com/v1/predictions/nszcy6gtknrj00cn5ghbj6v5n8/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inPrediction
bytedance/sa2va-26b-image:addd35ccIDeqz94j2d8drj20cn5gh95p53p4StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeGtZhci0aJxtV4mDlUUbrPgCMiQqy6NuaIeQ2cdKk1eWmN/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "segment the snowboarder" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeGtZhci0aJxtV4mDlUUbrPgCMiQqy6NuaIeQ2cdKk1eWmN/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", instruction: "segment the snowboarder" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeGtZhci0aJxtV4mDlUUbrPgCMiQqy6NuaIeQ2cdKk1eWmN/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "segment the snowboarder" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeGtZhci0aJxtV4mDlUUbrPgCMiQqy6NuaIeQ2cdKk1eWmN/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "segment the snowboarder" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-22T05:30:02.307800Z", "created_at": "2025-02-22T05:30:00.387000Z", "data_removed": false, "error": null, "id": "eqz94j2d8drj20cn5gh95p53p4", "input": { "image": "https://replicate.delivery/pbxt/MXeGtZhci0aJxtV4mDlUUbrPgCMiQqy6NuaIeQ2cdKk1eWmN/replicate-prediction-k77mvbxs9srme0cn578bxp930c.webp", "instruction": "segment the snowboarder" }, "logs": "propagate in video: 0%| | 0/1 [00:00<?, ?it/s]\npropagate in video: 100%|██████████| 1/1 [00:00<00:00, 5698.78it/s]", "metrics": { "predict_time": 1.9099498590000001, "total_time": 1.9208 }, "output": { "img": "https://replicate.delivery/yhqm/fVlmKhtsp132XyTSenZYIN5iqK4hta9f6k6225goC8n0WijoA/output.png", "response": "Sure, [SEG] .<|im_end|>" }, "started_at": "2025-02-22T05:30:00.397851Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/eqz94j2d8drj20cn5gh95p53p4", "cancel": "https://api.replicate.com/v1/predictions/eqz94j2d8drj20cn5gh95p53p4/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inpropagate in video: 0%| | 0/1 [00:00<?, ?it/s] propagate in video: 100%|██████████| 1/1 [00:00<00:00, 5698.78it/s]
Prediction
bytedance/sa2va-26b-image:addd35ccID525scwzcz1rj60cn5gh9j3c6gwStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeHXDhRG3hj63rIdxaqKuq6et7vc0Dn97PXe5jt1a32yd6Z/giraffe.webp", "instruction": "what is the giraffe doing?" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeHXDhRG3hj63rIdxaqKuq6et7vc0Dn97PXe5jt1a32yd6Z/giraffe.webp", instruction: "what is the giraffe doing?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeHXDhRG3hj63rIdxaqKuq6et7vc0Dn97PXe5jt1a32yd6Z/giraffe.webp", "instruction": "what is the giraffe doing?" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeHXDhRG3hj63rIdxaqKuq6et7vc0Dn97PXe5jt1a32yd6Z/giraffe.webp", "instruction": "what is the giraffe doing?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The giraffe is standing under a tree, reaching up to eat leaves from the branches.<|im_end|>{ "completed_at": "2025-02-22T05:30:43.707275Z", "created_at": "2025-02-22T05:30:41.272000Z", "data_removed": false, "error": null, "id": "525scwzcz1rj60cn5gh9j3c6gw", "input": { "image": "https://replicate.delivery/pbxt/MXeHXDhRG3hj63rIdxaqKuq6et7vc0Dn97PXe5jt1a32yd6Z/giraffe.webp", "instruction": "what is the giraffe doing?" }, "logs": null, "metrics": { "predict_time": 2.424349776, "total_time": 2.435275 }, "output": { "img": null, "response": "The giraffe is standing under a tree, reaching up to eat leaves from the branches.<|im_end|>" }, "started_at": "2025-02-22T05:30:41.282925Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/525scwzcz1rj60cn5gh9j3c6gw", "cancel": "https://api.replicate.com/v1/predictions/525scwzcz1rj60cn5gh9j3c6gw/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inPrediction
bytedance/sa2va-26b-image:addd35ccIDtj9fjars4srj40cn5ghrgfpsp8StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeHiql5xocNBoYeCxjIqt58avLk5OGXuqkl51O5BAAxV2HA/giraffe.webp", "instruction": "segment the giraffe" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeHiql5xocNBoYeCxjIqt58avLk5OGXuqkl51O5BAAxV2HA/giraffe.webp", instruction: "segment the giraffe" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeHiql5xocNBoYeCxjIqt58avLk5OGXuqkl51O5BAAxV2HA/giraffe.webp", "instruction": "segment the giraffe" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeHiql5xocNBoYeCxjIqt58avLk5OGXuqkl51O5BAAxV2HA/giraffe.webp", "instruction": "segment the giraffe" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-22T05:30:54.563677Z", "created_at": "2025-02-22T05:30:52.582000Z", "data_removed": false, "error": null, "id": "tj9fjars4srj40cn5ghrgfpsp8", "input": { "image": "https://replicate.delivery/pbxt/MXeHiql5xocNBoYeCxjIqt58avLk5OGXuqkl51O5BAAxV2HA/giraffe.webp", "instruction": "segment the giraffe" }, "logs": "propagate in video: 0%| | 0/1 [00:00<?, ?it/s]\npropagate in video: 100%|██████████| 1/1 [00:00<00:00, 5801.25it/s]", "metrics": { "predict_time": 1.971256554, "total_time": 1.981677 }, "output": { "img": "https://replicate.delivery/yhqm/qzgERkQ42rLfTCRj5JMpFTx64tfDbRlQzd3nTNTRYlROMxRUA/output.png", "response": "Sure, [SEG] .<|im_end|>" }, "started_at": "2025-02-22T05:30:52.592421Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tj9fjars4srj40cn5ghrgfpsp8", "cancel": "https://api.replicate.com/v1/predictions/tj9fjars4srj40cn5ghrgfpsp8/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inpropagate in video: 0%| | 0/1 [00:00<?, ?it/s] propagate in video: 100%|██████████| 1/1 [00:00<00:00, 5801.25it/s]
Prediction
bytedance/sa2va-26b-image:addd35ccID9k3n2mcxq1rj00cn5ghrh547z8StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeIFuQjYroLjHB2VAzfIfcVM4aIyNX69uA3rp1UuUryucZp/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "segment the dinosaur to the left of the sunglasses" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeIFuQjYroLjHB2VAzfIfcVM4aIyNX69uA3rp1UuUryucZp/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", instruction: "segment the dinosaur to the left of the sunglasses" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeIFuQjYroLjHB2VAzfIfcVM4aIyNX69uA3rp1UuUryucZp/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "segment the dinosaur to the left of the sunglasses" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeIFuQjYroLjHB2VAzfIfcVM4aIyNX69uA3rp1UuUryucZp/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "segment the dinosaur to the left of the sunglasses" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-02-22T05:31:28.443825Z", "created_at": "2025-02-22T05:31:26.520000Z", "data_removed": false, "error": null, "id": "9k3n2mcxq1rj00cn5ghrh547z8", "input": { "image": "https://replicate.delivery/pbxt/MXeIFuQjYroLjHB2VAzfIfcVM4aIyNX69uA3rp1UuUryucZp/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "segment the dinosaur to the left of the sunglasses" }, "logs": "propagate in video: 0%| | 0/1 [00:00<?, ?it/s]\npropagate in video: 100%|██████████| 1/1 [00:00<00:00, 6009.03it/s]", "metrics": { "predict_time": 1.913195081, "total_time": 1.923825 }, "output": { "img": "https://replicate.delivery/yhqm/yvN8G7DdrxpYG98tJCcX2iQLXdNv2e7yVyESnbdcAZWYm4IKA/output.png", "response": "Sure, [SEG] .<|im_end|>" }, "started_at": "2025-02-22T05:31:26.530630Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/9k3n2mcxq1rj00cn5ghrh547z8", "cancel": "https://api.replicate.com/v1/predictions/9k3n2mcxq1rj00cn5ghrh547z8/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated inpropagate in video: 0%| | 0/1 [00:00<?, ?it/s] propagate in video: 100%|██████████| 1/1 [00:00<00:00, 6009.03it/s]
Prediction
bytedance/sa2va-26b-image:addd35ccID3zrgeppa69rj00cn5ghszr28awStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/MXeIQv5YEVshNDl8HWLoQRa96XSCyQ1wzi5RilT05Ejir0Rg/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "how many feathers are there?" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", { input: { image: "https://replicate.delivery/pbxt/MXeIQv5YEVshNDl8HWLoQRa96XSCyQ1wzi5RilT05Ejir0Rg/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", instruction: "how many feathers are there?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/sa2va-26b-image:addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", input={ "image": "https://replicate.delivery/pbxt/MXeIQv5YEVshNDl8HWLoQRa96XSCyQ1wzi5RilT05Ejir0Rg/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "how many feathers are there?" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run bytedance/sa2va-26b-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "addd35cc4f8e0761836ff1e4af324bd7b1f4fa67ee3d384b69202cb288a7dd4f", "input": { "image": "https://replicate.delivery/pbxt/MXeIQv5YEVshNDl8HWLoQRa96XSCyQ1wzi5RilT05Ejir0Rg/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "how many feathers are there?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
There are two feathers in the image.<|im_end|>{ "completed_at": "2025-02-22T05:31:39.901322Z", "created_at": "2025-02-22T05:31:37.906000Z", "data_removed": false, "error": null, "id": "3zrgeppa69rj00cn5ghszr28aw", "input": { "image": "https://replicate.delivery/pbxt/MXeIQv5YEVshNDl8HWLoQRa96XSCyQ1wzi5RilT05Ejir0Rg/replicate-prediction-t89m1g7t1drma0cn551bhpaep0.webp", "instruction": "how many feathers are there?" }, "logs": null, "metrics": { "predict_time": 1.984252024, "total_time": 1.995322 }, "output": { "img": null, "response": "There are two feathers in the image.<|im_end|>" }, "started_at": "2025-02-22T05:31:37.917070Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3zrgeppa69rj00cn5ghszr28aw", "cancel": "https://api.replicate.com/v1/predictions/3zrgeppa69rj00cn5ghszr28aw/cancel" }, "version": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6" }
Generated in
Want to make some of these yourself?
Run this model