defaultAn astronaut riding a rainbow unicorn
typetext
{
"apply_watermark": true,
"guidance_scale": 7.5,
"height": 768,
"high_noise_frac": 0.8,
"lora_scale": 0.6,
"negative_prompt": "underexposed, weird face, clothes",
"num_inference_steps": 30,
"num_outputs": 2,
"prompt": "a photo of TOK, with weird white hair, piercings in the noise and blue eyes",
"prompt_strength": 0.8,
"refine": "no_refiner",
"scheduler": "K_EULER_ANCESTRAL",
"width": 768
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1c6**********************************
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 automioai/carlosescobar93 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"automioai/carlosescobar93:f2c780f8662dfb3cd679531ce00247e3cc3c5a37303e2a4aad443d2d1a429334",
{
input: {
apply_watermark: true,
guidance_scale: 7.5,
height: 768,
high_noise_frac: 0.8,
lora_scale: 0.6,
negative_prompt: "underexposed, weird face, clothes",
num_inference_steps: 30,
num_outputs: 2,
prompt: "a photo of TOK, with weird white hair, piercings in the noise and blue eyes",
prompt_strength: 0.8,
refine: "no_refiner",
scheduler: "K_EULER_ANCESTRAL",
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_1c6**********************************
This is your API token. Keep it to yourself.
import replicate
Run automioai/carlosescobar93 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"automioai/carlosescobar93:f2c780f8662dfb3cd679531ce00247e3cc3c5a37303e2a4aad443d2d1a429334",
input={
"apply_watermark": True,
"guidance_scale": 7.5,
"height": 768,
"high_noise_frac": 0.8,
"lora_scale": 0.6,
"negative_prompt": "underexposed, weird face, clothes",
"num_inference_steps": 30,
"num_outputs": 2,
"prompt": "a photo of TOK, with weird white hair, piercings in the noise and blue eyes",
"prompt_strength": 0.8,
"refine": "no_refiner",
"scheduler": "K_EULER_ANCESTRAL",
"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_1c6**********************************
This is your API token. Keep it to yourself.
Run automioai/carlosescobar93 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": "automioai/carlosescobar93:f2c780f8662dfb3cd679531ce00247e3cc3c5a37303e2a4aad443d2d1a429334",
"input": {
"apply_watermark": true,
"guidance_scale": 7.5,
"height": 768,
"high_noise_frac": 0.8,
"lora_scale": 0.6,
"negative_prompt": "underexposed, weird face, clothes",
"num_inference_steps": 30,
"num_outputs": 2,
"prompt": "a photo of TOK, with weird white hair, piercings in the noise and blue eyes",
"prompt_strength": 0.8,
"refine": "no_refiner",
"scheduler": "K_EULER_ANCESTRAL",
"width": 768
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "vafqhx3b3xabusg4s26rj6krei",
"model": "automioai/carlosescobar93",
"version": "f2c780f8662dfb3cd679531ce00247e3cc3c5a37303e2a4aad443d2d1a429334",
"input": {
"apply_watermark": true,
"guidance_scale": 7.5,
"height": 768,
"high_noise_frac": 0.8,
"lora_scale": 0.6,
"negative_prompt": "underexposed, weird face, clothes",
"num_inference_steps": 30,
"num_outputs": 2,
"prompt": "a photo of TOK, with weird white hair, piercings in the noise and blue eyes",
"prompt_strength": 0.8,
"refine": "no_refiner",
"scheduler": "K_EULER_ANCESTRAL",
"width": 768
},
"logs": "Using seed: 45699\nPrompt: a photo of <s0><s1>, with weird white hair, piercings in the noise and blue eyes\ntxt2img mode\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:08, 3.32it/s]\n 7%|▋ | 2/30 [00:00<00:08, 3.32it/s]\n 10%|█ | 3/30 [00:00<00:08, 3.31it/s]\n 13%|█▎ | 4/30 [00:01<00:07, 3.31it/s]\n 17%|█▋ | 5/30 [00:01<00:07, 3.30it/s]\n 20%|██ | 6/30 [00:01<00:07, 3.30it/s]\n 23%|██▎ | 7/30 [00:02<00:06, 3.30it/s]\n 27%|██▋ | 8/30 [00:02<00:06, 3.30it/s]\n 30%|███ | 9/30 [00:02<00:06, 3.30it/s]\n 33%|███▎ | 10/30 [00:03<00:06, 3.30it/s]\n 37%|███▋ | 11/30 [00:03<00:05, 3.30it/s]\n 40%|████ | 12/30 [00:03<00:05, 3.30it/s]\n 43%|████▎ | 13/30 [00:03<00:05, 3.30it/s]\n 47%|████▋ | 14/30 [00:04<00:04, 3.30it/s]\n 50%|█████ | 15/30 [00:04<00:04, 3.30it/s]\n 53%|█████▎ | 16/30 [00:04<00:04, 3.29it/s]\n 57%|█████▋ | 17/30 [00:05<00:03, 3.29it/s]\n 60%|██████ | 18/30 [00:05<00:03, 3.29it/s]\n 63%|██████▎ | 19/30 [00:05<00:03, 3.29it/s]\n 67%|██████▋ | 20/30 [00:06<00:03, 3.29it/s]\n 70%|███████ | 21/30 [00:06<00:02, 3.29it/s]\n 73%|███████▎ | 22/30 [00:06<00:02, 3.30it/s]\n 77%|███████▋ | 23/30 [00:06<00:02, 3.30it/s]\n 80%|████████ | 24/30 [00:07<00:01, 3.30it/s]\n 83%|████████▎ | 25/30 [00:07<00:01, 3.31it/s]\n 87%|████████▋ | 26/30 [00:07<00:01, 3.31it/s]\n 90%|█████████ | 27/30 [00:08<00:00, 3.31it/s]\n 93%|█████████▎| 28/30 [00:08<00:00, 3.31it/s]\n 97%|█████████▋| 29/30 [00:08<00:00, 3.31it/s]\n100%|██████████| 30/30 [00:09<00:00, 3.31it/s]\n100%|██████████| 30/30 [00:09<00:00, 3.30it/s]",
"output": [
"https://replicate.delivery/pbxt/0yOB36AJFY6ZJljWdGZpH631lLevzzpXgZMAAofrBdGPs7nRA/out-0.png",
"https://replicate.delivery/pbxt/wZfY6fmFlRotG0b8Se1BRu7Wm3hcgfuzRIf5gAMgNzODidfZE/out-1.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-09-25T22:26:12.935222Z",
"started_at": "2023-09-25T22:26:12.896767Z",
"completed_at": "2023-09-25T22:26:24.677041Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/vafqhx3b3xabusg4s26rj6krei/cancel",
"get": "https://api.replicate.com/v1/predictions/vafqhx3b3xabusg4s26rj6krei"
},
"metrics": {
"predict_time": 11.780274,
"total_time": 11.741819
}
}
