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.
cjwbw /daclip-uir:5efbc85e
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cjwbw/daclip-uir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/daclip-uir:5efbc85e1d0771704d74d81a660041abd270d48e99572badefbcdf81383f6af4",
{
input: {
image: "https://replicate.delivery/pbxt/JgmLnELWABG1jAGQbumGUm5Un0sCYvAK9v8vD6uptBfIAdvE/00006.jpg"
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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 cjwbw/daclip-uir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/daclip-uir:5efbc85e1d0771704d74d81a660041abd270d48e99572badefbcdf81383f6af4",
input={
"image": "https://replicate.delivery/pbxt/JgmLnELWABG1jAGQbumGUm5Un0sCYvAK9v8vD6uptBfIAdvE/00006.jpg"
}
)
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 cjwbw/daclip-uir 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": "cjwbw/daclip-uir:5efbc85e1d0771704d74d81a660041abd270d48e99572badefbcdf81383f6af4",
"input": {
"image": "https://replicate.delivery/pbxt/JgmLnELWABG1jAGQbumGUm5Un0sCYvAK9v8vD6uptBfIAdvE/00006.jpg"
}
}' \
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": "2023-10-12T22:38:37.090774Z",
"created_at": "2023-10-12T22:38:28.715046Z",
"data_removed": false,
"error": null,
"id": "52szxldbbw7fmjhtlgyzfxs5pm",
"input": {
"image": "https://replicate.delivery/pbxt/JgmLnELWABG1jAGQbumGUm5Un0sCYvAK9v8vD6uptBfIAdvE/00006.jpg"
},
"logs": "0it [00:00, ?it/s]\n1it [00:00, 6.62it/s]\n5it [00:00, 19.28it/s]\n8it [00:00, 21.33it/s]\n11it [00:00, 22.45it/s]\n14it [00:00, 23.08it/s]\n17it [00:00, 23.41it/s]\n20it [00:00, 23.71it/s]\n23it [00:01, 23.89it/s]\n26it [00:01, 23.98it/s]\n29it [00:01, 24.09it/s]\n32it [00:01, 24.07it/s]\n35it [00:01, 24.17it/s]\n38it [00:01, 24.21it/s]\n41it [00:01, 24.22it/s]\n44it [00:01, 24.25it/s]\n47it [00:02, 24.27it/s]\n50it [00:02, 24.25it/s]\n53it [00:02, 24.23it/s]\n56it [00:02, 24.21it/s]\n59it [00:02, 24.27it/s]\n62it [00:02, 24.28it/s]\n65it [00:02, 24.28it/s]\n68it [00:02, 24.25it/s]\n71it [00:03, 24.23it/s]\n74it [00:03, 24.23it/s]\n77it [00:03, 24.21it/s]\n80it [00:03, 24.18it/s]\n83it [00:03, 24.01it/s]\n86it [00:03, 24.26it/s]\n89it [00:03, 24.23it/s]\n92it [00:03, 24.25it/s]\n95it [00:04, 24.26it/s]\n98it [00:04, 24.27it/s]\n100it [00:04, 23.76it/s]",
"metrics": {
"predict_time": 6.351027,
"total_time": 8.375728
},
"output": "https://replicate.delivery/pbxt/QOvoyhpeeblElE6kkx1UPC0kF9Gyifr8e8WfnDkaeKi7anYbE/out.png",
"started_at": "2023-10-12T22:38:30.739747Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/52szxldbbw7fmjhtlgyzfxs5pm",
"cancel": "https://api.replicate.com/v1/predictions/52szxldbbw7fmjhtlgyzfxs5pm/cancel"
},
"version": "5efbc85e1d0771704d74d81a660041abd270d48e99572badefbcdf81383f6af4"
}
0it [00:00, ?it/s]
1it [00:00, 6.62it/s]
5it [00:00, 19.28it/s]
8it [00:00, 21.33it/s]
11it [00:00, 22.45it/s]
14it [00:00, 23.08it/s]
17it [00:00, 23.41it/s]
20it [00:00, 23.71it/s]
23it [00:01, 23.89it/s]
26it [00:01, 23.98it/s]
29it [00:01, 24.09it/s]
32it [00:01, 24.07it/s]
35it [00:01, 24.17it/s]
38it [00:01, 24.21it/s]
41it [00:01, 24.22it/s]
44it [00:01, 24.25it/s]
47it [00:02, 24.27it/s]
50it [00:02, 24.25it/s]
53it [00:02, 24.23it/s]
56it [00:02, 24.21it/s]
59it [00:02, 24.27it/s]
62it [00:02, 24.28it/s]
65it [00:02, 24.28it/s]
68it [00:02, 24.25it/s]
71it [00:03, 24.23it/s]
74it [00:03, 24.23it/s]
77it [00:03, 24.21it/s]
80it [00:03, 24.18it/s]
83it [00:03, 24.01it/s]
86it [00:03, 24.26it/s]
89it [00:03, 24.23it/s]
92it [00:03, 24.25it/s]
95it [00:04, 24.26it/s]
98it [00:04, 24.27it/s]
100it [00:04, 23.76it/s]