typetext
{
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 3,
"output_format": "jpg",
"output_quality": 90,
"prompt": "The scene captures UZR, a fit young man with short brown hair, standing on the deck of a sleek, modern yacht, cruising in a warm, serene coastal location. UZR has a well-defined, athletic build, and he exudes confidence and sophistication. His facial features are sharp, and his expression is calm, with a relaxed smile that hints at both approachability and self-assurance. UZR's posture is naturally confident as he leans casually against the yacht railing with one arm, looking out towards the water with a thoughtful yet friendly gaze.\n\nHe is wearing a light blue, button-up shirt, which is loosely open at the top, revealing a bit of his chest, and has the sleeves rolled up for a laid-back, stylish appearance. The shirt is tucked neatly into a pair of cream-colored drawstring trousers, contributing to a clean yet relaxed look. The outfit suggests a refined sense of style while maintaining an effortless and casual vibe suitable for a leisurely day on a yacht. UZR also sports a minimalist wristwatch on his left wrist, adding a touch of elegance and subtle detail to his ensemble.\n\nThe lighting in the scene is bright and natural, indicating broad daylight with clear skies. The sun casts a warm glow on UZR’s face, highlighting his features and giving a slight tan to his skin. Soft shadows fall naturally, enhancing the contours of his physique without obscuring any details, providing a polished yet natural look. The light reflects gently off the water and the sleek surface of the yacht, adding a dynamic yet serene atmosphere to the image.\n\nThe yacht itself is spacious, with a polished wooden deck and sleek, modern lines that complement UZR's look. A large, reflective glass panel runs along the side of the yacht, mirroring the vibrant blue of the sky and sea, creating an upscale and relaxed environment. UZR is positioned near a cushioned seating area, which adds to the yacht's luxurious feel. The background includes the sparkling turquoise water and a distant shoreline with greenery and small structures, contributing to the overall mood of a coastal escape.\n\nKey elements to focus on for model training:\n\nUZR’s Look: A young man with short brown hair, athletic build, and sharp features.\nLighting: Bright, natural lighting that highlights UZR’s face, physique, and clothing.\nClothing: Light blue, button-up shirt with sleeves rolled up, cream-colored drawstring trousers, and a minimalist wristwatch.\nExpression: Calm and confident, with a slight, friendly smile while looking towards the distance.\nSetting: Modern yacht with a polished wooden deck, minimalist decor, reflective glass panel, and an expansive view of turquoise waters and a coastal background.\nPosture: Casual, confident stance, leaning against the railing with one arm, projecting an effortless yet refined vibe.",
"prompt_strength": 0.8
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_20N**********************************
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 swaylou/user_example_1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"swaylou/user_example_1:ce2f67595b145c11be5139a82e8abf8d220c5885ce7ffc71d201986967e505e9",
{
input: {
aspect_ratio: "1:1",
extra_lora_scale: 1,
guidance_scale: 3.5,
lora_scale: 1,
model: "dev",
num_inference_steps: 28,
num_outputs: 3,
output_format: "jpg",
output_quality: 90,
prompt: "The scene captures UZR, a fit young man with short brown hair, standing on the deck of a sleek, modern yacht, cruising in a warm, serene coastal location. UZR has a well-defined, athletic build, and he exudes confidence and sophistication. His facial features are sharp, and his expression is calm, with a relaxed smile that hints at both approachability and self-assurance. UZR's posture is naturally confident as he leans casually against the yacht railing with one arm, looking out towards the water with a thoughtful yet friendly gaze.\n\nHe is wearing a light blue, button-up shirt, which is loosely open at the top, revealing a bit of his chest, and has the sleeves rolled up for a laid-back, stylish appearance. The shirt is tucked neatly into a pair of cream-colored drawstring trousers, contributing to a clean yet relaxed look. The outfit suggests a refined sense of style while maintaining an effortless and casual vibe suitable for a leisurely day on a yacht. UZR also sports a minimalist wristwatch on his left wrist, adding a touch of elegance and subtle detail to his ensemble.\n\nThe lighting in the scene is bright and natural, indicating broad daylight with clear skies. The sun casts a warm glow on UZR’s face, highlighting his features and giving a slight tan to his skin. Soft shadows fall naturally, enhancing the contours of his physique without obscuring any details, providing a polished yet natural look. The light reflects gently off the water and the sleek surface of the yacht, adding a dynamic yet serene atmosphere to the image.\n\nThe yacht itself is spacious, with a polished wooden deck and sleek, modern lines that complement UZR's look. A large, reflective glass panel runs along the side of the yacht, mirroring the vibrant blue of the sky and sea, creating an upscale and relaxed environment. UZR is positioned near a cushioned seating area, which adds to the yacht's luxurious feel. The background includes the sparkling turquoise water and a distant shoreline with greenery and small structures, contributing to the overall mood of a coastal escape.\n\nKey elements to focus on for model training:\n\nUZR’s Look: A young man with short brown hair, athletic build, and sharp features.\nLighting: Bright, natural lighting that highlights UZR’s face, physique, and clothing.\nClothing: Light blue, button-up shirt with sleeves rolled up, cream-colored drawstring trousers, and a minimalist wristwatch.\nExpression: Calm and confident, with a slight, friendly smile while looking towards the distance.\nSetting: Modern yacht with a polished wooden deck, minimalist decor, reflective glass panel, and an expansive view of turquoise waters and a coastal background.\nPosture: Casual, confident stance, leaning against the railing with one arm, projecting an effortless yet refined vibe.",
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_20N**********************************
This is your API token. Keep it to yourself.
import replicate
Run swaylou/user_example_1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"swaylou/user_example_1:ce2f67595b145c11be5139a82e8abf8d220c5885ce7ffc71d201986967e505e9",
input={
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 3,
"output_format": "jpg",
"output_quality": 90,
"prompt": "The scene captures UZR, a fit young man with short brown hair, standing on the deck of a sleek, modern yacht, cruising in a warm, serene coastal location. UZR has a well-defined, athletic build, and he exudes confidence and sophistication. His facial features are sharp, and his expression is calm, with a relaxed smile that hints at both approachability and self-assurance. UZR's posture is naturally confident as he leans casually against the yacht railing with one arm, looking out towards the water with a thoughtful yet friendly gaze.\n\nHe is wearing a light blue, button-up shirt, which is loosely open at the top, revealing a bit of his chest, and has the sleeves rolled up for a laid-back, stylish appearance. The shirt is tucked neatly into a pair of cream-colored drawstring trousers, contributing to a clean yet relaxed look. The outfit suggests a refined sense of style while maintaining an effortless and casual vibe suitable for a leisurely day on a yacht. UZR also sports a minimalist wristwatch on his left wrist, adding a touch of elegance and subtle detail to his ensemble.\n\nThe lighting in the scene is bright and natural, indicating broad daylight with clear skies. The sun casts a warm glow on UZR’s face, highlighting his features and giving a slight tan to his skin. Soft shadows fall naturally, enhancing the contours of his physique without obscuring any details, providing a polished yet natural look. The light reflects gently off the water and the sleek surface of the yacht, adding a dynamic yet serene atmosphere to the image.\n\nThe yacht itself is spacious, with a polished wooden deck and sleek, modern lines that complement UZR's look. A large, reflective glass panel runs along the side of the yacht, mirroring the vibrant blue of the sky and sea, creating an upscale and relaxed environment. UZR is positioned near a cushioned seating area, which adds to the yacht's luxurious feel. The background includes the sparkling turquoise water and a distant shoreline with greenery and small structures, contributing to the overall mood of a coastal escape.\n\nKey elements to focus on for model training:\n\nUZR’s Look: A young man with short brown hair, athletic build, and sharp features.\nLighting: Bright, natural lighting that highlights UZR’s face, physique, and clothing.\nClothing: Light blue, button-up shirt with sleeves rolled up, cream-colored drawstring trousers, and a minimalist wristwatch.\nExpression: Calm and confident, with a slight, friendly smile while looking towards the distance.\nSetting: Modern yacht with a polished wooden deck, minimalist decor, reflective glass panel, and an expansive view of turquoise waters and a coastal background.\nPosture: Casual, confident stance, leaning against the railing with one arm, projecting an effortless yet refined vibe.",
"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_20N**********************************
This is your API token. Keep it to yourself.
Run swaylou/user_example_1 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": "swaylou/user_example_1:ce2f67595b145c11be5139a82e8abf8d220c5885ce7ffc71d201986967e505e9",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 3,
"output_format": "jpg",
"output_quality": 90,
"prompt": "The scene captures UZR, a fit young man with short brown hair, standing on the deck of a sleek, modern yacht, cruising in a warm, serene coastal location. UZR has a well-defined, athletic build, and he exudes confidence and sophistication. His facial features are sharp, and his expression is calm, with a relaxed smile that hints at both approachability and self-assurance. UZR\'s posture is naturally confident as he leans casually against the yacht railing with one arm, looking out towards the water with a thoughtful yet friendly gaze.\\n\\nHe is wearing a light blue, button-up shirt, which is loosely open at the top, revealing a bit of his chest, and has the sleeves rolled up for a laid-back, stylish appearance. The shirt is tucked neatly into a pair of cream-colored drawstring trousers, contributing to a clean yet relaxed look. The outfit suggests a refined sense of style while maintaining an effortless and casual vibe suitable for a leisurely day on a yacht. UZR also sports a minimalist wristwatch on his left wrist, adding a touch of elegance and subtle detail to his ensemble.\\n\\nThe lighting in the scene is bright and natural, indicating broad daylight with clear skies. The sun casts a warm glow on UZR’s face, highlighting his features and giving a slight tan to his skin. Soft shadows fall naturally, enhancing the contours of his physique without obscuring any details, providing a polished yet natural look. The light reflects gently off the water and the sleek surface of the yacht, adding a dynamic yet serene atmosphere to the image.\\n\\nThe yacht itself is spacious, with a polished wooden deck and sleek, modern lines that complement UZR\'s look. A large, reflective glass panel runs along the side of the yacht, mirroring the vibrant blue of the sky and sea, creating an upscale and relaxed environment. UZR is positioned near a cushioned seating area, which adds to the yacht\'s luxurious feel. The background includes the sparkling turquoise water and a distant shoreline with greenery and small structures, contributing to the overall mood of a coastal escape.\\n\\nKey elements to focus on for model training:\\n\\nUZR’s Look: A young man with short brown hair, athletic build, and sharp features.\\nLighting: Bright, natural lighting that highlights UZR’s face, physique, and clothing.\\nClothing: Light blue, button-up shirt with sleeves rolled up, cream-colored drawstring trousers, and a minimalist wristwatch.\\nExpression: Calm and confident, with a slight, friendly smile while looking towards the distance.\\nSetting: Modern yacht with a polished wooden deck, minimalist decor, reflective glass panel, and an expansive view of turquoise waters and a coastal background.\\nPosture: Casual, confident stance, leaning against the railing with one arm, projecting an effortless yet refined vibe.",
"prompt_strength": 0.8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "vn6npn4qp1rj00cj77zadfz02w",
"model": "swaylou/user_example_1",
"version": "ce2f67595b145c11be5139a82e8abf8d220c5885ce7ffc71d201986967e505e9",
"input": {
"aspect_ratio": "1:1",
"extra_lora_scale": 1,
"guidance_scale": 3.5,
"lora_scale": 1,
"model": "dev",
"num_inference_steps": 28,
"num_outputs": 3,
"output_format": "jpg",
"output_quality": 90,
"prompt": "The scene captures UZR, a fit young man with short brown hair, standing on the deck of a sleek, modern yacht, cruising in a warm, serene coastal location. UZR has a well-defined, athletic build, and he exudes confidence and sophistication. His facial features are sharp, and his expression is calm, with a relaxed smile that hints at both approachability and self-assurance. UZR's posture is naturally confident as he leans casually against the yacht railing with one arm, looking out towards the water with a thoughtful yet friendly gaze.\n\nHe is wearing a light blue, button-up shirt, which is loosely open at the top, revealing a bit of his chest, and has the sleeves rolled up for a laid-back, stylish appearance. The shirt is tucked neatly into a pair of cream-colored drawstring trousers, contributing to a clean yet relaxed look. The outfit suggests a refined sense of style while maintaining an effortless and casual vibe suitable for a leisurely day on a yacht. UZR also sports a minimalist wristwatch on his left wrist, adding a touch of elegance and subtle detail to his ensemble.\n\nThe lighting in the scene is bright and natural, indicating broad daylight with clear skies. The sun casts a warm glow on UZR’s face, highlighting his features and giving a slight tan to his skin. Soft shadows fall naturally, enhancing the contours of his physique without obscuring any details, providing a polished yet natural look. The light reflects gently off the water and the sleek surface of the yacht, adding a dynamic yet serene atmosphere to the image.\n\nThe yacht itself is spacious, with a polished wooden deck and sleek, modern lines that complement UZR's look. A large, reflective glass panel runs along the side of the yacht, mirroring the vibrant blue of the sky and sea, creating an upscale and relaxed environment. UZR is positioned near a cushioned seating area, which adds to the yacht's luxurious feel. The background includes the sparkling turquoise water and a distant shoreline with greenery and small structures, contributing to the overall mood of a coastal escape.\n\nKey elements to focus on for model training:\n\nUZR’s Look: A young man with short brown hair, athletic build, and sharp features.\nLighting: Bright, natural lighting that highlights UZR’s face, physique, and clothing.\nClothing: Light blue, button-up shirt with sleeves rolled up, cream-colored drawstring trousers, and a minimalist wristwatch.\nExpression: Calm and confident, with a slight, friendly smile while looking towards the distance.\nSetting: Modern yacht with a polished wooden deck, minimalist decor, reflective glass panel, and an expansive view of turquoise waters and a coastal background.\nPosture: Casual, confident stance, leaning against the railing with one arm, projecting an effortless yet refined vibe.",
"prompt_strength": 0.8
},
"logs": "Using seed: 57160\nPrompt: The scene captures UZR, a fit young man with short brown hair, standing on the deck of a sleek, modern yacht, cruising in a warm, serene coastal location. UZR has a well-defined, athletic build, and he exudes confidence and sophistication. His facial features are sharp, and his expression is calm, with a relaxed smile that hints at both approachability and self-assurance. UZR's posture is naturally confident as he leans casually against the yacht railing with one arm, looking out towards the water with a thoughtful yet friendly gaze.\nHe is wearing a light blue, button-up shirt, which is loosely open at the top, revealing a bit of his chest, and has the sleeves rolled up for a laid-back, stylish appearance. The shirt is tucked neatly into a pair of cream-colored drawstring trousers, contributing to a clean yet relaxed look. The outfit suggests a refined sense of style while maintaining an effortless and casual vibe suitable for a leisurely day on a yacht. UZR also sports a minimalist wristwatch on his left wrist, adding a touch of elegance and subtle detail to his ensemble.\nThe lighting in the scene is bright and natural, indicating broad daylight with clear skies. The sun casts a warm glow on UZR’s face, highlighting his features and giving a slight tan to his skin. Soft shadows fall naturally, enhancing the contours of his physique without obscuring any details, providing a polished yet natural look. The light reflects gently off the water and the sleek surface of the yacht, adding a dynamic yet serene atmosphere to the image.\nThe yacht itself is spacious, with a polished wooden deck and sleek, modern lines that complement UZR's look. A large, reflective glass panel runs along the side of the yacht, mirroring the vibrant blue of the sky and sea, creating an upscale and relaxed environment. UZR is positioned near a cushioned seating area, which adds to the yacht's luxurious feel. The background includes the sparkling turquoise water and a distant shoreline with greenery and small structures, contributing to the overall mood of a coastal escape.\nKey elements to focus on for model training:\nUZR’s Look: A young man with short brown hair, athletic build, and sharp features.\nLighting: Bright, natural lighting that highlights UZR’s face, physique, and clothing.\nClothing: Light blue, button-up shirt with sleeves rolled up, cream-colored drawstring trousers, and a minimalist wristwatch.\nExpression: Calm and confident, with a slight, friendly smile while looking towards the distance.\nSetting: Modern yacht with a polished wooden deck, minimalist decor, reflective glass panel, and an expansive view of turquoise waters and a coastal background.\nPosture: Casual, confident stance, leaning against the railing with one arm, projecting an effortless yet refined vibe.\n[!] txt2img mode\nUsing dev model\nLoaded LoRAs in 0.85s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:01<00:51, 1.89s/it]\n 7%|▋ | 2/28 [00:03<00:43, 1.67s/it]\n 11%|█ | 3/28 [00:05<00:44, 1.77s/it]\n 14%|█▍ | 4/28 [00:07<00:43, 1.82s/it]\n 18%|█▊ | 5/28 [00:09<00:42, 1.85s/it]\n 21%|██▏ | 6/28 [00:10<00:41, 1.86s/it]\n 25%|██▌ | 7/28 [00:12<00:39, 1.87s/it]\n 29%|██▊ | 8/28 [00:14<00:37, 1.88s/it]\n 32%|███▏ | 9/28 [00:16<00:35, 1.89s/it]\n 36%|███▌ | 10/28 [00:18<00:34, 1.89s/it]\n 39%|███▉ | 11/28 [00:20<00:32, 1.89s/it]\n 43%|████▎ | 12/28 [00:22<00:30, 1.90s/it]\n 46%|████▋ | 13/28 [00:24<00:28, 1.90s/it]\n 50%|█████ | 14/28 [00:26<00:26, 1.90s/it]\n 54%|█████▎ | 15/28 [00:28<00:24, 1.90s/it]\n 57%|█████▋ | 16/28 [00:29<00:22, 1.90s/it]\n 61%|██████ | 17/28 [00:31<00:20, 1.90s/it]\n 64%|██████▍ | 18/28 [00:33<00:18, 1.90s/it]\n 68%|██████▊ | 19/28 [00:35<00:17, 1.90s/it]\n 71%|███████▏ | 20/28 [00:37<00:15, 1.90s/it]\n 75%|███████▌ | 21/28 [00:39<00:13, 1.90s/it]\n 79%|███████▊ | 22/28 [00:41<00:11, 1.90s/it]\n 82%|████████▏ | 23/28 [00:43<00:09, 1.90s/it]\n 86%|████████▌ | 24/28 [00:45<00:07, 1.90s/it]\n 89%|████████▉ | 25/28 [00:47<00:05, 1.90s/it]\n 93%|█████████▎| 26/28 [00:48<00:03, 1.90s/it]\n 96%|█████████▋| 27/28 [00:50<00:01, 1.90s/it]\n100%|██████████| 28/28 [00:52<00:00, 1.90s/it]\n100%|██████████| 28/28 [00:52<00:00, 1.89s/it]",
"output": [
"https://replicate.delivery/yhqm/ZYKrPwF56Xr1GlcAUDaoHtAWeAkYpp8lnK9IEDRLDZOtHwwJA/out-0.jpg",
"https://replicate.delivery/yhqm/2myqafy3EGSuRijN2tcNccqfCYhBvmITUYVRwIAX2QCaPghTA/out-1.jpg",
"https://replicate.delivery/yhqm/0avLy8kSAmpmJFj1O8gYwLPlyY7MS4cj0CIYpJmNeKYtHwwJA/out-2.jpg"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-09-28T18:57:19.28Z",
"started_at": "2024-09-28T18:57:39.356298Z",
"completed_at": "2024-09-28T18:58:34.7092Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/vn6npn4qp1rj00cj77zadfz02w/cancel",
"get": "https://api.replicate.com/v1/predictions/vn6npn4qp1rj00cj77zadfz02w",
"web": "https://replicate.com/p/vn6npn4qp1rj00cj77zadfz02w"
},
"metrics": {
"predict_time": 55.352902151,
"total_time": 75.4292
}
}

