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 /clip-interrogator:14d81f8a
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/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: {
mode: "best",
image: "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
clip_model_name: "ViT-bigG-14/laion2b_s39b_b160k"
}
}
);
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/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={
"mode": "best",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k"
}
)
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/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": {
"mode": "best",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k"
}
}' \
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-09-12T03:01:54.505357Z",
"created_at": "2023-09-12T03:01:11.890068Z",
"data_removed": false,
"error": null,
"id": "pq3o3sdbvoszqht7rn3afczccm",
"input": {
"mode": "best",
"image": "https://replicate.delivery/pbxt/JVpnDt9nXuAnqBaXFPH8JbLrkU7JxQIoAGrHFwRWnFYqI7Ad/replicate-prediction-lyehbrdbrdztdi7ggx63lmhkgm.png",
"clip_model_name": "ViT-bigG-14/laion2b_s39b_b160k"
},
"logs": "0%| | 0/55 [00:00<?, ?it/s]\n 49%|████▉ | 27/55 [00:00<00:00, 268.51it/s]\n100%|██████████| 55/55 [00:00<00:00, 284.33it/s]\nFlavor chain: 0%| | 0/32 [00:00<?, ?it/s]\nFlavor chain: 3%|▎ | 1/32 [00:03<01:43, 3.33s/it]\nFlavor chain: 6%|▋ | 2/32 [00:06<01:39, 3.33s/it]\nFlavor chain: 9%|▉ | 3/32 [00:10<01:36, 3.34s/it]\nFlavor chain: 12%|█▎ | 4/32 [00:13<01:33, 3.34s/it]\nFlavor chain: 16%|█▌ | 5/32 [00:16<01:30, 3.36s/it]\nFlavor chain: 19%|█▉ | 6/32 [00:20<01:27, 3.38s/it]\nFlavor chain: 22%|██▏ | 7/32 [00:23<01:25, 3.40s/it]\nFlavor chain: 25%|██▌ | 8/32 [00:27<01:22, 3.43s/it]\nFlavor chain: 28%|██▊ | 9/32 [00:30<01:19, 3.45s/it]\nFlavor chain: 31%|███▏ | 10/32 [00:34<01:16, 3.48s/it]\nFlavor chain: 34%|███▍ | 11/32 [00:37<01:13, 3.49s/it]\nFlavor chain: 34%|███▍ | 11/32 [00:41<01:18, 3.75s/it]\n 0%| | 0/55 [00:00<?, ?it/s]\n 42%|████▏ | 23/55 [00:00<00:00, 228.10it/s]\n 89%|████████▉ | 49/55 [00:00<00:00, 242.68it/s]\n100%|██████████| 55/55 [00:00<00:00, 242.31it/s]\n 0%| | 0/6 [00:00<?, ?it/s]\n100%|██████████| 6/6 [00:00<00:00, 202.71it/s]\n 0%| | 0/50 [00:00<?, ?it/s]\n 62%|██████▏ | 31/50 [00:00<00:00, 300.32it/s]\n100%|██████████| 50/50 [00:00<00:00, 303.22it/s]",
"metrics": {
"predict_time": 42.651396,
"total_time": 42.615289
},
"output": "painting of a turtle swimming in the ocean with a blue sky in the background, epic full color illustration, warm saturatured colors, full art illustration, three - quarter view, sharp high detail illustration, a beautiful artwork illustration, orange and teal color, 4 8 0 p, 4k illustration, duck, concept art illustration",
"started_at": "2023-09-12T03:01:11.853961Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/pq3o3sdbvoszqht7rn3afczccm",
"cancel": "https://api.replicate.com/v1/predictions/pq3o3sdbvoszqht7rn3afczccm/cancel"
},
"version": "14d81f8a13e8ef87cc9b5eb7d03f5940fc7010e7226e93af612c5f0f4df1a35f"
}
0%| | 0/55 [00:00<?, ?it/s]
49%|████▉ | 27/55 [00:00<00:00, 268.51it/s]
100%|██████████| 55/55 [00:00<00:00, 284.33it/s]
Flavor chain: 0%| | 0/32 [00:00<?, ?it/s]
Flavor chain: 3%|▎ | 1/32 [00:03<01:43, 3.33s/it]
Flavor chain: 6%|▋ | 2/32 [00:06<01:39, 3.33s/it]
Flavor chain: 9%|▉ | 3/32 [00:10<01:36, 3.34s/it]
Flavor chain: 12%|█▎ | 4/32 [00:13<01:33, 3.34s/it]
Flavor chain: 16%|█▌ | 5/32 [00:16<01:30, 3.36s/it]
Flavor chain: 19%|█▉ | 6/32 [00:20<01:27, 3.38s/it]
Flavor chain: 22%|██▏ | 7/32 [00:23<01:25, 3.40s/it]
Flavor chain: 25%|██▌ | 8/32 [00:27<01:22, 3.43s/it]
Flavor chain: 28%|██▊ | 9/32 [00:30<01:19, 3.45s/it]
Flavor chain: 31%|███▏ | 10/32 [00:34<01:16, 3.48s/it]
Flavor chain: 34%|███▍ | 11/32 [00:37<01:13, 3.49s/it]
Flavor chain: 34%|███▍ | 11/32 [00:41<01:18, 3.75s/it]
0%| | 0/55 [00:00<?, ?it/s]
42%|████▏ | 23/55 [00:00<00:00, 228.10it/s]
89%|████████▉ | 49/55 [00:00<00:00, 242.68it/s]
100%|██████████| 55/55 [00:00<00:00, 242.31it/s]
0%| | 0/6 [00:00<?, ?it/s]
100%|██████████| 6/6 [00:00<00:00, 202.71it/s]
0%| | 0/50 [00:00<?, ?it/s]
62%|██████▏ | 31/50 [00:00<00:00, 300.32it/s]
100%|██████████| 50/50 [00:00<00:00, 303.22it/s]