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.
lucataco /watermark_detector:0a94805e
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 lucataco/watermark_detector using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/watermark_detector:0a94805ee1591e251590bddc8bdd989451c66b8ea99c97d762708fe5a5b66391",
{
input: {
image: "https://replicate.delivery/pbxt/KILJGjmrSutHFh6cfxSGm4RMNEI1vOCw6aoYWf3DMuRKuNPg/replicate-prediction-vbb5733b72rj2o3akgzbbowa3y.png"
}
}
);
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 lucataco/watermark_detector using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/watermark_detector:0a94805ee1591e251590bddc8bdd989451c66b8ea99c97d762708fe5a5b66391",
input={
"image": "https://replicate.delivery/pbxt/KILJGjmrSutHFh6cfxSGm4RMNEI1vOCw6aoYWf3DMuRKuNPg/replicate-prediction-vbb5733b72rj2o3akgzbbowa3y.png"
}
)
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 lucataco/watermark_detector 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": "0a94805ee1591e251590bddc8bdd989451c66b8ea99c97d762708fe5a5b66391",
"input": {
"image": "https://replicate.delivery/pbxt/KILJGjmrSutHFh6cfxSGm4RMNEI1vOCw6aoYWf3DMuRKuNPg/replicate-prediction-vbb5733b72rj2o3akgzbbowa3y.png"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{
"completed_at": "2024-01-26T18:31:09.524345Z",
"created_at": "2024-01-26T18:28:56.084439Z",
"data_removed": false,
"error": null,
"id": "thrm5vbbocvy54g2qc7v2dxrra",
"input": {
"image": "https://replicate.delivery/pbxt/KILJGjmrSutHFh6cfxSGm4RMNEI1vOCw6aoYWf3DMuRKuNPg/replicate-prediction-vbb5733b72rj2o3akgzbbowa3y.png"
},
"logs": null,
"metrics": {
"predict_time": 0.578605,
"total_time": 133.439906
},
"output": "Predicted:watermark",
"started_at": "2024-01-26T18:31:08.945740Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/thrm5vbbocvy54g2qc7v2dxrra",
"cancel": "https://api.replicate.com/v1/predictions/thrm5vbbocvy54g2qc7v2dxrra/cancel"
},
"version": "0a94805ee1591e251590bddc8bdd989451c66b8ea99c97d762708fe5a5b66391"
}