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.
luosiallen /latent-consistency-model:553803fd
This version has been disabled because it consistently fails to complete setup.
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 luosiallen/latent-consistency-model using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"luosiallen/latent-consistency-model:553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc",
{
input: {
width: 768,
height: 768,
prompt: "BAKED SALMON WITH A SIDE OF ROASTED VEGETABLES",
num_images: 1,
guidance_scale: 8,
num_inference_steps: 8
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 luosiallen/latent-consistency-model using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"luosiallen/latent-consistency-model:553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc",
input={
"width": 768,
"height": 768,
"prompt": "BAKED SALMON WITH A SIDE OF ROASTED VEGETABLES",
"num_images": 1,
"guidance_scale": 8,
"num_inference_steps": 8
}
)
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 luosiallen/latent-consistency-model 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": "luosiallen/latent-consistency-model:553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc",
"input": {
"width": 768,
"height": 768,
"prompt": "BAKED SALMON WITH A SIDE OF ROASTED VEGETABLES",
"num_images": 1,
"guidance_scale": 8,
"num_inference_steps": 8
}
}' \
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-24T12:35:37.992846Z",
"created_at": "2023-10-24T12:35:34.897498Z",
"data_removed": false,
"error": null,
"id": "sypnoa3byomelxzprolnu43wxu",
"input": {
"width": 768,
"height": 768,
"prompt": "BAKED SALMON WITH A SIDE OF ROASTED VEGETABLES",
"num_images": 1,
"guidance_scale": 8,
"num_inference_steps": 8
},
"logs": "Using seed: 13210\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:01, 6.41it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 6.37it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 6.34it/s]\n 50%|█████ | 4/8 [00:00<00:00, 6.33it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 6.33it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 6.34it/s]\n 88%|████████▊ | 7/8 [00:01<00:00, 6.34it/s]\n100%|██████████| 8/8 [00:01<00:00, 6.34it/s]\n100%|██████████| 8/8 [00:01<00:00, 6.34it/s]",
"metrics": {
"predict_time": 3.13702,
"total_time": 3.095348
},
"output": [
"https://pbxt.replicate.delivery/B7TV9KIuGGrjJNA83BDNdQgbGLWBb0J6d97UpKhFPQDGsVcE/out-0.png"
],
"started_at": "2023-10-24T12:35:34.855826Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/sypnoa3byomelxzprolnu43wxu",
"cancel": "https://api.replicate.com/v1/predictions/sypnoa3byomelxzprolnu43wxu/cancel"
},
"version": "553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc"
}
Using seed: 13210
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:01, 6.41it/s]
25%|██▌ | 2/8 [00:00<00:00, 6.37it/s]
38%|███▊ | 3/8 [00:00<00:00, 6.34it/s]
50%|█████ | 4/8 [00:00<00:00, 6.33it/s]
62%|██████▎ | 5/8 [00:00<00:00, 6.33it/s]
75%|███████▌ | 6/8 [00:00<00:00, 6.34it/s]
88%|████████▊ | 7/8 [00:01<00:00, 6.34it/s]
100%|██████████| 8/8 [00:01<00:00, 6.34it/s]
100%|██████████| 8/8 [00:01<00:00, 6.34it/s]