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.
deepseek-ai /deepseek-vl2-small:965f8775
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 deepseek-ai/deepseek-vl2-small using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"deepseek-ai/deepseek-vl2-small:965f877546f4f0e3f5ae59847f27079d66da81fff2d87d753d5495e862dcb3a4",
{
input: {
image: "https://replicate.delivery/pbxt/MTtkULhkuPEYWa83RRWL29jyJlTgpTr9uhY5JUxVVoRLE3Vs/watermelon.png",
top_p: 0.9,
prompt: "Find all the <|ref|>watermelon slices<|/ref|>",
temperature: 0.1,
max_length_tokens: 2048,
repetition_penalty: 1.1
}
}
);
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 deepseek-ai/deepseek-vl2-small using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"deepseek-ai/deepseek-vl2-small:965f877546f4f0e3f5ae59847f27079d66da81fff2d87d753d5495e862dcb3a4",
input={
"image": "https://replicate.delivery/pbxt/MTtkULhkuPEYWa83RRWL29jyJlTgpTr9uhY5JUxVVoRLE3Vs/watermelon.png",
"top_p": 0.9,
"prompt": "Find all the <|ref|>watermelon slices<|/ref|>",
"temperature": 0.1,
"max_length_tokens": 2048,
"repetition_penalty": 1.1
}
)
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 deepseek-ai/deepseek-vl2-small 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": "deepseek-ai/deepseek-vl2-small:965f877546f4f0e3f5ae59847f27079d66da81fff2d87d753d5495e862dcb3a4",
"input": {
"image": "https://replicate.delivery/pbxt/MTtkULhkuPEYWa83RRWL29jyJlTgpTr9uhY5JUxVVoRLE3Vs/watermelon.png",
"top_p": 0.9,
"prompt": "Find all the <|ref|>watermelon slices<|/ref|>",
"temperature": 0.1,
"max_length_tokens": 2048,
"repetition_penalty": 1.1
}
}' \
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-11T15:55:24.759665Z",
"created_at": "2025-02-11T15:55:23.425000Z",
"data_removed": false,
"error": null,
"id": "ecz06tf7m5rme0cmypw9te2crm",
"input": {
"image": "https://replicate.delivery/pbxt/MTtkULhkuPEYWa83RRWL29jyJlTgpTr9uhY5JUxVVoRLE3Vs/watermelon.png",
"top_p": 0.9,
"prompt": "Find all the <|ref|>watermelon slices<|/ref|>",
"temperature": 0.1,
"max_length_tokens": 2048,
"repetition_penalty": 1.1
},
"logs": null,
"metrics": {
"predict_time": 1.326077122,
"total_time": 1.334665
},
"output": "<|ref|>watermelon slices<|/ref|><|det|>[[159, 327, 408, 615]]<|/det|>",
"started_at": "2025-02-11T15:55:23.433588Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ecz06tf7m5rme0cmypw9te2crm",
"cancel": "https://api.replicate.com/v1/predictions/ecz06tf7m5rme0cmypw9te2crm/cancel"
},
"version": "965f877546f4f0e3f5ae59847f27079d66da81fff2d87d753d5495e862dcb3a4"
}