typefile
{
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
"mode": "fast"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_JWQ**********************************
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/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/clip-interrogator:14d81f8a13e8ef87cc9b5eb7d03f5940fc7010e7226e93af612c5f0f4df1a35f",
{
input: {
clip_model_name: "ViT-bigG-14/laion2b_s39b_b160k",
image: "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.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_JWQ**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/clip-interrogator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/clip-interrogator:14d81f8a13e8ef87cc9b5eb7d03f5940fc7010e7226e93af612c5f0f4df1a35f",
input={
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.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_JWQ**********************************
This is your API token. Keep it to yourself.
Run lucataco/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/clip-interrogator:14d81f8a13e8ef87cc9b5eb7d03f5940fc7010e7226e93af612c5f0f4df1a35f",
"input": {
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
"mode": "fast"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
painting of a turtle swimming in the ocean with a blue sky in the background, illustrative art, turtle, michael angelo inspired, world-bearing turtle, highly detailed illustration.”, 4k artwork, realistic illustration, highly detailed digital painting, vibrant digital painting, [ 4 k digital art, 4k art, hypperrealistic illustration, high detail illustration, vibrant realistic
{
"id": "ld4nzhtbx7q3ywpyhmjopqxyx4",
"model": "lucataco/clip-interrogator",
"version": "14d81f8a13e8ef87cc9b5eb7d03f5940fc7010e7226e93af612c5f0f4df1a35f",
"input": {
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
"mode": "fast"
},
"logs": "0%| | 0/55 [00:00<?, ?it/s]\n 49%|████▉ | 27/55 [00:00<00:00, 265.22it/s]\n 98%|█████████▊| 54/55 [00:00<00:00, 266.00it/s]\n100%|██████████| 55/55 [00:00<00:00, 267.08it/s]",
"output": "painting of a turtle swimming in the ocean with a blue sky in the background, illustrative art, turtle, michael angelo inspired, world-bearing turtle, highly detailed illustration.”, 4k artwork, realistic illustration, highly detailed digital painting, vibrant digital painting, [ 4 k digital art, 4k art, hypperrealistic illustration, high detail illustration, vibrant realistic",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-09-12T03:01:03.797191Z",
"started_at": "2023-09-12T03:01:03.760223Z",
"completed_at": "2023-09-12T03:01:04.657201Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/ld4nzhtbx7q3ywpyhmjopqxyx4/cancel",
"get": "https://api.replicate.com/v1/predictions/ld4nzhtbx7q3ywpyhmjopqxyx4"
},
"metrics": {
"predict_time": 0.896978,
"total_time": 0.86001
}
}