Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
sylvesteraswin /sylvester-flux-selfie:866dec74
Input
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run sylvesteraswin/sylvester-flux-selfie using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"sylvesteraswin/sylvester-flux-selfie:866dec749879d1240d4bbef72b6efea5b968d845c7556bf7ba39a85dc010899c",
{
input: {
model: "dev",
prompt: "SYL_07_08, a 38-year-old Indian adult male with glasses and a man bun, standing confidently in an open, sunlit setting with tall palm trees in the background. He is dressed in a crisp, tailored ivory suit with a slightly unbuttoned white shirt underneath, exuding a sophisticated yet relaxed vibe. The sunlight casts soft shadows across his face, highlighting his distinct features and creating a polished, professional look. The natural backdrop, combined with the luxurious attire, conveys a sense of timeless elegance and effortless charm. Photorealistic, UHD –ar 9:16 –style raw –v 6.0 –stylize 500.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "9:16",
output_format: "jpg",
guidance_scale: 2.5,
output_quality: 100,
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 sylvesteraswin/sylvester-flux-selfie using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"sylvesteraswin/sylvester-flux-selfie:866dec749879d1240d4bbef72b6efea5b968d845c7556bf7ba39a85dc010899c",
input={
"model": "dev",
"prompt": "SYL_07_08, a 38-year-old Indian adult male with glasses and a man bun, standing confidently in an open, sunlit setting with tall palm trees in the background. He is dressed in a crisp, tailored ivory suit with a slightly unbuttoned white shirt underneath, exuding a sophisticated yet relaxed vibe. The sunlight casts soft shadows across his face, highlighting his distinct features and creating a polished, professional look. The natural backdrop, combined with the luxurious attire, conveys a sense of timeless elegance and effortless charm. Photorealistic, UHD –ar 9:16 –style raw –v 6.0 –stylize 500.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 2.5,
"output_quality": 100,
"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 sylvesteraswin/sylvester-flux-selfie 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": "sylvesteraswin/sylvester-flux-selfie:866dec749879d1240d4bbef72b6efea5b968d845c7556bf7ba39a85dc010899c",
"input": {
"model": "dev",
"prompt": "SYL_07_08, a 38-year-old Indian adult male with glasses and a man bun, standing confidently in an open, sunlit setting with tall palm trees in the background. He is dressed in a crisp, tailored ivory suit with a slightly unbuttoned white shirt underneath, exuding a sophisticated yet relaxed vibe. The sunlight casts soft shadows across his face, highlighting his distinct features and creating a polished, professional look. The natural backdrop, combined with the luxurious attire, conveys a sense of timeless elegance and effortless charm. Photorealistic, UHD –ar 9:16 –style raw –v 6.0 –stylize 500.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 2.5,
"output_quality": 100,
"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
Output
{
"completed_at": "2024-12-29T19:58:51.572075Z",
"created_at": "2024-12-29T19:58:38.112000Z",
"data_removed": false,
"error": null,
"id": "btk9hsya41rmc0cm2fzrh6m7s8",
"input": {
"model": "dev",
"prompt": "SYL_07_08, a 38-year-old Indian adult male with glasses and a man bun, standing confidently in an open, sunlit setting with tall palm trees in the background. He is dressed in a crisp, tailored ivory suit with a slightly unbuttoned white shirt underneath, exuding a sophisticated yet relaxed vibe. The sunlight casts soft shadows across his face, highlighting his distinct features and creating a polished, professional look. The natural backdrop, combined with the luxurious attire, conveys a sense of timeless elegance and effortless charm. Photorealistic, UHD –ar 9:16 –style raw –v 6.0 –stylize 500.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "9:16",
"output_format": "jpg",
"guidance_scale": 2.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "2024-12-29 19:58:39.026 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-29 19:58:39.027 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2817.61it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2737.09it/s]\n2024-12-29 19:58:39.138 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s\nfree=30155757727744\nDownloading weights\n2024-12-29T19:58:39Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpqkbwvhi1/weights url=https://replicate.delivery/yhqm/YI5rNpBvXk7aOZ58TsBBOvDHMTeEu13f5EGY39Gk10xho6ZTA/trained_model.tar\n2024-12-29T19:58:45Z | INFO | [ Complete ] dest=/tmp/tmpqkbwvhi1/weights size=\"172 MB\" total_elapsed=6.235s url=https://replicate.delivery/yhqm/YI5rNpBvXk7aOZ58TsBBOvDHMTeEu13f5EGY39Gk10xho6ZTA/trained_model.tar\nDownloaded weights in 6.26s\n2024-12-29 19:58:45.400 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/27c180b5b177085a\n2024-12-29 19:58:45.470 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded\n2024-12-29 19:58:45.470 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys\n2024-12-29 19:58:45.471 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted\nApplying LoRA: 0%| | 0/304 [00:00<?, ?it/s]\nApplying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2816.68it/s]\nApplying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2736.17it/s]\n2024-12-29 19:58:45.582 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.18s\nUsing seed: 8658\n0it [00:00, ?it/s]\n1it [00:00, 8.48it/s]\n2it [00:00, 5.91it/s]\n3it [00:00, 5.40it/s]\n4it [00:00, 5.19it/s]\n5it [00:00, 5.06it/s]\n6it [00:01, 4.98it/s]\n7it [00:01, 4.93it/s]\n8it [00:01, 4.90it/s]\n9it [00:01, 4.90it/s]\n10it [00:01, 4.88it/s]\n11it [00:02, 4.86it/s]\n12it [00:02, 4.85it/s]\n13it [00:02, 4.84it/s]\n14it [00:02, 4.85it/s]\n15it [00:03, 4.85it/s]\n16it [00:03, 4.84it/s]\n17it [00:03, 4.84it/s]\n18it [00:03, 4.84it/s]\n19it [00:03, 4.85it/s]\n20it [00:04, 4.84it/s]\n21it [00:04, 4.84it/s]\n22it [00:04, 4.84it/s]\n23it [00:04, 4.86it/s]\n24it [00:04, 4.86it/s]\n25it [00:05, 4.86it/s]\n26it [00:05, 4.86it/s]\n27it [00:05, 4.87it/s]\n28it [00:05, 4.88it/s]\n28it [00:05, 4.93it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 12.545049698,
"total_time": 13.460075
},
"output": [
"https://replicate.delivery/xezq/aGhd04Jxyr49PBlyiuaH9XFE9fh5b3gPrpB0mhWleh57v1fnA/out-0.jpg"
],
"started_at": "2024-12-29T19:58:39.027026Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-lwnpthlsjdtxnnvvyplav3a7tqsgtq2dbcvkcrlrpyn4mjqzjkba",
"get": "https://api.replicate.com/v1/predictions/btk9hsya41rmc0cm2fzrh6m7s8",
"cancel": "https://api.replicate.com/v1/predictions/btk9hsya41rmc0cm2fzrh6m7s8/cancel"
},
"version": "866dec749879d1240d4bbef72b6efea5b968d845c7556bf7ba39a85dc010899c"
}
2024-12-29 19:58:39.026 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2024-12-29 19:58:39.027 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2817.61it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2737.09it/s]
2024-12-29 19:58:39.138 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.11s
free=30155757727744
Downloading weights
2024-12-29T19:58:39Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpqkbwvhi1/weights url=https://replicate.delivery/yhqm/YI5rNpBvXk7aOZ58TsBBOvDHMTeEu13f5EGY39Gk10xho6ZTA/trained_model.tar
2024-12-29T19:58:45Z | INFO | [ Complete ] dest=/tmp/tmpqkbwvhi1/weights size="172 MB" total_elapsed=6.235s url=https://replicate.delivery/yhqm/YI5rNpBvXk7aOZ58TsBBOvDHMTeEu13f5EGY39Gk10xho6ZTA/trained_model.tar
Downloaded weights in 6.26s
2024-12-29 19:58:45.400 | INFO | fp8.lora_loading:convert_lora_weights:498 - Loading LoRA weights for /src/weights-cache/27c180b5b177085a
2024-12-29 19:58:45.470 | INFO | fp8.lora_loading:convert_lora_weights:519 - LoRA weights loaded
2024-12-29 19:58:45.470 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2024-12-29 19:58:45.471 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 93%|█████████▎| 282/304 [00:00<00:00, 2816.68it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 2736.17it/s]
2024-12-29 19:58:45.582 | SUCCESS | fp8.lora_loading:load_lora:539 - LoRA applied in 0.18s
Using seed: 8658
0it [00:00, ?it/s]
1it [00:00, 8.48it/s]
2it [00:00, 5.91it/s]
3it [00:00, 5.40it/s]
4it [00:00, 5.19it/s]
5it [00:00, 5.06it/s]
6it [00:01, 4.98it/s]
7it [00:01, 4.93it/s]
8it [00:01, 4.90it/s]
9it [00:01, 4.90it/s]
10it [00:01, 4.88it/s]
11it [00:02, 4.86it/s]
12it [00:02, 4.85it/s]
13it [00:02, 4.84it/s]
14it [00:02, 4.85it/s]
15it [00:03, 4.85it/s]
16it [00:03, 4.84it/s]
17it [00:03, 4.84it/s]
18it [00:03, 4.84it/s]
19it [00:03, 4.85it/s]
20it [00:04, 4.84it/s]
21it [00:04, 4.84it/s]
22it [00:04, 4.84it/s]
23it [00:04, 4.86it/s]
24it [00:04, 4.86it/s]
25it [00:05, 4.86it/s]
26it [00:05, 4.86it/s]
27it [00:05, 4.87it/s]
28it [00:05, 4.88it/s]
28it [00:05, 4.93it/s]
Total safe images: 1 out of 1