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:cb2da7da16a54c78ad915be99f00c028a8d619031946ed4de46fa02c677230f1",
{
input: {
text: "Professional Photography of the inside of a broken, abandoned Chuck E Cheese in the middle of the night, with flash enabled",
top_k: 16384,
seamless: false,
grid_size: 5,
save_as_png: false,
temperature: 0.5,
progressive_outputs: true,
supercondition_factor: 64
}
}
);
// 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:cb2da7da16a54c78ad915be99f00c028a8d619031946ed4de46fa02c677230f1",
input={
"text": "Professional Photography of the inside of a broken, abandoned Chuck E Cheese in the middle of the night, with flash enabled",
"top_k": 16384,
"seamless": False,
"grid_size": 5,
"save_as_png": False,
"temperature": 0.5,
"progressive_outputs": True,
"supercondition_factor": 64
}
)
# 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:cb2da7da16a54c78ad915be99f00c028a8d619031946ed4de46fa02c677230f1",
"input": {
"text": "Professional Photography of the inside of a broken, abandoned Chuck E Cheese in the middle of the night, with flash enabled",
"top_k": 16384,
"seamless": false,
"grid_size": 5,
"save_as_png": false,
"temperature": 0.5,
"progressive_outputs": true,
"supercondition_factor": 64
}
}' \
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-18T13:32:26.937871Z",
"created_at": "2022-07-18T13:32:10.604766Z",
"data_removed": false,
"error": null,
"id": "ei2wyyu3uzcinbxde6w4pbrutu",
"input": {
"text": "Professional Photography of the inside of a broken, abandoned Chuck E Cheese in the middle of the night, with flash enabled",
"top_k": "16384",
"grid_size": "5",
"temperature": "0.5",
"progressive_outputs": true,
"supercondition_factor": "64"
},
"logs": "tokenizing text\n['Ġprofessional']\n['Ġphotography']\n['Ġof']\n['Ġthe']\n['Ġinside']\n['Ġof']\n['Ġa']\n['Ġbroken', ',']\n['Ġabandoned']\n['Ġchuck']\n['Ġe']\n['Ġcheese']\n['Ġin']\n['Ġthe']\n['Ġmiddle']\n['Ġof']\n['Ġthe']\n['Ġnight', ',']\n['Ġwith']\n['Ġflash']\n['Ġenabled']\n25 text tokens [0, 2995, 1224, 111, 99, 2775, 111, 58, 7010, 11, 9352, 10669, 110, 4672, 91, 99, 2845, 111, 99, 1413, 11, 208, 3745, 33869, 2]\nencoding text tokens\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image",
"metrics": {
"predict_time": 15.4993,
"total_time": 16.333105
},
"output": [
"https://replicate.delivery/mgxm/df46559c-aa91-468a-942e-9fd054cac1c4/min-dalle-iter-1.jpg",
"https://replicate.delivery/mgxm/6e2cf70a-46b8-41a5-b85e-699b942618a5/min-dalle-iter-2.jpg",
"https://replicate.delivery/mgxm/553f2ef1-4d9c-41f3-b805-ecb095fe69e4/min-dalle-iter-3.jpg",
"https://replicate.delivery/mgxm/e0cb0878-8954-4554-98da-fd5b79c31a4a/min-dalle-iter-4.jpg",
"https://replicate.delivery/mgxm/e6f5b9f3-705d-4f14-b4bd-299a2ff3159f/min-dalle-iter-5.jpg",
"https://replicate.delivery/mgxm/46008754-fee2-4798-991e-cc39d5243ede/min-dalle-iter-6.jpg",
"https://replicate.delivery/mgxm/891675e1-9c4a-492e-bce0-12b13c467302/min-dalle-iter-7.jpg",
"https://replicate.delivery/mgxm/69c2dc42-274c-4201-8846-4ce1db84a628/min-dalle-iter-8.jpg"
],
"started_at": "2022-07-18T13:32:11.438571Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ei2wyyu3uzcinbxde6w4pbrutu",
"cancel": "https://api.replicate.com/v1/predictions/ei2wyyu3uzcinbxde6w4pbrutu/cancel"
},
"version": "cb2da7da16a54c78ad915be99f00c028a8d619031946ed4de46fa02c677230f1"
}
tokenizing text
['Ġprofessional']
['Ġphotography']
['Ġof']
['Ġthe']
['Ġinside']
['Ġof']
['Ġa']
['Ġbroken', ',']
['Ġabandoned']
['Ġchuck']
['Ġe']
['Ġcheese']
['Ġin']
['Ġthe']
['Ġmiddle']
['Ġof']
['Ġthe']
['Ġnight', ',']
['Ġwith']
['Ġflash']
['Ġenabled']
25 text tokens [0, 2995, 1224, 111, 99, 2775, 111, 58, 7010, 11, 9352, 10669, 110, 4672, 91, 99, 2845, 111, 99, 1413, 11, 208, 3745, 33869, 2]
encoding text tokens
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image