defaultAn astronaut riding a rainbow unicorn
typetext
{
"apply_brand_bg": true,
"apply_watermark": false,
"guidance_scale": 7.5,
"height": 1280,
"image": "https://replicate.delivery/pbxt/KtyErKSr4GYg3VUiPO3cEgsjJLxDUIsPORgit8VA2XJMmomV/Image%20%2810%29.jpeg",
"negative_prompt": "low quality, jpeg artifacts, blurry ,poorly drawn, ugly, worst quality, face asymmetry, eyes asymmetry, deformed eyes, open mouth, octane render, render, drawing, anime, bad photo, bad photography, worst quality, low quality, blurry, bad teeth, deformed teeth, deformed lips, bad anatomy, bad proportions, deformed iris, deformed pupils, deformed eyes, bad eyes, deformed face, ugly face, bad face, deformed hands, bad hands, fused fingers, morbid, mutilated, mutation, disfigured",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "30 year old woman, tousled pixie cut with long side fringe, silver-grey hair, blue-green eyes, delicate features, fair skin with freckles, warm smile, fuzzy light pink sweater, blurred pastel background, natural window lighting, ultra hd portrait photo, carefree feminine style",
"refine": "base_image_refiner",
"refine_steps": 10,
"scheduler": "K_EULER",
"width": 1080
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_b5m**********************************
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 expa-ai/cloudflare-hack using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"expa-ai/cloudflare-hack:267b672993a9e5b58802f20172ee77fb309cd539425c7ff1b6a2378e60ebe626",
{
input: {
apply_brand_bg: true,
apply_watermark: false,
guidance_scale: 7.5,
height: 1280,
image: "https://replicate.delivery/pbxt/KtyErKSr4GYg3VUiPO3cEgsjJLxDUIsPORgit8VA2XJMmomV/Image%20%2810%29.jpeg",
negative_prompt: "low quality, jpeg artifacts, blurry ,poorly drawn, ugly, worst quality, face asymmetry, eyes asymmetry, deformed eyes, open mouth, octane render, render, drawing, anime, bad photo, bad photography, worst quality, low quality, blurry, bad teeth, deformed teeth, deformed lips, bad anatomy, bad proportions, deformed iris, deformed pupils, deformed eyes, bad eyes, deformed face, ugly face, bad face, deformed hands, bad hands, fused fingers, morbid, mutilated, mutation, disfigured",
num_inference_steps: 30,
num_outputs: 1,
prompt: "30 year old woman, tousled pixie cut with long side fringe, silver-grey hair, blue-green eyes, delicate features, fair skin with freckles, warm smile, fuzzy light pink sweater, blurred pastel background, natural window lighting, ultra hd portrait photo, carefree feminine style",
refine: "base_image_refiner",
refine_steps: 10,
scheduler: "K_EULER",
width: 1080
}
}
);
// 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_b5m**********************************
This is your API token. Keep it to yourself.
import replicate
Run expa-ai/cloudflare-hack using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"expa-ai/cloudflare-hack:267b672993a9e5b58802f20172ee77fb309cd539425c7ff1b6a2378e60ebe626",
input={
"apply_brand_bg": True,
"apply_watermark": False,
"guidance_scale": 7.5,
"height": 1280,
"image": "https://replicate.delivery/pbxt/KtyErKSr4GYg3VUiPO3cEgsjJLxDUIsPORgit8VA2XJMmomV/Image%20%2810%29.jpeg",
"negative_prompt": "low quality, jpeg artifacts, blurry ,poorly drawn, ugly, worst quality, face asymmetry, eyes asymmetry, deformed eyes, open mouth, octane render, render, drawing, anime, bad photo, bad photography, worst quality, low quality, blurry, bad teeth, deformed teeth, deformed lips, bad anatomy, bad proportions, deformed iris, deformed pupils, deformed eyes, bad eyes, deformed face, ugly face, bad face, deformed hands, bad hands, fused fingers, morbid, mutilated, mutation, disfigured",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "30 year old woman, tousled pixie cut with long side fringe, silver-grey hair, blue-green eyes, delicate features, fair skin with freckles, warm smile, fuzzy light pink sweater, blurred pastel background, natural window lighting, ultra hd portrait photo, carefree feminine style",
"refine": "base_image_refiner",
"refine_steps": 10,
"scheduler": "K_EULER",
"width": 1080
}
)
# 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_b5m**********************************
This is your API token. Keep it to yourself.
Run expa-ai/cloudflare-hack 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": "expa-ai/cloudflare-hack:267b672993a9e5b58802f20172ee77fb309cd539425c7ff1b6a2378e60ebe626",
"input": {
"apply_brand_bg": true,
"apply_watermark": false,
"guidance_scale": 7.5,
"height": 1280,
"image": "https://replicate.delivery/pbxt/KtyErKSr4GYg3VUiPO3cEgsjJLxDUIsPORgit8VA2XJMmomV/Image%20%2810%29.jpeg",
"negative_prompt": "low quality, jpeg artifacts, blurry ,poorly drawn, ugly, worst quality, face asymmetry, eyes asymmetry, deformed eyes, open mouth, octane render, render, drawing, anime, bad photo, bad photography, worst quality, low quality, blurry, bad teeth, deformed teeth, deformed lips, bad anatomy, bad proportions, deformed iris, deformed pupils, deformed eyes, bad eyes, deformed face, ugly face, bad face, deformed hands, bad hands, fused fingers, morbid, mutilated, mutation, disfigured",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "30 year old woman, tousled pixie cut with long side fringe, silver-grey hair, blue-green eyes, delicate features, fair skin with freckles, warm smile, fuzzy light pink sweater, blurred pastel background, natural window lighting, ultra hd portrait photo, carefree feminine style",
"refine": "base_image_refiner",
"refine_steps": 10,
"scheduler": "K_EULER",
"width": 1080
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
{
"id": "37tzv5n10srgg0cfd3st2hsqeg",
"model": "expa-ai/cloudflare-hack",
"version": "267b672993a9e5b58802f20172ee77fb309cd539425c7ff1b6a2378e60ebe626",
"input": {
"apply_brand_bg": true,
"apply_watermark": false,
"guidance_scale": 7.5,
"height": 1280,
"image": "https://replicate.delivery/pbxt/KtyErKSr4GYg3VUiPO3cEgsjJLxDUIsPORgit8VA2XJMmomV/Image%20%2810%29.jpeg",
"negative_prompt": "low quality, jpeg artifacts, blurry ,poorly drawn, ugly, worst quality, face asymmetry, eyes asymmetry, deformed eyes, open mouth, octane render, render, drawing, anime, bad photo, bad photography, worst quality, low quality, blurry, bad teeth, deformed teeth, deformed lips, bad anatomy, bad proportions, deformed iris, deformed pupils, deformed eyes, bad eyes, deformed face, ugly face, bad face, deformed hands, bad hands, fused fingers, morbid, mutilated, mutation, disfigured",
"num_inference_steps": 30,
"num_outputs": 1,
"prompt": "30 year old woman, tousled pixie cut with long side fringe, silver-grey hair, blue-green eyes, delicate features, fair skin with freckles, warm smile, fuzzy light pink sweater, blurred pastel background, natural window lighting, ultra hd portrait photo, carefree feminine style",
"refine": "base_image_refiner",
"refine_steps": 10,
"scheduler": "K_EULER",
"width": 1080
},
"logs": "Starting Face Analysis\nFace analysis done in: 0.02s\nFace Found\nUsing seed: 2294554089\nPrompt: 30 year old woman, tousled pixie cut with long side fringe, silver-grey hair, blue-green eyes, delicate features, fair skin with freckles, warm smile, fuzzy light pink sweater, blurred pastel background, natural window lighting, ultra hd portrait photo, carefree feminine style\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|β | 1/30 [00:00<00:09, 3.01it/s]\n 7%|β | 2/30 [00:00<00:09, 3.01it/s]\n 10%|β | 3/30 [00:00<00:08, 3.00it/s]\n 13%|ββ | 4/30 [00:01<00:08, 3.00it/s]\n 17%|ββ | 5/30 [00:01<00:08, 3.00it/s]\n 20%|ββ | 6/30 [00:02<00:08, 3.00it/s]\n 23%|βββ | 7/30 [00:02<00:07, 2.99it/s]\n 27%|βββ | 8/30 [00:02<00:07, 2.99it/s]\n 30%|βββ | 9/30 [00:03<00:07, 2.99it/s]\n 33%|ββββ | 10/30 [00:03<00:06, 2.99it/s]\n 37%|ββββ | 11/30 [00:03<00:06, 2.99it/s]\n 40%|ββββ | 12/30 [00:04<00:06, 2.98it/s]\n 43%|βββββ | 13/30 [00:04<00:05, 2.98it/s]\n 47%|βββββ | 14/30 [00:04<00:05, 2.98it/s]\n 50%|βββββ | 15/30 [00:05<00:05, 2.98it/s]\n 53%|ββββββ | 16/30 [00:05<00:04, 2.98it/s]\n 57%|ββββββ | 17/30 [00:05<00:04, 2.98it/s]\n 60%|ββββββ | 18/30 [00:06<00:04, 2.98it/s]\n 63%|βββββββ | 19/30 [00:06<00:03, 2.98it/s]\n 67%|βββββββ | 20/30 [00:06<00:03, 2.98it/s]\n 70%|βββββββ | 21/30 [00:07<00:03, 2.98it/s]\n 73%|ββββββββ | 22/30 [00:07<00:02, 2.98it/s]\n 77%|ββββββββ | 23/30 [00:07<00:02, 2.98it/s]\n 80%|ββββββββ | 24/30 [00:08<00:02, 2.98it/s]\n 83%|βββββββββ | 25/30 [00:08<00:01, 2.98it/s]\n 87%|βββββββββ | 26/30 [00:08<00:01, 2.97it/s]\n 90%|βββββββββ | 27/30 [00:09<00:01, 2.97it/s]\n 93%|ββββββββββ| 28/30 [00:09<00:00, 2.98it/s]\n 97%|ββββββββββ| 29/30 [00:09<00:00, 2.98it/s]\n100%|ββββββββββ| 30/30 [00:10<00:00, 2.98it/s]\n100%|ββββββββββ| 30/30 [00:10<00:00, 2.98it/s]\nInference took: 10.12s\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|ββββ | 1/3 [00:00<00:00, 2.83it/s]\n 67%|βββββββ | 2/3 [00:00<00:00, 2.82it/s]\n100%|ββββββββββ| 3/3 [00:01<00:00, 2.81it/s]\n100%|ββββββββββ| 3/3 [00:01<00:00, 2.82it/s]\nFaceswap process Start\nSwapped faces in: 0.15s\nRestored faces in: 3.47s\nBrand background process Start\nImage composition took: 0.06s\nBrand background process took total: 4.94s\nPrediction took: 20.25s",
"output": [
"https://replicate.delivery/pbxt/TPAqXf69cayEekdR95oiLUKBGPaE8nmvj4Fmv0Nn8VUh1WzSA/out-0.jpeg"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-05-11T18:39:08.038Z",
"started_at": "2024-05-11T18:39:08.084072Z",
"completed_at": "2024-05-11T18:39:30.262385Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/37tzv5n10srgg0cfd3st2hsqeg/cancel",
"get": "https://api.replicate.com/v1/predictions/37tzv5n10srgg0cfd3st2hsqeg",
"web": "https://replicate.com/p/37tzv5n10srgg0cfd3st2hsqeg"
},
"metrics": {
"predict_time": 22.178313,
"total_time": 22.224385
}
}
