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/MTtl5BDPSz6kkcvuz8ZnHkI3Ix16KEe1Jrgodgpgwz5tEeNZ/trash.png",
top_p: 0.9,
prompt: "<|grounding|>I want to throw out the trash now, what should I do?",
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/MTtl5BDPSz6kkcvuz8ZnHkI3Ix16KEe1Jrgodgpgwz5tEeNZ/trash.png",
"top_p": 0.9,
"prompt": "<|grounding|>I want to throw out the trash now, what should I do?",
"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/MTtl5BDPSz6kkcvuz8ZnHkI3Ix16KEe1Jrgodgpgwz5tEeNZ/trash.png",
"top_p": 0.9,
"prompt": "<|grounding|>I want to throw out the trash now, what should I do?",
"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:56:02.462605Z",
"created_at": "2025-02-11T15:56:00.578000Z",
"data_removed": false,
"error": null,
"id": "1h2sgpbrr9rm80cmypwvz1efd8",
"input": {
"image": "https://replicate.delivery/pbxt/MTtl5BDPSz6kkcvuz8ZnHkI3Ix16KEe1Jrgodgpgwz5tEeNZ/trash.png",
"top_p": 0.9,
"prompt": "<|grounding|>I want to throw out the trash now, what should I do?",
"temperature": 0.1,
"max_length_tokens": 2048,
"repetition_penalty": 1.1
},
"logs": null,
"metrics": {
"predict_time": 1.876437121,
"total_time": 1.884605
},
"output": "Well, you can just take it out of your house and place it in the <|ref|>garbage<|/ref|><|det|>[[135, 207, 869, 945]]<|/det|> .",
"started_at": "2025-02-11T15:56:00.586168Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/1h2sgpbrr9rm80cmypwvz1efd8",
"cancel": "https://api.replicate.com/v1/predictions/1h2sgpbrr9rm80cmypwvz1efd8/cancel"
},
"version": "965f877546f4f0e3f5ae59847f27079d66da81fff2d87d753d5495e862dcb3a4"
}