Readme
This model doesn't have a readme.
(Updated 3 weeks, 2 days ago)
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucy357/lk1522 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucy357/lk1522:566e1969603f8b923c1ee66961267ca24f692b3ae16604728fad9702996dd65d",
{
input: {
image: "https://replicate.delivery/pbxt/N3ItPeBmrcaD5GlPx3xrACWFvbdxPp1xdoFXXkdOxQ4gvkKR/image_2025-05-22_12-16-37.png",
model: "dev",
prompt: "lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field\n\n",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "9:16",
output_format: "jpg",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run lucy357/lk1522 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucy357/lk1522:566e1969603f8b923c1ee66961267ca24f692b3ae16604728fad9702996dd65d",
input={
"image": "https://replicate.delivery/pbxt/N3ItPeBmrcaD5GlPx3xrACWFvbdxPp1xdoFXXkdOxQ4gvkKR/image_2025-05-22_12-16-37.png",
"model": "dev",
"prompt": "lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field\n\n",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucy357/lk1522 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": "lucy357/lk1522:566e1969603f8b923c1ee66961267ca24f692b3ae16604728fad9702996dd65d",
"input": {
"image": "https://replicate.delivery/pbxt/N3ItPeBmrcaD5GlPx3xrACWFvbdxPp1xdoFXXkdOxQ4gvkKR/image_2025-05-22_12-16-37.png",
"model": "dev",
"prompt": "lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field\\n\\n",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
{
"completed_at": "2025-05-22T09:50:05.488773Z",
"created_at": "2025-05-22T09:49:57.393000Z",
"data_removed": false,
"error": null,
"id": "prc9rh2725rma0cpyxkazb37mg",
"input": {
"image": "https://replicate.delivery/pbxt/N3ItPeBmrcaD5GlPx3xrACWFvbdxPp1xdoFXXkdOxQ4gvkKR/image_2025-05-22_12-16-37.png",
"model": "dev",
"prompt": "lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field\n\n",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "free=27200619175936\nDownloading weights\n2025-05-22T09:49:57Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpu13ayf88/weights url=https://replicate.delivery/xezq/6eigjR4LnvShO6ecJZRo9uPp0DmgHOsg1g54BhNQZunZNKvUA/trained_model.tar\n2025-05-22T09:49:57Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local\n2025-05-22T09:49:59Z | INFO | [ Complete ] dest=/tmp/tmpu13ayf88/weights size=\"172 MB\" total_elapsed=1.810s url=https://replicate.delivery/xezq/6eigjR4LnvShO6ecJZRo9uPp0DmgHOsg1g54BhNQZunZNKvUA/trained_model.tar\nDownloaded weights in 1.83s\nLoaded LoRAs in 2.40s\nUsing seed: 15464\nPrompt: lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field\nInput image size: 808x933\n[!] Resizing input image from 808x933 to 816x944\n[!] img2img mode\n 0%| | 0/23 [00:00<?, ?it/s]\n 4%|▍ | 1/23 [00:00<00:03, 6.11it/s]\n 9%|▊ | 2/23 [00:00<00:03, 5.39it/s]\n 13%|█▎ | 3/23 [00:00<00:03, 5.20it/s]\n 17%|█▋ | 4/23 [00:00<00:03, 5.11it/s]\n 22%|██▏ | 5/23 [00:00<00:03, 5.06it/s]\n 26%|██▌ | 6/23 [00:01<00:03, 5.04it/s]\n 30%|███ | 7/23 [00:01<00:03, 5.02it/s]\n 35%|███▍ | 8/23 [00:01<00:02, 5.00it/s]\n 39%|███▉ | 9/23 [00:01<00:02, 4.99it/s]\n 43%|████▎ | 10/23 [00:01<00:02, 4.99it/s]\n 48%|████▊ | 11/23 [00:02<00:02, 4.99it/s]\n 52%|█████▏ | 12/23 [00:02<00:02, 4.98it/s]\n 57%|█████▋ | 13/23 [00:02<00:02, 4.98it/s]\n 61%|██████ | 14/23 [00:02<00:01, 4.98it/s]\n 65%|██████▌ | 15/23 [00:02<00:01, 4.98it/s]\n 70%|██████▉ | 16/23 [00:03<00:01, 4.97it/s]\n 74%|███████▍ | 17/23 [00:03<00:01, 4.98it/s]\n 78%|███████▊ | 18/23 [00:03<00:01, 4.97it/s]\n 83%|████████▎ | 19/23 [00:03<00:00, 4.98it/s]\n 87%|████████▋ | 20/23 [00:03<00:00, 4.98it/s]\n 91%|█████████▏| 21/23 [00:04<00:00, 4.98it/s]\n 96%|█████████▌| 22/23 [00:04<00:00, 4.98it/s]\n100%|██████████| 23/23 [00:04<00:00, 4.98it/s]\n100%|██████████| 23/23 [00:04<00:00, 5.02it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 7.981956229,
"total_time": 8.095773
},
"output": [
"https://replicate.delivery/xezq/N6J0w5HYAGbdKp9xVU3kI5fVHfrBee12yrIfahBENSVqpS5lC/out-0.jpg"
],
"started_at": "2025-05-22T09:49:57.506817Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-ckrvzkyntnrgtsojj4tknsvyovardhurcha3ne2aw2xmynsizh2a",
"get": "https://api.replicate.com/v1/predictions/prc9rh2725rma0cpyxkazb37mg",
"cancel": "https://api.replicate.com/v1/predictions/prc9rh2725rma0cpyxkazb37mg/cancel"
},
"version": "566e1969603f8b923c1ee66961267ca24f692b3ae16604728fad9702996dd65d"
}
free=27200619175936
Downloading weights
2025-05-22T09:49:57Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpu13ayf88/weights url=https://replicate.delivery/xezq/6eigjR4LnvShO6ecJZRo9uPp0DmgHOsg1g54BhNQZunZNKvUA/trained_model.tar
2025-05-22T09:49:57Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-05-22T09:49:59Z | INFO | [ Complete ] dest=/tmp/tmpu13ayf88/weights size="172 MB" total_elapsed=1.810s url=https://replicate.delivery/xezq/6eigjR4LnvShO6ecJZRo9uPp0DmgHOsg1g54BhNQZunZNKvUA/trained_model.tar
Downloaded weights in 1.83s
Loaded LoRAs in 2.40s
Using seed: 15464
Prompt: lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field
Input image size: 808x933
[!] Resizing input image from 808x933 to 816x944
[!] img2img mode
0%| | 0/23 [00:00<?, ?it/s]
4%|▍ | 1/23 [00:00<00:03, 6.11it/s]
9%|▊ | 2/23 [00:00<00:03, 5.39it/s]
13%|█▎ | 3/23 [00:00<00:03, 5.20it/s]
17%|█▋ | 4/23 [00:00<00:03, 5.11it/s]
22%|██▏ | 5/23 [00:00<00:03, 5.06it/s]
26%|██▌ | 6/23 [00:01<00:03, 5.04it/s]
30%|███ | 7/23 [00:01<00:03, 5.02it/s]
35%|███▍ | 8/23 [00:01<00:02, 5.00it/s]
39%|███▉ | 9/23 [00:01<00:02, 4.99it/s]
43%|████▎ | 10/23 [00:01<00:02, 4.99it/s]
48%|████▊ | 11/23 [00:02<00:02, 4.99it/s]
52%|█████▏ | 12/23 [00:02<00:02, 4.98it/s]
57%|█████▋ | 13/23 [00:02<00:02, 4.98it/s]
61%|██████ | 14/23 [00:02<00:01, 4.98it/s]
65%|██████▌ | 15/23 [00:02<00:01, 4.98it/s]
70%|██████▉ | 16/23 [00:03<00:01, 4.97it/s]
74%|███████▍ | 17/23 [00:03<00:01, 4.98it/s]
78%|███████▊ | 18/23 [00:03<00:01, 4.97it/s]
83%|████████▎ | 19/23 [00:03<00:00, 4.98it/s]
87%|████████▋ | 20/23 [00:03<00:00, 4.98it/s]
91%|█████████▏| 21/23 [00:04<00:00, 4.98it/s]
96%|█████████▌| 22/23 [00:04<00:00, 4.98it/s]
100%|██████████| 23/23 [00:04<00:00, 4.98it/s]
100%|██████████| 23/23 [00:04<00:00, 5.02it/s]
Total safe images: 1 out of 1
This model runs on Nvidia H100 GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is warm. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
Choose a file from your machine
Hint: you can also drag files onto the input
Choose a file from your machine
Hint: you can also drag files onto the input
free=27200619175936
Downloading weights
2025-05-22T09:49:57Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpu13ayf88/weights url=https://replicate.delivery/xezq/6eigjR4LnvShO6ecJZRo9uPp0DmgHOsg1g54BhNQZunZNKvUA/trained_model.tar
2025-05-22T09:49:57Z | INFO | [ Cache Service ] enabled=true scheme=http target=hermes.services.svc.cluster.local
2025-05-22T09:49:59Z | INFO | [ Complete ] dest=/tmp/tmpu13ayf88/weights size="172 MB" total_elapsed=1.810s url=https://replicate.delivery/xezq/6eigjR4LnvShO6ecJZRo9uPp0DmgHOsg1g54BhNQZunZNKvUA/trained_model.tar
Downloaded weights in 1.83s
Loaded LoRAs in 2.40s
Using seed: 15464
Prompt: lk1522 a realistic portrait of a young woman with vibrant blue bob hair, sitting on a beige couch against a plain light wall, wearing a tight ribbed light blue sleeveless crop top, natural makeup with bold eyeliner, looking directly at the camera with a soft confident expression, one arm resting behind her, front-facing pose, soft even studio lighting, high-resolution realistic skin texture, minimalistic neutral background, fashion photography, shot on an 85mm lens, shallow depth of field
Input image size: 808x933
[!] Resizing input image from 808x933 to 816x944
[!] img2img mode
0%| | 0/23 [00:00<?, ?it/s]
4%|▍ | 1/23 [00:00<00:03, 6.11it/s]
9%|▊ | 2/23 [00:00<00:03, 5.39it/s]
13%|█▎ | 3/23 [00:00<00:03, 5.20it/s]
17%|█▋ | 4/23 [00:00<00:03, 5.11it/s]
22%|██▏ | 5/23 [00:00<00:03, 5.06it/s]
26%|██▌ | 6/23 [00:01<00:03, 5.04it/s]
30%|███ | 7/23 [00:01<00:03, 5.02it/s]
35%|███▍ | 8/23 [00:01<00:02, 5.00it/s]
39%|███▉ | 9/23 [00:01<00:02, 4.99it/s]
43%|████▎ | 10/23 [00:01<00:02, 4.99it/s]
48%|████▊ | 11/23 [00:02<00:02, 4.99it/s]
52%|█████▏ | 12/23 [00:02<00:02, 4.98it/s]
57%|█████▋ | 13/23 [00:02<00:02, 4.98it/s]
61%|██████ | 14/23 [00:02<00:01, 4.98it/s]
65%|██████▌ | 15/23 [00:02<00:01, 4.98it/s]
70%|██████▉ | 16/23 [00:03<00:01, 4.97it/s]
74%|███████▍ | 17/23 [00:03<00:01, 4.98it/s]
78%|███████▊ | 18/23 [00:03<00:01, 4.97it/s]
83%|████████▎ | 19/23 [00:03<00:00, 4.98it/s]
87%|████████▋ | 20/23 [00:03<00:00, 4.98it/s]
91%|█████████▏| 21/23 [00:04<00:00, 4.98it/s]
96%|█████████▌| 22/23 [00:04<00:00, 4.98it/s]
100%|██████████| 23/23 [00:04<00:00, 4.98it/s]
100%|██████████| 23/23 [00:04<00:00, 5.02it/s]
Total safe images: 1 out of 1