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.
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 kuprel/min-dalle using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"kuprel/min-dalle:dd9bb5e3ec9c8ffe775546fc6cc39587d7e11a1c789582fd4c54e221a66158c7",
{
input: {
text: "A ghostly silhouette of a Lovecraftian God peers down onto the Chicago city skyline, view from lake Michigan, dark and menacing clouds, ominous lighting, hyperrealism, high resolution, digital art",
grid_size: 4,
intermediate_outputs: true,
log2_supercondition_factor: 6
}
}
);
// 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 kuprel/min-dalle using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"kuprel/min-dalle:dd9bb5e3ec9c8ffe775546fc6cc39587d7e11a1c789582fd4c54e221a66158c7",
input={
"text": "A ghostly silhouette of a Lovecraftian God peers down onto the Chicago city skyline, view from lake Michigan, dark and menacing clouds, ominous lighting, hyperrealism, high resolution, digital art",
"grid_size": 4,
"intermediate_outputs": True,
"log2_supercondition_factor": 6
}
)
# The kuprel/min-dalle model can stream output as it's running.
# The predict method returns an iterator, and you can iterate over that output.
for item in output:
# https://replicate.com/kuprel/min-dalle/api#output-schema
print(item)
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 kuprel/min-dalle 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": "kuprel/min-dalle:dd9bb5e3ec9c8ffe775546fc6cc39587d7e11a1c789582fd4c54e221a66158c7",
"input": {
"text": "A ghostly silhouette of a Lovecraftian God peers down onto the Chicago city skyline, view from lake Michigan, dark and menacing clouds, ominous lighting, hyperrealism, high resolution, digital art",
"grid_size": 4,
"intermediate_outputs": true,
"log2_supercondition_factor": 6
}
}' \
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": "2022-07-07T09:15:03.520878Z",
"created_at": "2022-07-07T09:14:43.459474Z",
"data_removed": false,
"error": null,
"id": "gbm2sxbq2zaprk3actdaf5kskq",
"input": {
"text": "A ghostly silhouette of a Lovecraftian God peers down onto the Chicago city skyline, view from lake Michigan, dark and menacing clouds, ominous lighting, hyperrealism, high resolution, digital art",
"grid_size": "4",
"intermediate_outputs": true,
"log2_supercondition_factor": "6"
},
"logs": "tokenizing text\n['Ġa']\n['Ġghost', 'ly']\n['Ġsilhouette']\n['Ġof']\n['Ġa']\n['Ġlovecraft', 'ian']\n['Ġgod']\n['Ġpeers']\n['Ġdown']\n['Ġonto']\n['Ġthe']\n['Ġchicago']\n['Ġcity']\n['Ġskyline', ',']\n['Ġview']\n['Ġfrom']\n['Ġlake']\n['Ġmichigan', ',']\n['Ġdark']\n['Ġand']\n['Ġmen', 'acing']\n['Ġclouds', ',']\n['Ġom', 'inous']\n['Ġlighting', ',']\n['Ġhyper', 'real', 'ism', ',']\n['Ġhigh']\n['Ġresolution', ',']\n['Ġdigital']\n['Ġart']\ntext tokens [0, 58, 4896, 304, 5983, 111, 58, 33532, 217, 1646, 46264, 360, 20835, 99, 2377, 645, 9542, 11, 1328, 314, 1586, 4594, 11, 1892, 128, 554, 13231, 10201, 11, 2197, 32687, 4352, 11, 6139, 4646, 822, 11, 524, 7790, 11, 1189, 241, 2]\nencoding text tokens\nsampling row 1 of 16\nsampling row 2 of 16\ndetokenizing image\nsampling row 3 of 16\nsampling row 4 of 16\ndetokenizing image\nsampling row 5 of 16\nsampling row 6 of 16\ndetokenizing image\nsampling row 7 of 16\nsampling row 8 of 16\ndetokenizing image\nsampling row 9 of 16\nsampling row 10 of 16\ndetokenizing image\nsampling row 11 of 16\nsampling row 12 of 16\ndetokenizing image\nsampling row 13 of 16\nsampling row 14 of 16\ndetokenizing image\nsampling row 15 of 16\nsampling row 16 of 16\ndetokenizing image",
"metrics": {
"predict_time": 15.007779,
"total_time": 20.061404
},
"output": [
"https://replicate.delivery/mgxm/fee316d3-281c-46f6-8c9c-6970aae35929/min-dalle-iter-1.jpg",
"https://replicate.delivery/mgxm/d7b2333e-5270-4fdc-98b9-b626f9144c5d/min-dalle-iter-2.jpg",
"https://replicate.delivery/mgxm/673a6735-cf65-41cc-80bf-6b24fd606e3a/min-dalle-iter-3.jpg",
"https://replicate.delivery/mgxm/95594e9a-c4c7-4c5a-8e46-c9866b61c91f/min-dalle-iter-4.jpg",
"https://replicate.delivery/mgxm/c82e93fd-7002-49b0-a35d-bef9204a7446/min-dalle-iter-5.jpg",
"https://replicate.delivery/mgxm/9f42fe89-6df2-4bfe-a914-7cf26bb888d8/min-dalle-iter-6.jpg",
"https://replicate.delivery/mgxm/e76a82ad-8f3a-4eb1-abd8-0b472948f8cd/min-dalle-iter-7.jpg",
"https://replicate.delivery/mgxm/d59ea561-ece4-4930-b82a-f63f2384383f/min-dalle-iter-8.jpg"
],
"started_at": "2022-07-07T09:14:48.513099Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/gbm2sxbq2zaprk3actdaf5kskq",
"cancel": "https://api.replicate.com/v1/predictions/gbm2sxbq2zaprk3actdaf5kskq/cancel"
},
"version": "dd9bb5e3ec9c8ffe775546fc6cc39587d7e11a1c789582fd4c54e221a66158c7"
}
tokenizing text
['Ġa']
['Ġghost', 'ly']
['Ġsilhouette']
['Ġof']
['Ġa']
['Ġlovecraft', 'ian']
['Ġgod']
['Ġpeers']
['Ġdown']
['Ġonto']
['Ġthe']
['Ġchicago']
['Ġcity']
['Ġskyline', ',']
['Ġview']
['Ġfrom']
['Ġlake']
['Ġmichigan', ',']
['Ġdark']
['Ġand']
['Ġmen', 'acing']
['Ġclouds', ',']
['Ġom', 'inous']
['Ġlighting', ',']
['Ġhyper', 'real', 'ism', ',']
['Ġhigh']
['Ġresolution', ',']
['Ġdigital']
['Ġart']
text tokens [0, 58, 4896, 304, 5983, 111, 58, 33532, 217, 1646, 46264, 360, 20835, 99, 2377, 645, 9542, 11, 1328, 314, 1586, 4594, 11, 1892, 128, 554, 13231, 10201, 11, 2197, 32687, 4352, 11, 6139, 4646, 822, 11, 524, 7790, 11, 1189, 241, 2]
encoding text tokens
sampling row 1 of 16
sampling row 2 of 16
detokenizing image
sampling row 3 of 16
sampling row 4 of 16
detokenizing image
sampling row 5 of 16
sampling row 6 of 16
detokenizing image
sampling row 7 of 16
sampling row 8 of 16
detokenizing image
sampling row 9 of 16
sampling row 10 of 16
detokenizing image
sampling row 11 of 16
sampling row 12 of 16
detokenizing image
sampling row 13 of 16
sampling row 14 of 16
detokenizing image
sampling row 15 of 16
sampling row 16 of 16
detokenizing image