Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
bytedance /sa2va-26b-image:9ed0fc32
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
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:9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6",
{
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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
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:9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6",
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.
REPLICATE_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": "9ed0fc324b86415e51d0c1d60a72d051d149c41f25a287db264d318785ed0cf6",
"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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
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"
}
propagate in video: 0%| | 0/1 [00:00<?, ?it/s]
propagate in video: 100%|██████████| 1/1 [00:00<00:00, 5698.78it/s]