typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 2.5,
"image": "https://replicate.delivery/pbxt/LfYvp9SGNVfcbNrXrv1aAH4G09j5cZgTnMvMXv9DTNL1UKFS/3f646442-8e3d-4db3-bcc4-a7d9461528da.png",
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 90,
"prompt": "Sophisticated portrait of kk, standing confidently in a sleek, modern indoor setting. He is dressed in a perfectly tailored, dark navy pinstripe suit, paired with a crisp white dress shirt and a subtly textured, light gray tie. His polished brown leather shoes complement the overall professional and refined look. His posture is relaxed but composed, with hands casually tucked into his pockets, projecting an air of quiet confidence and sophistication.\n\nHis hair is neatly styled, adding to his sharp, angular facial features, including a well-defined jawline and high cheekbones. His expression is calm and focused, exuding professionalism and authority.\n\nThe natural lighting floods in through the large windows, casting soft shadows and highlighting the clean lines of his suit. The modern architectural setting, with large windows revealing a scenic view of greenery and distant mountains, further enhances the sense of elegance and luxury. The neutral tones of the environment allow Julius to stand out, making him the clear focal point of the image. The contrast between the sleek indoor space and the natural background adds depth to the composition, balancing modern sophistication with a touch of nature.",
"prompt_strength": 0.8
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_4Hl**********************************
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 juliusk24/kk using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"juliusk24/kk:93e356d41f80a1733c3fc43a5019da114985b26eb12b4079547f33fa85b6ebd3",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
guidance_scale: 2.5,
image: "https://replicate.delivery/pbxt/LfYvp9SGNVfcbNrXrv1aAH4G09j5cZgTnMvMXv9DTNL1UKFS/3f646442-8e3d-4db3-bcc4-a7d9461528da.png",
lora_scale: 1,
model: "dev",
num_inference_steps: 28,
num_outputs: 1,
output_format: "png",
output_quality: 90,
prompt: "Sophisticated portrait of kk, standing confidently in a sleek, modern indoor setting. He is dressed in a perfectly tailored, dark navy pinstripe suit, paired with a crisp white dress shirt and a subtly textured, light gray tie. His polished brown leather shoes complement the overall professional and refined look. His posture is relaxed but composed, with hands casually tucked into his pockets, projecting an air of quiet confidence and sophistication.\n\nHis hair is neatly styled, adding to his sharp, angular facial features, including a well-defined jawline and high cheekbones. His expression is calm and focused, exuding professionalism and authority.\n\nThe natural lighting floods in through the large windows, casting soft shadows and highlighting the clean lines of his suit. The modern architectural setting, with large windows revealing a scenic view of greenery and distant mountains, further enhances the sense of elegance and luxury. The neutral tones of the environment allow Julius to stand out, making him the clear focal point of the image. The contrast between the sleek indoor space and the natural background adds depth to the composition, balancing modern sophistication with a touch of nature.",
prompt_strength: 0.8
}
}
);
// 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_4Hl**********************************
This is your API token. Keep it to yourself.
import replicate
Run juliusk24/kk using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"juliusk24/kk:93e356d41f80a1733c3fc43a5019da114985b26eb12b4079547f33fa85b6ebd3",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 2.5,
"image": "https://replicate.delivery/pbxt/LfYvp9SGNVfcbNrXrv1aAH4G09j5cZgTnMvMXv9DTNL1UKFS/3f646442-8e3d-4db3-bcc4-a7d9461528da.png",
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 90,
"prompt": "Sophisticated portrait of kk, standing confidently in a sleek, modern indoor setting. He is dressed in a perfectly tailored, dark navy pinstripe suit, paired with a crisp white dress shirt and a subtly textured, light gray tie. His polished brown leather shoes complement the overall professional and refined look. His posture is relaxed but composed, with hands casually tucked into his pockets, projecting an air of quiet confidence and sophistication.\n\nHis hair is neatly styled, adding to his sharp, angular facial features, including a well-defined jawline and high cheekbones. His expression is calm and focused, exuding professionalism and authority.\n\nThe natural lighting floods in through the large windows, casting soft shadows and highlighting the clean lines of his suit. The modern architectural setting, with large windows revealing a scenic view of greenery and distant mountains, further enhances the sense of elegance and luxury. The neutral tones of the environment allow Julius to stand out, making him the clear focal point of the image. The contrast between the sleek indoor space and the natural background adds depth to the composition, balancing modern sophistication with a touch of nature.",
"prompt_strength": 0.8
}
)
# 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_4Hl**********************************
This is your API token. Keep it to yourself.
Run juliusk24/kk 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": "juliusk24/kk:93e356d41f80a1733c3fc43a5019da114985b26eb12b4079547f33fa85b6ebd3",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 2.5,
"image": "https://replicate.delivery/pbxt/LfYvp9SGNVfcbNrXrv1aAH4G09j5cZgTnMvMXv9DTNL1UKFS/3f646442-8e3d-4db3-bcc4-a7d9461528da.png",
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 90,
"prompt": "Sophisticated portrait of kk, standing confidently in a sleek, modern indoor setting. He is dressed in a perfectly tailored, dark navy pinstripe suit, paired with a crisp white dress shirt and a subtly textured, light gray tie. His polished brown leather shoes complement the overall professional and refined look. His posture is relaxed but composed, with hands casually tucked into his pockets, projecting an air of quiet confidence and sophistication.\\n\\nHis hair is neatly styled, adding to his sharp, angular facial features, including a well-defined jawline and high cheekbones. His expression is calm and focused, exuding professionalism and authority.\\n\\nThe natural lighting floods in through the large windows, casting soft shadows and highlighting the clean lines of his suit. The modern architectural setting, with large windows revealing a scenic view of greenery and distant mountains, further enhances the sense of elegance and luxury. The neutral tones of the environment allow Julius to stand out, making him the clear focal point of the image. The contrast between the sleek indoor space and the natural background adds depth to the composition, balancing modern sophistication with a touch of nature.",
"prompt_strength": 0.8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "t169vt4sdxrm40cj3dq9w6t14g",
"model": "juliusk24/kk",
"version": "93e356d41f80a1733c3fc43a5019da114985b26eb12b4079547f33fa85b6ebd3",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 2.5,
"image": "https://replicate.delivery/pbxt/LfYvp9SGNVfcbNrXrv1aAH4G09j5cZgTnMvMXv9DTNL1UKFS/3f646442-8e3d-4db3-bcc4-a7d9461528da.png",
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 1,
"output_format": "png",
"output_quality": 90,
"prompt": "Sophisticated portrait of kk, standing confidently in a sleek, modern indoor setting. He is dressed in a perfectly tailored, dark navy pinstripe suit, paired with a crisp white dress shirt and a subtly textured, light gray tie. His polished brown leather shoes complement the overall professional and refined look. His posture is relaxed but composed, with hands casually tucked into his pockets, projecting an air of quiet confidence and sophistication.\n\nHis hair is neatly styled, adding to his sharp, angular facial features, including a well-defined jawline and high cheekbones. His expression is calm and focused, exuding professionalism and authority.\n\nThe natural lighting floods in through the large windows, casting soft shadows and highlighting the clean lines of his suit. The modern architectural setting, with large windows revealing a scenic view of greenery and distant mountains, further enhances the sense of elegance and luxury. The neutral tones of the environment allow Julius to stand out, making him the clear focal point of the image. The contrast between the sleek indoor space and the natural background adds depth to the composition, balancing modern sophistication with a touch of nature.",
"prompt_strength": 0.8
},
"logs": "Using seed: 41745\nPrompt: Sophisticated portrait of kk, standing confidently in a sleek, modern indoor setting. He is dressed in a perfectly tailored, dark navy pinstripe suit, paired with a crisp white dress shirt and a subtly textured, light gray tie. His polished brown leather shoes complement the overall professional and refined look. His posture is relaxed but composed, with hands casually tucked into his pockets, projecting an air of quiet confidence and sophistication.\nHis hair is neatly styled, adding to his sharp, angular facial features, including a well-defined jawline and high cheekbones. His expression is calm and focused, exuding professionalism and authority.\nThe natural lighting floods in through the large windows, casting soft shadows and highlighting the clean lines of his suit. The modern architectural setting, with large windows revealing a scenic view of greenery and distant mountains, further enhances the sense of elegance and luxury. The neutral tones of the environment allow Julius to stand out, making him the clear focal point of the image. The contrast between the sleek indoor space and the natural background adds depth to the composition, balancing modern sophistication with a touch of nature.\n[!] Resizing input image from 1534x2048 to 1536x2048\n[!] img2img mode\n[!] Using dev model for img2img\nUsing dev model\nLoaded LoRAs in 11.15s\n 0%| | 0/23 [00:00<?, ?it/s]\n 4%|▍ | 1/23 [00:00<00:16, 1.34it/s]\n 9%|▊ | 2/23 [00:01<00:18, 1.16it/s]\n 13%|█▎ | 3/23 [00:02<00:18, 1.11it/s]\n 17%|█▋ | 4/23 [00:03<00:17, 1.09it/s]\n 22%|██▏ | 5/23 [00:04<00:16, 1.08it/s]\n 26%|██▌ | 6/23 [00:05<00:15, 1.07it/s]\n 30%|███ | 7/23 [00:06<00:15, 1.07it/s]\n 35%|███▍ | 8/23 [00:07<00:14, 1.06it/s]\n 39%|███▉ | 9/23 [00:08<00:13, 1.06it/s]\n 43%|████▎ | 10/23 [00:09<00:12, 1.06it/s]\n 48%|████▊ | 11/23 [00:10<00:11, 1.06it/s]\n 52%|█████▏ | 12/23 [00:11<00:10, 1.06it/s]\n 57%|█████▋ | 13/23 [00:12<00:09, 1.06it/s]\n 61%|██████ | 14/23 [00:13<00:08, 1.06it/s]\n 65%|██████▌ | 15/23 [00:13<00:07, 1.06it/s]\n 70%|██████▉ | 16/23 [00:14<00:06, 1.06it/s]\n 74%|███████▍ | 17/23 [00:15<00:05, 1.06it/s]\n 78%|███████▊ | 18/23 [00:16<00:04, 1.06it/s]\n 83%|████████▎ | 19/23 [00:17<00:03, 1.06it/s]\n 87%|████████▋ | 20/23 [00:18<00:02, 1.06it/s]\n 91%|█████████▏| 21/23 [00:19<00:01, 1.06it/s]\n 96%|█████████▌| 22/23 [00:20<00:00, 1.06it/s]\n100%|██████████| 23/23 [00:21<00:00, 1.06it/s]\n100%|██████████| 23/23 [00:21<00:00, 1.07it/s]",
"output": [
"https://replicate.delivery/yhqm/prHQReG1Vx2TD66ZEOTfMF0fJ5fXodWMdLxhWMnKZULGMMebC/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-09-22T20:31:26.063Z",
"started_at": "2024-09-22T20:31:26.071874Z",
"completed_at": "2024-09-22T20:32:01.780001Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/t169vt4sdxrm40cj3dq9w6t14g/cancel",
"get": "https://api.replicate.com/v1/predictions/t169vt4sdxrm40cj3dq9w6t14g",
"web": "https://replicate.com/p/t169vt4sdxrm40cj3dq9w6t14g"
},
"metrics": {
"predict_time": 35.708126414,
"total_time": 35.717001
}
}
