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:2af375da21c5b824a84e1c459f45b69a117ec8649c2aa974112d7cf1840fc0ce",
{
input: {
text: "Moai statue giving a TED talk",
top_k: 128,
seamless: false,
grid_size: 5,
save_as_png: false,
temperature: 1,
progressive_outputs: true,
supercondition_factor: 16
}
}
);
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 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:2af375da21c5b824a84e1c459f45b69a117ec8649c2aa974112d7cf1840fc0ce",
input={
"text": "Moai statue giving a TED talk",
"top_k": 128,
"seamless": False,
"grid_size": 5,
"save_as_png": False,
"temperature": 1,
"progressive_outputs": True,
"supercondition_factor": 16
}
)
# 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": "2af375da21c5b824a84e1c459f45b69a117ec8649c2aa974112d7cf1840fc0ce",
"input": {
"text": "Moai statue giving a TED talk",
"top_k": 128,
"seamless": false,
"grid_size": 5,
"save_as_png": false,
"temperature": 1,
"progressive_outputs": true,
"supercondition_factor": 16
}
}' \
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-25T00:37:21.840787Z",
"created_at": "2022-07-25T00:37:05.490728Z",
"data_removed": false,
"error": null,
"id": "drkg55flvjet3ooohc524kvfg4",
"input": {
"text": "Moai statue giving a TED talk",
"top_k": "128",
"grid_size": "5",
"temperature": "1",
"progressive_outputs": true,
"supercondition_factor": "16"
},
"logs": "tokenizing text\n['Ġmo', 'ai']\n['Ġstatue']\n['Ġgiving']\n['Ġa']\n['Ġted']\n['Ġtalk']\n9 text tokens [0, 924, 336, 4039, 8658, 58, 5678, 2727, 2]\nencoding text tokens\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image\ndetokenizing image",
"metrics": {
"predict_time": 16.147947,
"total_time": 16.350059
},
"output": [
"https://replicate.delivery/mgxm/7d78edb7-c91a-4ccc-9734-125953840fac/moai-statue-giving-a-ted-talk-iter-1.jpg",
"https://replicate.delivery/mgxm/8644d51a-c196-4896-89f0-9b8f04779e2f/moai-statue-giving-a-ted-talk-iter-2.jpg",
"https://replicate.delivery/mgxm/9e1c9724-d8b5-429a-aaad-90288d1ac4ab/moai-statue-giving-a-ted-talk-iter-3.jpg",
"https://replicate.delivery/mgxm/3ae242e9-5d5e-4784-bfc7-79c0051d902f/moai-statue-giving-a-ted-talk-iter-4.jpg",
"https://replicate.delivery/mgxm/e48cd201-4260-40bb-8632-21da067246b8/moai-statue-giving-a-ted-talk-iter-5.jpg",
"https://replicate.delivery/mgxm/0eb4d55e-e427-4db4-92e1-682f07563076/moai-statue-giving-a-ted-talk-iter-6.jpg",
"https://replicate.delivery/mgxm/04bc6fb5-c1c4-4f3f-9ee9-f140a9f62412/moai-statue-giving-a-ted-talk-iter-7.jpg",
"https://replicate.delivery/mgxm/b5ecd545-efca-46ae-8496-786ad16be61b/moai-statue-giving-a-ted-talk.jpg"
],
"started_at": "2022-07-25T00:37:05.692840Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/drkg55flvjet3ooohc524kvfg4",
"cancel": "https://api.replicate.com/v1/predictions/drkg55flvjet3ooohc524kvfg4/cancel"
},
"version": "888c72d60932bca21344efcfdaecb3f0fbeb4bf40ee9ec601cc8fda806b5bfd9"
}
tokenizing text
['Ġmo', 'ai']
['Ġstatue']
['Ġgiving']
['Ġa']
['Ġted']
['Ġtalk']
9 text tokens [0, 924, 336, 4039, 8658, 58, 5678, 2727, 2]
encoding text tokens
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
detokenizing image
This example was created by a different version, kuprel/min-dalle:888c72d6.