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.
adithram /inkpunk-diffusion:780769de
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run adithram/inkpunk-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"adithram/inkpunk-diffusion:780769de0312a5f8afd675d385d9ca06883112268b7d2724a79d9f9f96bfbbe1",
{
input: {
width: 512,
height: 512,
prompt: "lone soldier in a post apocalyptic city street nvinkpunk",
scheduler: "DPMSolverMultistep",
num_outputs: 1,
guidance_scale: 7.5,
prompt_strength: 0.8,
num_inference_steps: 50
}
}
);
// 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 adithram/inkpunk-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"adithram/inkpunk-diffusion:780769de0312a5f8afd675d385d9ca06883112268b7d2724a79d9f9f96bfbbe1",
input={
"width": 512,
"height": 512,
"prompt": "lone soldier in a post apocalyptic city street nvinkpunk",
"scheduler": "DPMSolverMultistep",
"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 adithram/inkpunk-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": "adithram/inkpunk-diffusion:780769de0312a5f8afd675d385d9ca06883112268b7d2724a79d9f9f96bfbbe1",
"input": {
"width": 512,
"height": 512,
"prompt": "lone soldier in a post apocalyptic city street nvinkpunk",
"scheduler": "DPMSolverMultistep",
"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": "2023-03-15T14:52:41.154427Z",
"created_at": "2023-03-15T14:52:35.096842Z",
"data_removed": false,
"error": null,
"id": "fr73fn4fmnhrddkfiryw77ggae",
"input": {
"width": "512",
"height": "512",
"prompt": "lone soldier in a post apocalyptic city street nvinkpunk",
"scheduler": "DPMSolverMultistep",
"num_outputs": 1,
"guidance_scale": 7.5,
"prompt_strength": 0.8,
"num_inference_steps": 50
},
"logs": "Using seed: 27239\n 0%| | 0/50 [00:00<?, ?it/s]\n 2%|▏ | 1/50 [00:00<00:06, 7.84it/s]\n 4%|▍ | 2/50 [00:00<00:05, 8.01it/s]\n 6%|▌ | 3/50 [00:00<00:05, 8.70it/s]\n 10%|█ | 5/50 [00:00<00:04, 9.43it/s]\n 14%|█▍ | 7/50 [00:00<00:04, 9.74it/s]\n 18%|█▊ | 9/50 [00:00<00:04, 9.90it/s]\n 22%|██▏ | 11/50 [00:01<00:03, 9.99it/s]\n 26%|██▌ | 13/50 [00:01<00:03, 10.05it/s]\n 30%|███ | 15/50 [00:01<00:03, 10.08it/s]\n 34%|███▍ | 17/50 [00:01<00:03, 10.10it/s]\n 38%|███▊ | 19/50 [00:01<00:03, 10.13it/s]\n 42%|████▏ | 21/50 [00:02<00:02, 10.14it/s]\n 46%|████▌ | 23/50 [00:02<00:02, 10.14it/s]\n 50%|█████ | 25/50 [00:02<00:02, 10.14it/s]\n 54%|█████▍ | 27/50 [00:02<00:02, 10.14it/s]\n 58%|█████▊ | 29/50 [00:02<00:02, 10.15it/s]\n 62%|██████▏ | 31/50 [00:03<00:01, 10.15it/s]\n 66%|██████▌ | 33/50 [00:03<00:01, 10.16it/s]\n 70%|███████ | 35/50 [00:03<00:01, 10.15it/s]\n 74%|███████▍ | 37/50 [00:03<00:01, 10.14it/s]\n 78%|███████▊ | 39/50 [00:03<00:01, 10.15it/s]\n 82%|████████▏ | 41/50 [00:04<00:00, 10.14it/s]\n 86%|████████▌ | 43/50 [00:04<00:00, 10.14it/s]\n 90%|█████████ | 45/50 [00:04<00:00, 10.13it/s]\n 94%|█████████▍| 47/50 [00:04<00:00, 10.13it/s]\n 98%|█████████▊| 49/50 [00:04<00:00, 10.13it/s]\n100%|██████████| 50/50 [00:04<00:00, 10.02it/s]",
"metrics": {
"predict_time": 5.970233,
"total_time": 6.057585
},
"output": [
"https://replicate.delivery/pbxt/dxf6penvKmh1okgMgyMcrWI54PcCkfe75BX5WgzQUhRjbjfEC/out-0.png"
],
"started_at": "2023-03-15T14:52:35.184194Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fr73fn4fmnhrddkfiryw77ggae",
"cancel": "https://api.replicate.com/v1/predictions/fr73fn4fmnhrddkfiryw77ggae/cancel"
},
"version": "780769de0312a5f8afd675d385d9ca06883112268b7d2724a79d9f9f96bfbbe1"
}
Using seed: 27239
0%| | 0/50 [00:00<?, ?it/s]
2%|▏ | 1/50 [00:00<00:06, 7.84it/s]
4%|▍ | 2/50 [00:00<00:05, 8.01it/s]
6%|▌ | 3/50 [00:00<00:05, 8.70it/s]
10%|█ | 5/50 [00:00<00:04, 9.43it/s]
14%|█▍ | 7/50 [00:00<00:04, 9.74it/s]
18%|█▊ | 9/50 [00:00<00:04, 9.90it/s]
22%|██▏ | 11/50 [00:01<00:03, 9.99it/s]
26%|██▌ | 13/50 [00:01<00:03, 10.05it/s]
30%|███ | 15/50 [00:01<00:03, 10.08it/s]
34%|███▍ | 17/50 [00:01<00:03, 10.10it/s]
38%|███▊ | 19/50 [00:01<00:03, 10.13it/s]
42%|████▏ | 21/50 [00:02<00:02, 10.14it/s]
46%|████▌ | 23/50 [00:02<00:02, 10.14it/s]
50%|█████ | 25/50 [00:02<00:02, 10.14it/s]
54%|█████▍ | 27/50 [00:02<00:02, 10.14it/s]
58%|█████▊ | 29/50 [00:02<00:02, 10.15it/s]
62%|██████▏ | 31/50 [00:03<00:01, 10.15it/s]
66%|██████▌ | 33/50 [00:03<00:01, 10.16it/s]
70%|███████ | 35/50 [00:03<00:01, 10.15it/s]
74%|███████▍ | 37/50 [00:03<00:01, 10.14it/s]
78%|███████▊ | 39/50 [00:03<00:01, 10.15it/s]
82%|████████▏ | 41/50 [00:04<00:00, 10.14it/s]
86%|████████▌ | 43/50 [00:04<00:00, 10.14it/s]
90%|█████████ | 45/50 [00:04<00:00, 10.13it/s]
94%|█████████▍| 47/50 [00:04<00:00, 10.13it/s]
98%|█████████▊| 49/50 [00:04<00:00, 10.13it/s]
100%|██████████| 50/50 [00:04<00:00, 10.02it/s]