bytedance / flux-pulid
⚡️FLUX PuLID: FLUX-dev based Pure and Lightning ID Customization via Contrastive Alignment🎭
Prediction
bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525bID2sf15yjx1hrj60cj1bsak6sq1cStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- width
- 896
- height
- 1152
- prompt
- a woman holding sign with glowing green text "PuLID for FLUX"
- true_cfg
- 1
- id_weight
- 1
- num_steps
- 20
- start_step
- 4
- num_outputs
- 4
- output_format
- webp
- guidance_scale
- 4
- output_quality
- 80
- negative_prompt
- bad quality, worst quality, text, signature, watermark, extra limbs
- max_sequence_length
- 128
{ "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \"PuLID for FLUX\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid.hf.space/--replicas/g5yty/file=/tmp/gradio/7567beceda2541f726af7beb4c9aa857b4a96b77/liuyifei.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", { input: { width: 896, height: 1152, prompt: "a woman holding sign with glowing green text \"PuLID for FLUX\"", true_cfg: 1, id_weight: 1, num_steps: 20, start_step: 4, num_outputs: 4, output_format: "webp", guidance_scale: 4, output_quality: 80, main_face_image: "https://yanze-pulid.hf.space/--replicas/g5yty/file=/tmp/gradio/7567beceda2541f726af7beb4c9aa857b4a96b77/liuyifei.png", negative_prompt: "bad quality, worst quality, text, signature, watermark, extra limbs", max_sequence_length: 128 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", input={ "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \"PuLID for FLUX\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid.hf.space/--replicas/g5yty/file=/tmp/gradio/7567beceda2541f726af7beb4c9aa857b4a96b77/liuyifei.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bytedance/flux-pulid 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": "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", "input": { "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \\"PuLID for FLUX\\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid.hf.space/--replicas/g5yty/file=/tmp/gradio/7567beceda2541f726af7beb4c9aa857b4a96b77/liuyifei.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T15:43:06.554549Z", "created_at": "2024-09-19T15:41:48.684000Z", "data_removed": false, "error": null, "id": "2sf15yjx1hrj60cj1bsak6sq1c", "input": { "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \"PuLID for FLUX\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid.hf.space/--replicas/g5yty/file=/tmp/gradio/7567beceda2541f726af7beb4c9aa857b4a96b77/liuyifei.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }, "logs": "Using seeds: [608027706, 540516882, 2925327255, 2369233574]\nGenerating 'a woman holding sign with glowing green text \"PuLID for FLUX\"' with seeds [608027706, 540516882, 2925327255, 2369233574]\nDenoising time: 32.77 seconds\nDecoding time: 0.32 seconds\nTotal generate_image time: 34.19 seconds\nImage 1 generated with seed: 608027706\nImage 2 generated with seed: 540516882\nImage 3 generated with seed: 2925327255\nImage 4 generated with seed: 2369233574\nTotal prediction time: 34.50 seconds", "metrics": { "predict_time": 35.755562864, "total_time": 77.870549 }, "output": [ "https://replicate.delivery/yhqm/1TBTW5Isu2JMAh3yJ86ITv2kpidkDHdtbw9uX1rzLOoi4n3E/output_1.webp", "https://replicate.delivery/yhqm/4yw3nQmK7QZ3GpeNy7JNMVsAROdQjc348HWrWWQBLKbFxPvJA/output_2.webp", "https://replicate.delivery/yhqm/fRp3KHyPx92XJqpghaPcBWBSIlvzYBzpR4IQu4mcygdFxPvJA/output_3.webp", "https://replicate.delivery/yhqm/tdk1NPXBbN6mHp2s4srFYdKrReQ8xfezfbqEFHfWs3sSR8zbC/output_4.webp" ], "started_at": "2024-09-19T15:42:30.798986Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2sf15yjx1hrj60cj1bsak6sq1c", "cancel": "https://api.replicate.com/v1/predictions/2sf15yjx1hrj60cj1bsak6sq1c/cancel" }, "version": "8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b" }
Generated inUsing seeds: [608027706, 540516882, 2925327255, 2369233574] Generating 'a woman holding sign with glowing green text "PuLID for FLUX"' with seeds [608027706, 540516882, 2925327255, 2369233574] Denoising time: 32.77 seconds Decoding time: 0.32 seconds Total generate_image time: 34.19 seconds Image 1 generated with seed: 608027706 Image 2 generated with seed: 540516882 Image 3 generated with seed: 2925327255 Image 4 generated with seed: 2369233574 Total prediction time: 34.50 seconds
Prediction
bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525bID40ttt2dsd5rj40cj1bvs7nqrq8StatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- width
- 896
- height
- 1152
- prompt
- portrait, candle light
- true_cfg
- 1
- id_weight
- 1
- num_steps
- 20
- start_step
- 4
- num_outputs
- 4
- output_format
- webp
- guidance_scale
- 4
- output_quality
- 80
- negative_prompt
- bad quality, worst quality, text, signature, watermark, extra limbs
- max_sequence_length
- 128
{ "width": 896, "height": 1152, "prompt": "portrait, candle light", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/1d163eb4cc3244e063895263490ee5abc199fe915e6dae9aadbdfb435523644c/pengwei.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", { input: { width: 896, height: 1152, prompt: "portrait, candle light", true_cfg: 1, id_weight: 1, num_steps: 20, start_step: 4, num_outputs: 4, output_format: "webp", guidance_scale: 4, output_quality: 80, main_face_image: "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/1d163eb4cc3244e063895263490ee5abc199fe915e6dae9aadbdfb435523644c/pengwei.jpg", negative_prompt: "bad quality, worst quality, text, signature, watermark, extra limbs", max_sequence_length: 128 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", input={ "width": 896, "height": 1152, "prompt": "portrait, candle light", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/1d163eb4cc3244e063895263490ee5abc199fe915e6dae9aadbdfb435523644c/pengwei.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bytedance/flux-pulid 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": "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", "input": { "width": 896, "height": 1152, "prompt": "portrait, candle light", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/1d163eb4cc3244e063895263490ee5abc199fe915e6dae9aadbdfb435523644c/pengwei.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T15:48:28.137238Z", "created_at": "2024-09-19T15:47:40.009000Z", "data_removed": false, "error": null, "id": "40ttt2dsd5rj40cj1bvs7nqrq8", "input": { "width": 896, "height": 1152, "prompt": "portrait, candle light", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/1d163eb4cc3244e063895263490ee5abc199fe915e6dae9aadbdfb435523644c/pengwei.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }, "logs": "Using seeds: [4179124428, 307258643, 1004816078, 1858659012]\nGenerating 'portrait, candle light' with seeds [4179124428, 307258643, 1004816078, 1858659012]\nDenoising time: 32.69 seconds\nDecoding time: 0.32 seconds\nTotal generate_image time: 34.15 seconds\nImage 1 generated with seed: 4179124428\nImage 2 generated with seed: 307258643\nImage 3 generated with seed: 1004816078\nImage 4 generated with seed: 1858659012\nTotal prediction time: 34.47 seconds", "metrics": { "predict_time": 35.700987003, "total_time": 48.128238 }, "output": [ "https://replicate.delivery/yhqm/GTJtXs3ezuQEDS5dqZt8Gsl0Ai7rPtNDVbapI5BM1xvlzPvJA/output_1.webp", "https://replicate.delivery/yhqm/y9eyonnce7sqs0mhr5Um2CNhosAm6N8DVQxDqmZuIu3Lnf8mA/output_2.webp", "https://replicate.delivery/yhqm/pVyF83NKD4rQDJTG3rz43lxZLa6LTf581td7lmp4ewkLnf8mA/output_3.webp", "https://replicate.delivery/yhqm/mJ3ZoOfwsp2STyVRr6TI69pS9u8D6zkMrQ0U2VNipVZmzPvJA/output_4.webp" ], "started_at": "2024-09-19T15:47:52.436251Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/40ttt2dsd5rj40cj1bvs7nqrq8", "cancel": "https://api.replicate.com/v1/predictions/40ttt2dsd5rj40cj1bvs7nqrq8/cancel" }, "version": "8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b" }
Generated inUsing seeds: [4179124428, 307258643, 1004816078, 1858659012] Generating 'portrait, candle light' with seeds [4179124428, 307258643, 1004816078, 1858659012] Denoising time: 32.69 seconds Decoding time: 0.32 seconds Total generate_image time: 34.15 seconds Image 1 generated with seed: 4179124428 Image 2 generated with seed: 307258643 Image 3 generated with seed: 1004816078 Image 4 generated with seed: 1858659012 Total prediction time: 34.47 seconds
Prediction
bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525bIDkb80wwmjenrj20cj1bz9ddzm1cStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
- width
- 896
- height
- 1152
- prompt
- portrait, made of ice sculpture
- true_cfg
- 5
- id_weight
- 1
- num_steps
- 20
- start_step
- 4
- num_outputs
- 4
- output_format
- webp
- guidance_scale
- 1
- output_quality
- 80
- negative_prompt
- bad quality, worst quality, text, signature, watermark, extra limbs
- max_sequence_length
- 128
{ "width": 896, "height": 1152, "prompt": "portrait, made of ice sculpture", "true_cfg": 5, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 1, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/2730103b6b9ebaf47b44ef9a9d7fbb722de7878a101af09f0b85f8dfadb4c8a4/lecun.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", { input: { width: 896, height: 1152, prompt: "portrait, made of ice sculpture", true_cfg: 5, id_weight: 1, num_steps: 20, start_step: 4, num_outputs: 4, output_format: "webp", guidance_scale: 1, output_quality: 80, main_face_image: "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/2730103b6b9ebaf47b44ef9a9d7fbb722de7878a101af09f0b85f8dfadb4c8a4/lecun.jpg", negative_prompt: "bad quality, worst quality, text, signature, watermark, extra limbs", max_sequence_length: 128 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", input={ "width": 896, "height": 1152, "prompt": "portrait, made of ice sculpture", "true_cfg": 5, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 1, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/2730103b6b9ebaf47b44ef9a9d7fbb722de7878a101af09f0b85f8dfadb4c8a4/lecun.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bytedance/flux-pulid 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": "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", "input": { "width": 896, "height": 1152, "prompt": "portrait, made of ice sculpture", "true_cfg": 5, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 1, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/2730103b6b9ebaf47b44ef9a9d7fbb722de7878a101af09f0b85f8dfadb4c8a4/lecun.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-19T15:56:40.313525Z", "created_at": "2024-09-19T15:55:08.789000Z", "data_removed": false, "error": null, "id": "kb80wwmjenrj20cj1bz9ddzm1c", "input": { "width": 896, "height": 1152, "prompt": "portrait, made of ice sculpture", "true_cfg": 5, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 1, "output_quality": 80, "main_face_image": "https://yanze-pulid-flux.hf.space/file=/tmp/gradio/2730103b6b9ebaf47b44ef9a9d7fbb722de7878a101af09f0b85f8dfadb4c8a4/lecun.jpg", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }, "logs": "Using seeds: [2980670858, 2140028606, 2874210192, 3917762101]\nGenerating 'portrait, made of ice sculpture' with seeds [2980670858, 2140028606, 2874210192, 3917762101]\nDenoising time: 59.61 seconds\nDecoding time: 0.33 seconds\nTotal generate_image time: 61.10 seconds\nImage 1 generated with seed: 2980670858\nImage 2 generated with seed: 2140028606\nImage 3 generated with seed: 2874210192\nImage 4 generated with seed: 3917762101\nTotal prediction time: 61.50 seconds", "metrics": { "predict_time": 62.542553955, "total_time": 91.524525 }, "output": [ "https://replicate.delivery/yhqm/Wribf5qoBMTJYS4P1mf8erSCVxxYALzXDQvaFgE5UP9udf5NB/output_1.webp", "https://replicate.delivery/yhqm/QpXOlGnP0FqWExXw87PJWxy4bf7xge2PItouWnoaE9S3uf8mA/output_2.webp", "https://replicate.delivery/yhqm/MCaiETpAdKY1KxPYaLohydDhCYOiTdfeWtebtfM3aU1g7ezbC/output_3.webp", "https://replicate.delivery/yhqm/x9bZeU8IePuVjklRIK89B84glLqHgvigZHGB0gAjg954uf8mA/output_4.webp" ], "started_at": "2024-09-19T15:55:37.770971Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/kb80wwmjenrj20cj1bz9ddzm1c", "cancel": "https://api.replicate.com/v1/predictions/kb80wwmjenrj20cj1bz9ddzm1c/cancel" }, "version": "8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b" }
Generated inUsing seeds: [2980670858, 2140028606, 2874210192, 3917762101] Generating 'portrait, made of ice sculpture' with seeds [2980670858, 2140028606, 2874210192, 3917762101] Denoising time: 59.61 seconds Decoding time: 0.33 seconds Total generate_image time: 61.10 seconds Image 1 generated with seed: 2980670858 Image 2 generated with seed: 2140028606 Image 3 generated with seed: 2874210192 Image 4 generated with seed: 3917762101 Total prediction time: 61.50 seconds
Prediction
bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525bIDzm4dca866nrj20cnbhmsy5bzbrStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedby @bytedanceInput
- width
- 896
- height
- 1152
- prompt
- a woman holding sign with glowing green text "PuLID for FLUX"
- true_cfg
- 1
- id_weight
- 1
- num_steps
- 20
- start_step
- 4
- num_outputs
- 4
- output_format
- webp
- guidance_scale
- 4
- output_quality
- 80
- negative_prompt
- bad quality, worst quality, text, signature, watermark, extra limbs
- max_sequence_length
- 128
{ "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \"PuLID for FLUX\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://replicate.delivery/pbxt/MayZhLThspqLqRhirB8VEjqbEX5B0PWqjd9xe3PkTv2wLMcr/woman.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", { input: { width: 896, height: 1152, prompt: "a woman holding sign with glowing green text \"PuLID for FLUX\"", true_cfg: 1, id_weight: 1, num_steps: 20, start_step: 4, num_outputs: 4, output_format: "webp", guidance_scale: 4, output_quality: 80, main_face_image: "https://replicate.delivery/pbxt/MayZhLThspqLqRhirB8VEjqbEX5B0PWqjd9xe3PkTv2wLMcr/woman.png", negative_prompt: "bad quality, worst quality, text, signature, watermark, extra limbs", max_sequence_length: 128 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run bytedance/flux-pulid using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", input={ "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \"PuLID for FLUX\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://replicate.delivery/pbxt/MayZhLThspqLqRhirB8VEjqbEX5B0PWqjd9xe3PkTv2wLMcr/woman.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run bytedance/flux-pulid 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": "bytedance/flux-pulid:8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b", "input": { "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \\"PuLID for FLUX\\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://replicate.delivery/pbxt/MayZhLThspqLqRhirB8VEjqbEX5B0PWqjd9xe3PkTv2wLMcr/woman.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-03-03T14:30:03.900633Z", "created_at": "2025-03-03T14:29:01.621000Z", "data_removed": false, "error": null, "id": "zm4dca866nrj20cnbhmsy5bzbr", "input": { "width": 896, "height": 1152, "prompt": "a woman holding sign with glowing green text \"PuLID for FLUX\"", "true_cfg": 1, "id_weight": 1, "num_steps": 20, "start_step": 4, "num_outputs": 4, "output_format": "webp", "guidance_scale": 4, "output_quality": 80, "main_face_image": "https://replicate.delivery/pbxt/MayZhLThspqLqRhirB8VEjqbEX5B0PWqjd9xe3PkTv2wLMcr/woman.png", "negative_prompt": "bad quality, worst quality, text, signature, watermark, extra limbs", "max_sequence_length": 128 }, "logs": "Using seeds: [3902735353, 3906845023, 3960091009, 3285723470]\nGenerating 'a woman holding sign with glowing green text \"PuLID for FLUX\"' with seeds [3902735353, 3906845023, 3960091009, 3285723470]\nDenoising time: 32.90 seconds\nDecoding time: 0.69 seconds\nTotal generate_image time: 39.42 seconds\nImage 1 generated with seed: 3902735353\nImage 2 generated with seed: 3906845023\nImage 3 generated with seed: 3960091009\nImage 4 generated with seed: 3285723470\nTotal prediction time: 39.72 seconds", "metrics": { "predict_time": 40.05908108, "total_time": 62.279633 }, "output": [ "https://replicate.delivery/yhqm/QVmFonkKOW6BGFpwXs0IBBPej7dQIAraR4qcN7RUTQ31dbKKA/output_1.webp", "https://replicate.delivery/yhqm/3KwUWUho1ZYlE9b7NfWW01O1QGz35ySyuJIcawIyM2h1dbKKA/output_2.webp", "https://replicate.delivery/yhqm/vZdySqlit06dENDmsSax5TYSlqIMEGOMDQZmKrwLfTg1dbKKA/output_3.webp", "https://replicate.delivery/yhqm/SuPGFeAD4gysaqUOtFaIdrqqwJFhfafAtxqsjTVVpKYW3tpoA/output_4.webp" ], "started_at": "2025-03-03T14:29:23.841552Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/yswh-3kvtmf7hllngrtvsj3qjepsxynwdwzsejzodqdzpioojmtci3i2a", "get": "https://api.replicate.com/v1/predictions/zm4dca866nrj20cnbhmsy5bzbr", "cancel": "https://api.replicate.com/v1/predictions/zm4dca866nrj20cnbhmsy5bzbr/cancel" }, "version": "8baa7ef2255075b46f4d91cd238c21d31181b3e6a864463f967960bb0112525b" }
Generated inUsing seeds: [3902735353, 3906845023, 3960091009, 3285723470] Generating 'a woman holding sign with glowing green text "PuLID for FLUX"' with seeds [3902735353, 3906845023, 3960091009, 3285723470] Denoising time: 32.90 seconds Decoding time: 0.69 seconds Total generate_image time: 39.42 seconds Image 1 generated with seed: 3902735353 Image 2 generated with seed: 3906845023 Image 3 generated with seed: 3960091009 Image 4 generated with seed: 3285723470 Total prediction time: 39.72 seconds
Want to make some of these yourself?
Run this model