typefile
{
"image": "https://replicate.delivery/pbxt/JLnoDw8UCQGRPTMy9zpMqs8g7EhVt1X0tEQrM4JFOdpibokp/replicate-sdxl-inter.png",
"mode": "fast"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Bbd**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/sdxl-clip-interrogator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/sdxl-clip-interrogator:b8dd624ad312d215250b362af0ecff05d7ad4f8270f9beb034c483d70682e7b3",
{
input: {
image: "https://replicate.delivery/pbxt/JLnoDw8UCQGRPTMy9zpMqs8g7EhVt1X0tEQrM4JFOdpibokp/replicate-sdxl-inter.png",
mode: "fast"
}
}
);
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=r8_Bbd**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/sdxl-clip-interrogator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/sdxl-clip-interrogator:b8dd624ad312d215250b362af0ecff05d7ad4f8270f9beb034c483d70682e7b3",
input={
"image": "https://replicate.delivery/pbxt/JLnoDw8UCQGRPTMy9zpMqs8g7EhVt1X0tEQrM4JFOdpibokp/replicate-sdxl-inter.png",
"mode": "fast"
}
)
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=r8_Bbd**********************************
This is your API token. Keep it to yourself.
Run lucataco/sdxl-clip-interrogator 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": "lucataco/sdxl-clip-interrogator:b8dd624ad312d215250b362af0ecff05d7ad4f8270f9beb034c483d70682e7b3",
"input": {
"image": "https://replicate.delivery/pbxt/JLnoDw8UCQGRPTMy9zpMqs8g7EhVt1X0tEQrM4JFOdpibokp/replicate-sdxl-inter.png",
"mode": "fast"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
a painting of a turtle swimming in the ocean, high detailed illustration, colored illustration for tattoo, highly detailed illustration.”, watercolor artwork of exotic, watercolor artstyle, watercolor digital painting, watercolor colored painting, detailed watercolor painting, colorful watercolor painting, colored illustration, watercolor illustration style, digital art highly detailed, highly detailed water colour 8 k, highly detailed water colour 8k
{
"id": "xwzgcke3tsrgp0cfg9hsapefg4",
"model": "lucataco/sdxl-clip-interrogator",
"version": "b8dd624ad312d215250b362af0ecff05d7ad4f8270f9beb034c483d70682e7b3",
"input": {
"image": "https://replicate.delivery/pbxt/JLnoDw8UCQGRPTMy9zpMqs8g7EhVt1X0tEQrM4JFOdpibokp/replicate-sdxl-inter.png",
"mode": "fast"
},
"logs": "0%| | 0/55 [00:00<?, ?it/s]\n 55%|█████▍ | 30/55 [00:00<00:00, 298.39it/s]\n100%|██████████| 55/55 [00:00<00:00, 312.12it/s]",
"output": "a painting of a turtle swimming in the ocean, high detailed illustration, colored illustration for tattoo, highly detailed illustration.”, watercolor artwork of exotic, watercolor artstyle, watercolor digital painting, watercolor colored painting, detailed watercolor painting, colorful watercolor painting, colored illustration, watercolor illustration style, digital art highly detailed, highly detailed water colour 8 k, highly detailed water colour 8k",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-05-16T17:12:07.382Z",
"started_at": "2024-05-16T17:14:21.21769Z",
"completed_at": "2024-05-16T17:14:22.390298Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/xwzgcke3tsrgp0cfg9hsapefg4/cancel",
"get": "https://api.replicate.com/v1/predictions/xwzgcke3tsrgp0cfg9hsapefg4",
"web": "https://replicate.com/p/xwzgcke3tsrgp0cfg9hsapefg4"
},
"metrics": {
"predict_time": 1.172608,
"total_time": 135.008298
}
}