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.
borisdayma /dalle-mini:2e3975b1
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 borisdayma/dalle-mini using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"borisdayma/dalle-mini:2e3975b1692cd6aecac28616dba364cc9f1e30c610c6efd62dbe9b9c7d1d03ea",
{
input: {
prompt: "An astronaut riding a horse in a photorealistic style",
n_predictions: 9,
show_clip_score: false
}
}
);
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 borisdayma/dalle-mini using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"borisdayma/dalle-mini:2e3975b1692cd6aecac28616dba364cc9f1e30c610c6efd62dbe9b9c7d1d03ea",
input={
"prompt": "An astronaut riding a horse in a photorealistic style",
"n_predictions": 9,
"show_clip_score": False
}
)
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 borisdayma/dalle-mini 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": "borisdayma/dalle-mini:2e3975b1692cd6aecac28616dba364cc9f1e30c610c6efd62dbe9b9c7d1d03ea",
"input": {
"prompt": "An astronaut riding a horse in a photorealistic style",
"n_predictions": 9,
"show_clip_score": false
}
}' \
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-06-14T22:34:06.593577Z",
"created_at": "2022-06-14T22:31:59.951073Z",
"data_removed": false,
"error": null,
"id": "hysfd53mpvguxa5nkbci75gpru",
"input": {
"prompt": "An astronaut riding a horse in a photorealistic style",
"n_predictions": "9"
},
"logs": "Tokenizing prompt...\nGenerating images...\n/root/.pyenv/versions/3.8.13/lib/python3.8/site-packages/jax/_src/tree_util.py:188: FutureWarning: jax.tree_util.tree_multimap() is deprecated. Please use jax.tree_util.tree_map() instead as a drop-in replacement.\n warnings.warn('jax.tree_util.tree_multimap() is deprecated. Please use jax.tree_util.tree_map() '",
"metrics": {
"predict_time": 57.479461,
"total_time": 126.642504
},
"output": [
{
"image": "https://replicate.delivery/mgxm/6c6a1dbb-2eaa-4e0d-b0a1-7185a3b2f314/output_0.png"
},
{
"image": "https://replicate.delivery/mgxm/304b5f48-6a66-462a-96ec-074a9b49bfb4/output_1.png"
},
{
"image": "https://replicate.delivery/mgxm/d9db10e9-cac5-4dfa-b452-139adb8e1fb2/output_2.png"
},
{
"image": "https://replicate.delivery/mgxm/190c6777-c514-4dc6-af24-caa68362b415/output_3.png"
},
{
"image": "https://replicate.delivery/mgxm/d7a2a6f2-7723-4989-a75b-d12881260a15/output_4.png"
},
{
"image": "https://replicate.delivery/mgxm/244d7551-f33f-496f-9592-c4cde47da113/output_5.png"
},
{
"image": "https://replicate.delivery/mgxm/85888771-c456-498b-b9cd-edddad61774f/output_6.png"
},
{
"image": "https://replicate.delivery/mgxm/a83029d3-1ca2-4c96-910a-9b9a5568a350/output_7.png"
},
{
"image": "https://replicate.delivery/mgxm/a4eb1c1c-0c24-4b7a-b811-16c9073a975c/output_8.png"
}
],
"started_at": "2022-06-14T22:33:09.114116Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/hysfd53mpvguxa5nkbci75gpru",
"cancel": "https://api.replicate.com/v1/predictions/hysfd53mpvguxa5nkbci75gpru/cancel"
},
"version": "2e3975b1692cd6aecac28616dba364cc9f1e30c610c6efd62dbe9b9c7d1d03ea"
}
Tokenizing prompt...
Generating images...
/root/.pyenv/versions/3.8.13/lib/python3.8/site-packages/jax/_src/tree_util.py:188: FutureWarning: jax.tree_util.tree_multimap() is deprecated. Please use jax.tree_util.tree_map() instead as a drop-in replacement.
warnings.warn('jax.tree_util.tree_multimap() is deprecated. Please use jax.tree_util.tree_map() '