defaulta photo of <1> riding a horse on mars
typetext
{
"guidance_scale": "4.02",
"height": 512,
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/IzbeguwVsW3PcC1gbiLy5SeALwk4sGgWroHagcYIn9I960bQA/tmpjlodd7vazekezip.safetensors",
"num_inference_steps": "35",
"num_outputs": 1,
"prompt": "a photo of <1>, nvinkpunk",
"scheduler": "DPMSolverMultistep",
"width": 512
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Klg**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cloneofsimo/inkpunk_lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cloneofsimo/inkpunk_lora:d89bdb54b7cfe2fafe47bd00ede021a10c9487449bab8840414e0d3c49786f62",
{
input: {
guidance_scale: "4.02",
height: 512,
lora_scales: "0.6",
lora_urls: "https://replicate.delivery/pbxt/IzbeguwVsW3PcC1gbiLy5SeALwk4sGgWroHagcYIn9I960bQA/tmpjlodd7vazekezip.safetensors",
num_inference_steps: "35",
num_outputs: 1,
prompt: "a photo of <1>, nvinkpunk",
scheduler: "DPMSolverMultistep",
width: 512
}
}
);
// 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=r8_Klg**********************************
This is your API token. Keep it to yourself.
import replicate
Run cloneofsimo/inkpunk_lora using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cloneofsimo/inkpunk_lora:d89bdb54b7cfe2fafe47bd00ede021a10c9487449bab8840414e0d3c49786f62",
input={
"guidance_scale": "4.02",
"height": 512,
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/IzbeguwVsW3PcC1gbiLy5SeALwk4sGgWroHagcYIn9I960bQA/tmpjlodd7vazekezip.safetensors",
"num_inference_steps": "35",
"num_outputs": 1,
"prompt": "a photo of <1>, nvinkpunk",
"scheduler": "DPMSolverMultistep",
"width": 512
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Klg**********************************
This is your API token. Keep it to yourself.
Run cloneofsimo/inkpunk_lora 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": "cloneofsimo/inkpunk_lora:d89bdb54b7cfe2fafe47bd00ede021a10c9487449bab8840414e0d3c49786f62",
"input": {
"guidance_scale": "4.02",
"height": 512,
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/IzbeguwVsW3PcC1gbiLy5SeALwk4sGgWroHagcYIn9I960bQA/tmpjlodd7vazekezip.safetensors",
"num_inference_steps": "35",
"num_outputs": 1,
"prompt": "a photo of <1>, nvinkpunk",
"scheduler": "DPMSolverMultistep",
"width": 512
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "getff7cfwzek5ma5wzi22wrdji",
"model": "cloneofsimo/inkpunk_lora",
"version": "d89bdb54b7cfe2fafe47bd00ede021a10c9487449bab8840414e0d3c49786f62",
"input": {
"guidance_scale": "4.02",
"height": 512,
"lora_scales": "0.6",
"lora_urls": "https://replicate.delivery/pbxt/IzbeguwVsW3PcC1gbiLy5SeALwk4sGgWroHagcYIn9I960bQA/tmpjlodd7vazekezip.safetensors",
"num_inference_steps": "35",
"num_outputs": 1,
"prompt": "a photo of <1>, nvinkpunk",
"scheduler": "DPMSolverMultistep",
"width": 512
},
"logs": "Using seed: 45176\nThe requested LoRAs are loaded.\n 0%| | 0/35 [00:00<?, ?it/s]\n 3%|▎ | 1/35 [00:00<00:08, 4.04it/s]\n 6%|▌ | 2/35 [00:00<00:07, 4.52it/s]\n 9%|▊ | 3/35 [00:00<00:06, 4.77it/s]\n 11%|█▏ | 4/35 [00:00<00:06, 4.89it/s]\n 14%|█▍ | 5/35 [00:01<00:06, 4.95it/s]\n 17%|█▋ | 6/35 [00:01<00:05, 4.96it/s]\n 20%|██ | 7/35 [00:01<00:05, 4.99it/s]\n 23%|██▎ | 8/35 [00:01<00:05, 5.02it/s]\n 26%|██▌ | 9/35 [00:01<00:05, 5.03it/s]\n 29%|██▊ | 10/35 [00:02<00:04, 5.03it/s]\n 31%|███▏ | 11/35 [00:02<00:04, 5.02it/s]\n 34%|███▍ | 12/35 [00:02<00:04, 5.03it/s]\n 37%|███▋ | 13/35 [00:02<00:04, 5.05it/s]\n 40%|████ | 14/35 [00:02<00:04, 5.05it/s]\n 43%|████▎ | 15/35 [00:03<00:03, 5.07it/s]\n 46%|████▌ | 16/35 [00:03<00:03, 5.05it/s]\n 49%|████▊ | 17/35 [00:03<00:03, 5.03it/s]\n 51%|█████▏ | 18/35 [00:03<00:03, 5.03it/s]\n 54%|█████▍ | 19/35 [00:03<00:03, 5.04it/s]\n 57%|█████▋ | 20/35 [00:04<00:02, 5.05it/s]\n 60%|██████ | 21/35 [00:04<00:02, 5.04it/s]\n 63%|██████▎ | 22/35 [00:04<00:02, 5.03it/s]\n 66%|██████▌ | 23/35 [00:04<00:02, 5.03it/s]\n 69%|██████▊ | 24/35 [00:04<00:02, 5.03it/s]\n 71%|███████▏ | 25/35 [00:05<00:01, 5.04it/s]\n 74%|███████▍ | 26/35 [00:05<00:01, 5.04it/s]\n 77%|███████▋ | 27/35 [00:05<00:01, 5.02it/s]\n 80%|████████ | 28/35 [00:05<00:01, 5.02it/s]\n 83%|████████▎ | 29/35 [00:05<00:01, 5.03it/s]\n 86%|████████▌ | 30/35 [00:05<00:00, 5.05it/s]\n 89%|████████▊ | 31/35 [00:06<00:00, 5.05it/s]\n 91%|█████████▏| 32/35 [00:06<00:00, 5.04it/s]\n 94%|█████████▍| 33/35 [00:06<00:00, 5.03it/s]\n 97%|█████████▋| 34/35 [00:06<00:00, 5.02it/s]\n100%|██████████| 35/35 [00:06<00:00, 5.04it/s]\n100%|██████████| 35/35 [00:06<00:00, 5.00it/s]",
"output": [
"https://replicate.delivery/pbxt/lBxnbTYCLYY9BJcIWnGoFmaHZIeiUm8tYRmew8E8As6ZEycQA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-02-09T22:09:21.901795Z",
"started_at": "2023-02-09T22:09:21.967826Z",
"completed_at": "2023-02-09T22:09:30.079551Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/getff7cfwzek5ma5wzi22wrdji/cancel",
"get": "https://api.replicate.com/v1/predictions/getff7cfwzek5ma5wzi22wrdji"
},
"metrics": {
"predict_time": 8.111725,
"total_time": 8.177756
}
}