defaultAn astronaut riding a rainbow unicorn
typetext
{
"apply_watermark": true,
"guidance_scale": 7.5,
"height": 1024,
"high_noise_frac": 0.77,
"lora_scale": 0.81,
"negative_prompt": "text, heading",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "RPS poster illustration of a skull, limited edition print",
"prompt_strength": 0.62,
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"seed": null,
"width": 768
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_coR**********************************
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 organisciak/rad-posters using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"organisciak/rad-posters:c765170f1a906ca7ccd849dcd8c477ea54f72540d37d1f2b109f3dc64132fbb5",
{
input: {
apply_watermark: true,
guidance_scale: 7.5,
height: 1024,
high_noise_frac: 0.77,
lora_scale: 0.81,
negative_prompt: "text, heading",
num_inference_steps: 50,
num_outputs: 1,
prompt: "RPS poster illustration of a skull, limited edition print",
prompt_strength: 0.62,
refine: "expert_ensemble_refiner",
scheduler: "K_EULER",
width: 768
}
}
);
// 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_coR**********************************
This is your API token. Keep it to yourself.
import replicate
Run organisciak/rad-posters using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"organisciak/rad-posters:c765170f1a906ca7ccd849dcd8c477ea54f72540d37d1f2b109f3dc64132fbb5",
input={
"apply_watermark": True,
"guidance_scale": 7.5,
"height": 1024,
"high_noise_frac": 0.77,
"lora_scale": 0.81,
"negative_prompt": "text, heading",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "RPS poster illustration of a skull, limited edition print",
"prompt_strength": 0.62,
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"width": 768
}
)
# 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_coR**********************************
This is your API token. Keep it to yourself.
Run organisciak/rad-posters 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": "organisciak/rad-posters:c765170f1a906ca7ccd849dcd8c477ea54f72540d37d1f2b109f3dc64132fbb5",
"input": {
"apply_watermark": true,
"guidance_scale": 7.5,
"height": 1024,
"high_noise_frac": 0.77,
"lora_scale": 0.81,
"negative_prompt": "text, heading",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "RPS poster illustration of a skull, limited edition print",
"prompt_strength": 0.62,
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"width": 768
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "mug3ej3bcazor2h3ocofyuihwy",
"model": "organisciak/rad-posters",
"version": "c765170f1a906ca7ccd849dcd8c477ea54f72540d37d1f2b109f3dc64132fbb5",
"input": {
"apply_watermark": true,
"guidance_scale": 7.5,
"height": 1024,
"high_noise_frac": 0.77,
"lora_scale": 0.81,
"negative_prompt": "text, heading",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "RPS poster illustration of a skull, limited edition print",
"prompt_strength": 0.62,
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"seed": null,
"width": 768
},
"logs": "Using seed: 23014\nPrompt: <s0><s1> poster illustration of a skull, limited edition print\ntxt2img mode\n 0%| | 0/38 [00:00<?, ?it/s]\n 3%|▎ | 1/38 [00:00<00:07, 4.98it/s]\n 5%|▌ | 2/38 [00:00<00:07, 4.96it/s]\n 8%|▊ | 3/38 [00:00<00:07, 4.95it/s]\n 11%|█ | 4/38 [00:00<00:06, 4.94it/s]\n 13%|█▎ | 5/38 [00:01<00:06, 4.94it/s]\n 16%|█▌ | 6/38 [00:01<00:06, 4.94it/s]\n 18%|█▊ | 7/38 [00:01<00:06, 4.93it/s]\n 21%|██ | 8/38 [00:01<00:06, 4.93it/s]\n 24%|██▎ | 9/38 [00:01<00:05, 4.93it/s]\n 26%|██▋ | 10/38 [00:02<00:05, 4.93it/s]\n 29%|██▉ | 11/38 [00:02<00:05, 4.93it/s]\n 32%|███▏ | 12/38 [00:02<00:05, 4.92it/s]\n 34%|███▍ | 13/38 [00:02<00:05, 4.92it/s]\n 37%|███▋ | 14/38 [00:02<00:04, 4.92it/s]\n 39%|███▉ | 15/38 [00:03<00:04, 4.92it/s]\n 42%|████▏ | 16/38 [00:03<00:04, 4.92it/s]\n 45%|████▍ | 17/38 [00:03<00:04, 4.92it/s]\n 47%|████▋ | 18/38 [00:03<00:04, 4.92it/s]\n 50%|█████ | 19/38 [00:03<00:03, 4.93it/s]\n 53%|█████▎ | 20/38 [00:04<00:03, 4.94it/s]\n 55%|█████▌ | 21/38 [00:04<00:03, 4.94it/s]\n 58%|█████▊ | 22/38 [00:04<00:03, 4.95it/s]\n 61%|██████ | 23/38 [00:04<00:03, 4.95it/s]\n 63%|██████▎ | 24/38 [00:04<00:02, 4.95it/s]\n 66%|██████▌ | 25/38 [00:05<00:02, 4.95it/s]\n 68%|██████▊ | 26/38 [00:05<00:02, 4.95it/s]\n 71%|███████ | 27/38 [00:05<00:02, 4.95it/s]\n 74%|███████▎ | 28/38 [00:05<00:02, 4.95it/s]\n 76%|███████▋ | 29/38 [00:05<00:01, 4.94it/s]\n 79%|███████▉ | 30/38 [00:06<00:01, 4.94it/s]\n 82%|████████▏ | 31/38 [00:06<00:01, 4.94it/s]\n 84%|████████▍ | 32/38 [00:06<00:01, 4.94it/s]\n 87%|████████▋ | 33/38 [00:06<00:01, 4.95it/s]\n 89%|████████▉ | 34/38 [00:06<00:00, 4.95it/s]\n 92%|█████████▏| 35/38 [00:07<00:00, 4.95it/s]\n 95%|█████████▍| 36/38 [00:07<00:00, 4.95it/s]\n 97%|█████████▋| 37/38 [00:07<00:00, 4.95it/s]\n100%|██████████| 38/38 [00:07<00:00, 4.95it/s]\n100%|██████████| 38/38 [00:07<00:00, 4.94it/s]\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:01, 6.21it/s]\n 17%|█▋ | 2/12 [00:00<00:01, 6.16it/s]\n 25%|██▌ | 3/12 [00:00<00:01, 6.15it/s]\n 33%|███▎ | 4/12 [00:00<00:01, 6.14it/s]\n 42%|████▏ | 5/12 [00:00<00:01, 6.14it/s]\n 50%|█████ | 6/12 [00:00<00:00, 6.15it/s]\n 58%|█████▊ | 7/12 [00:01<00:00, 6.15it/s]\n 67%|██████▋ | 8/12 [00:01<00:00, 6.14it/s]\n 75%|███████▌ | 9/12 [00:01<00:00, 6.14it/s]\n 83%|████████▎ | 10/12 [00:01<00:00, 6.14it/s]\n 92%|█████████▏| 11/12 [00:01<00:00, 6.14it/s]\n100%|██████████| 12/12 [00:01<00:00, 6.14it/s]\n100%|██████████| 12/12 [00:01<00:00, 6.14it/s]",
"output": [
"https://replicate.delivery/pbxt/juW5fKH7Vl03JSz9PIxNRxEU7r0iPIkS2ffUTaQQc9AWejSGB/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-09-15T22:42:09.472703Z",
"started_at": "2023-09-15T22:42:09.438274Z",
"completed_at": "2023-09-15T22:42:20.221487Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/mug3ej3bcazor2h3ocofyuihwy/cancel",
"get": "https://api.replicate.com/v1/predictions/mug3ej3bcazor2h3ocofyuihwy"
},
"metrics": {
"predict_time": 10.783213,
"total_time": 10.748784
}
}