defaultmj, ny, cinematic
typetext
{
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"num_inference_steps": 20,
"prompt": "mj, ny, cinematic",
"scheduler": "K_EULER_ANCESTRAL",
"strength": 1,
"use_karras_sigmas": false,
"width": 512
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_dzo**********************************
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 asiryan/deliberate-v3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"asiryan/deliberate-v3:b6739c3d471044fff87be8f0310b322c61833930ce720418d4bb26499b3a82ea",
{
input: {
guidance_scale: 7.5,
height: 728,
negative_prompt: "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
num_inference_steps: 20,
prompt: "mj, ny, cinematic",
scheduler: "K_EULER_ANCESTRAL",
strength: 1,
use_karras_sigmas: false,
width: 512
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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=r8_dzo**********************************
This is your API token. Keep it to yourself.
import replicate
Run asiryan/deliberate-v3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"asiryan/deliberate-v3:b6739c3d471044fff87be8f0310b322c61833930ce720418d4bb26499b3a82ea",
input={
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"num_inference_steps": 20,
"prompt": "mj, ny, cinematic",
"scheduler": "K_EULER_ANCESTRAL",
"strength": 1,
"use_karras_sigmas": False,
"width": 512
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.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_dzo**********************************
This is your API token. Keep it to yourself.
Run asiryan/deliberate-v3 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": "asiryan/deliberate-v3:b6739c3d471044fff87be8f0310b322c61833930ce720418d4bb26499b3a82ea",
"input": {
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"num_inference_steps": 20,
"prompt": "mj, ny, cinematic",
"scheduler": "K_EULER_ANCESTRAL",
"strength": 1,
"use_karras_sigmas": false,
"width": 512
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "zq2j7u3bgjozdmptzelav5tefq",
"model": "asiryan/deliberate-v3",
"version": "b6739c3d471044fff87be8f0310b322c61833930ce720418d4bb26499b3a82ea",
"input": {
"guidance_scale": 7.5,
"height": 728,
"negative_prompt": "[deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"num_inference_steps": 20,
"prompt": "mj, ny, cinematic",
"scheduler": "K_EULER_ANCESTRAL",
"strength": 1,
"use_karras_sigmas": false,
"width": 512
},
"logs": "Scheduler: K_EULER_ANCESTRAL\nUsing karras sigmas: False\nUsing seed: 20529\nMode: text2img\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:11, 1.71it/s]\n 10%|█ | 2/20 [00:00<00:05, 3.01it/s]\n 15%|█▌ | 3/20 [00:00<00:04, 3.97it/s]\n 20%|██ | 4/20 [00:01<00:03, 4.67it/s]\n 25%|██▌ | 5/20 [00:01<00:02, 5.18it/s]\n 30%|███ | 6/20 [00:01<00:02, 5.53it/s]\n 35%|███▌ | 7/20 [00:01<00:02, 5.78it/s]\n 40%|████ | 8/20 [00:01<00:02, 5.96it/s]\n 45%|████▌ | 9/20 [00:01<00:01, 6.08it/s]\n 50%|█████ | 10/20 [00:01<00:01, 6.17it/s]\n 55%|█████▌ | 11/20 [00:02<00:01, 6.23it/s]\n 60%|██████ | 12/20 [00:02<00:01, 6.27it/s]\n 65%|██████▌ | 13/20 [00:02<00:01, 6.30it/s]\n 70%|███████ | 14/20 [00:02<00:00, 6.32it/s]\n 75%|███████▌ | 15/20 [00:02<00:00, 6.33it/s]\n 80%|████████ | 16/20 [00:02<00:00, 6.35it/s]\n 85%|████████▌ | 17/20 [00:03<00:00, 6.36it/s]\n 90%|█████████ | 18/20 [00:03<00:00, 6.38it/s]\n 95%|█████████▌| 19/20 [00:03<00:00, 6.38it/s]\n100%|██████████| 20/20 [00:03<00:00, 6.39it/s]\n100%|██████████| 20/20 [00:03<00:00, 5.62it/s]",
"output": "https://replicate.delivery/pbxt/tQOUeppfKXjDtkSh3h2Y8EseCFUmv5mM77NS7GNKcgx1424jA/output.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-11-27T02:54:11.591889Z",
"started_at": "2023-11-27T02:55:18.17191Z",
"completed_at": "2023-11-27T02:55:23.573466Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/zq2j7u3bgjozdmptzelav5tefq/cancel",
"get": "https://api.replicate.com/v1/predictions/zq2j7u3bgjozdmptzelav5tefq"
},
"metrics": {
"predict_time": 5.401556,
"total_time": 71.981577
}
}