Prediction
pharmapsychotic/clip-interrogator:a4a8bafd6089e1716b06057c42b19378250d008b80fe87caa5cd36d40c1eda90Input
{
"mode": "best",
"image": "https://replicate.delivery/pbxt/IXKahDMLmKvKsXaYdmI5hycBz0L0dR8Mk1VI1HfCUoETQt8l/vst-teeth-falling-out-this-dream-involves-the-dreamer-losing-their-teeth-either-by-them-falling-out-or-crumbling-it-can-be-associated-with-feelings-of-insecurity-vulnerability-or-c-1653343400.png",
"clip_model_name": "ViT-L-14/openai"
}
Install Replicate’s Node.js client library:
npm install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pharmapsychotic/clip-interrogator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pharmapsychotic/clip-interrogator:a4a8bafd6089e1716b06057c42b19378250d008b80fe87caa5cd36d40c1eda90",
{
input: {
mode: "best",
image: "https://replicate.delivery/pbxt/IXKahDMLmKvKsXaYdmI5hycBz0L0dR8Mk1VI1HfCUoETQt8l/vst-teeth-falling-out-this-dream-involves-the-dreamer-losing-their-teeth-either-by-them-falling-out-or-crumbling-it-can-be-associated-with-feelings-of-insecurity-vulnerability-or-c-1653343400.png",
clip_model_name: "ViT-L-14/openai"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:
pip install replicate
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:
import replicate
Run pharmapsychotic/clip-interrogator using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pharmapsychotic/clip-interrogator:a4a8bafd6089e1716b06057c42b19378250d008b80fe87caa5cd36d40c1eda90",
input={
"mode": "best",
"image": "https://replicate.delivery/pbxt/IXKahDMLmKvKsXaYdmI5hycBz0L0dR8Mk1VI1HfCUoETQt8l/vst-teeth-falling-out-this-dream-involves-the-dreamer-losing-their-teeth-either-by-them-falling-out-or-crumbling-it-can-be-associated-with-feelings-of-insecurity-vulnerability-or-c-1653343400.png",
"clip_model_name": "ViT-L-14/openai"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
Set the
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run pharmapsychotic/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": "pharmapsychotic/clip-interrogator:a4a8bafd6089e1716b06057c42b19378250d008b80fe87caa5cd36d40c1eda90",
"input": {
"mode": "best",
"image": "https://replicate.delivery/pbxt/IXKahDMLmKvKsXaYdmI5hycBz0L0dR8Mk1VI1HfCUoETQt8l/vst-teeth-falling-out-this-dream-involves-the-dreamer-losing-their-teeth-either-by-them-falling-out-or-crumbling-it-can-be-associated-with-feelings-of-insecurity-vulnerability-or-c-1653343400.png",
"clip_model_name": "ViT-L-14/openai"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
a collage of people with different facial expressions, digital art, inspired by Nicolaes Eliaszoon Pickenoy, behance contest winner, generative art, unclipped fingernails, mad old bald zombie, looking in mirror at older self, philip selway (drums), cartoony shaders, digital restoration
{
"completed_at": "2023-03-25T15:47:43.342574Z",
"created_at": "2023-03-25T15:46:57.101851Z",
"data_removed": false,
"error": null,
"id": "jz4khaprtna53hpunpka5hfocy",
"input": {
"mode": "best",
"image": "https://replicate.delivery/pbxt/IXKahDMLmKvKsXaYdmI5hycBz0L0dR8Mk1VI1HfCUoETQt8l/vst-teeth-falling-out-this-dream-involves-the-dreamer-losing-their-teeth-either-by-them-falling-out-or-crumbling-it-can-be-associated-with-feelings-of-insecurity-vulnerability-or-c-1653343400.png",
"clip_model_name": "ViT-L-14/openai"
},
"logs": "0%| | 0/50 [00:00<?, ?it/s]\n 28%|██▊ | 14/50 [00:00<00:00, 132.12it/s]\n 56%|█████▌ | 28/50 [00:00<00:00, 128.62it/s]\n 82%|████████▏ | 41/50 [00:00<00:00, 127.36it/s]\n100%|██████████| 50/50 [00:00<00:00, 131.26it/s]\n 0%| | 0/6 [00:00<?, ?it/s]\n100%|██████████| 6/6 [00:00<00:00, 94.52it/s]\n 0%| | 0/1 [00:00<?, ?it/s]\n100%|██████████| 1/1 [00:00<00:00, 40.74it/s]\nFlavor chain: 0%| | 0/32 [00:00<?, ?it/s]\nFlavor chain: 3%|▎ | 1/32 [00:03<01:39, 3.20s/it]\nFlavor chain: 6%|▋ | 2/32 [00:06<01:36, 3.22s/it]\nFlavor chain: 9%|▉ | 3/32 [00:09<01:33, 3.22s/it]\nFlavor chain: 12%|█▎ | 4/32 [00:12<01:30, 3.25s/it]\nFlavor chain: 16%|█▌ | 5/32 [00:16<01:28, 3.29s/it]\nFlavor chain: 19%|█▉ | 6/32 [00:19<01:25, 3.30s/it]\nFlavor chain: 19%|█▉ | 6/32 [00:22<01:39, 3.83s/it]",
"metrics": {
"predict_time": 26.599047,
"total_time": 46.240723
},
"output": "a collage of people with different facial expressions, digital art, inspired by Nicolaes Eliaszoon Pickenoy, behance contest winner, generative art, unclipped fingernails, mad old bald zombie, looking in mirror at older self, philip selway (drums), cartoony shaders, digital restoration",
"started_at": "2023-03-25T15:47:16.743527Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/jz4khaprtna53hpunpka5hfocy",
"cancel": "https://api.replicate.com/v1/predictions/jz4khaprtna53hpunpka5hfocy/cancel"
},
"version": "a4a8bafd6089e1716b06057c42b19378250d008b80fe87caa5cd36d40c1eda90"
}
Generated in
0%| | 0/50 [00:00<?, ?it/s]
28%|██▊ | 14/50 [00:00<00:00, 132.12it/s]
56%|█████▌ | 28/50 [00:00<00:00, 128.62it/s]
82%|████████▏ | 41/50 [00:00<00:00, 127.36it/s]
100%|██████████| 50/50 [00:00<00:00, 131.26it/s]
0%| | 0/6 [00:00<?, ?it/s]
100%|██████████| 6/6 [00:00<00:00, 94.52it/s]
0%| | 0/1 [00:00<?, ?it/s]
100%|██████████| 1/1 [00:00<00:00, 40.74it/s]
Flavor chain: 0%| | 0/32 [00:00<?, ?it/s]
Flavor chain: 3%|▎ | 1/32 [00:03<01:39, 3.20s/it]
Flavor chain: 6%|▋ | 2/32 [00:06<01:36, 3.22s/it]
Flavor chain: 9%|▉ | 3/32 [00:09<01:33, 3.22s/it]
Flavor chain: 12%|█▎ | 4/32 [00:12<01:30, 3.25s/it]
Flavor chain: 16%|█▌ | 5/32 [00:16<01:28, 3.29s/it]
Flavor chain: 19%|█▉ | 6/32 [00:19<01:25, 3.30s/it]
Flavor chain: 19%|█▉ | 6/32 [00:22<01:39, 3.83s/it]