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.
m1guelpf /emoji-diffusion:ba30355c
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 m1guelpf/emoji-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"m1guelpf/emoji-diffusion:ba30355ce02ca4755d60f7f083e3c0e2593fd3ee687a0dc1fca236deb6046e4d",
{
input: {
width: 512,
height: 512,
prompt: "snowy montain emoji",
scheduler: "DDIM",
num_outputs: 1,
guidance_scale: 7.5,
prompt_strength: 0.8,
num_inference_steps: 50
}
}
);
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 m1guelpf/emoji-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"m1guelpf/emoji-diffusion:ba30355ce02ca4755d60f7f083e3c0e2593fd3ee687a0dc1fca236deb6046e4d",
input={
"width": 512,
"height": 512,
"prompt": "snowy montain emoji",
"scheduler": "DDIM",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50
}
)
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 m1guelpf/emoji-diffusion 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": "ba30355ce02ca4755d60f7f083e3c0e2593fd3ee687a0dc1fca236deb6046e4d",
"input": {
"width": 512,
"height": 512,
"prompt": "snowy montain emoji",
"scheduler": "DDIM",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50
}
}' \
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-11-22T12:35:19.906080Z",
"created_at": "2022-11-22T12:35:16.003645Z",
"data_removed": false,
"error": null,
"id": "a7rgcuwruvbudg6d5gcq4nnt4y",
"input": {
"width": 512,
"height": 512,
"prompt": "snowy montain emoji",
"scheduler": "DDIM",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50
},
"logs": "Using seed: 17811\n 0%| | 0/50 [00:00<?, ?it/s]\n 4%|▍ | 2/50 [00:00<00:03, 13.60it/s]\n 8%|▊ | 4/50 [00:00<00:03, 14.33it/s]\n 12%|█▏ | 6/50 [00:00<00:03, 14.58it/s]\n 16%|█▌ | 8/50 [00:00<00:02, 14.43it/s]\n 20%|██ | 10/50 [00:00<00:02, 14.44it/s]\n 24%|██▍ | 12/50 [00:00<00:02, 14.63it/s]\n 28%|██▊ | 14/50 [00:00<00:02, 14.76it/s]\n 32%|███▏ | 16/50 [00:01<00:02, 14.89it/s]\n 36%|███▌ | 18/50 [00:01<00:02, 14.96it/s]\n 40%|████ | 20/50 [00:01<00:02, 14.96it/s]\n 44%|████▍ | 22/50 [00:01<00:01, 14.88it/s]\n 48%|████▊ | 24/50 [00:01<00:01, 14.80it/s]\n 52%|█████▏ | 26/50 [00:01<00:01, 14.80it/s]\n 56%|█████▌ | 28/50 [00:01<00:01, 14.80it/s]\n 60%|██████ | 30/50 [00:02<00:01, 14.76it/s]\n 64%|██████▍ | 32/50 [00:02<00:01, 14.80it/s]\n 68%|██████▊ | 34/50 [00:02<00:01, 14.78it/s]\n 72%|███████▏ | 36/50 [00:02<00:00, 14.74it/s]\n 76%|███████▌ | 38/50 [00:02<00:00, 14.58it/s]\n 80%|████████ | 40/50 [00:02<00:00, 14.61it/s]\n 84%|████████▍ | 42/50 [00:02<00:00, 14.66it/s]\n 88%|████████▊ | 44/50 [00:02<00:00, 14.64it/s]\n 92%|█████████▏| 46/50 [00:03<00:00, 14.71it/s]\n 96%|█████████▌| 48/50 [00:03<00:00, 14.74it/s]\n100%|██████████| 50/50 [00:03<00:00, 14.40it/s]\n100%|██████████| 50/50 [00:03<00:00, 14.66it/s]",
"metrics": {
"predict_time": 3.868399,
"total_time": 3.902435
},
"output": [
"https://replicate.delivery/pbxt/KFyqEQeeEEutbUaUxeCf2tDdyfUXQNeZz1zOT3QNvx1wB0pAE/out-0.png"
],
"started_at": "2022-11-22T12:35:16.037681Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/a7rgcuwruvbudg6d5gcq4nnt4y",
"cancel": "https://api.replicate.com/v1/predictions/a7rgcuwruvbudg6d5gcq4nnt4y/cancel"
},
"version": "ba30355ce02ca4755d60f7f083e3c0e2593fd3ee687a0dc1fca236deb6046e4d"
}
Using seed: 17811
0%| | 0/50 [00:00<?, ?it/s]
4%|▍ | 2/50 [00:00<00:03, 13.60it/s]
8%|▊ | 4/50 [00:00<00:03, 14.33it/s]
12%|█▏ | 6/50 [00:00<00:03, 14.58it/s]
16%|█▌ | 8/50 [00:00<00:02, 14.43it/s]
20%|██ | 10/50 [00:00<00:02, 14.44it/s]
24%|██▍ | 12/50 [00:00<00:02, 14.63it/s]
28%|██▊ | 14/50 [00:00<00:02, 14.76it/s]
32%|███▏ | 16/50 [00:01<00:02, 14.89it/s]
36%|███▌ | 18/50 [00:01<00:02, 14.96it/s]
40%|████ | 20/50 [00:01<00:02, 14.96it/s]
44%|████▍ | 22/50 [00:01<00:01, 14.88it/s]
48%|████▊ | 24/50 [00:01<00:01, 14.80it/s]
52%|█████▏ | 26/50 [00:01<00:01, 14.80it/s]
56%|█████▌ | 28/50 [00:01<00:01, 14.80it/s]
60%|██████ | 30/50 [00:02<00:01, 14.76it/s]
64%|██████▍ | 32/50 [00:02<00:01, 14.80it/s]
68%|██████▊ | 34/50 [00:02<00:01, 14.78it/s]
72%|███████▏ | 36/50 [00:02<00:00, 14.74it/s]
76%|███████▌ | 38/50 [00:02<00:00, 14.58it/s]
80%|████████ | 40/50 [00:02<00:00, 14.61it/s]
84%|████████▍ | 42/50 [00:02<00:00, 14.66it/s]
88%|████████▊ | 44/50 [00:02<00:00, 14.64it/s]
92%|█████████▏| 46/50 [00:03<00:00, 14.71it/s]
96%|█████████▌| 48/50 [00:03<00:00, 14.74it/s]
100%|██████████| 50/50 [00:03<00:00, 14.40it/s]
100%|██████████| 50/50 [00:03<00:00, 14.66it/s]