Run zaktechgis/flux-pro-6 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zaktechgis/flux-pro-6:bfd58ea111d3c8fde6851598267d1fbddd228c98020213f9161bfaa44ebcaa39",
{
input: {
model: "dev",
prompt: "Capture an outdoor black and white portrait of a woman in a white blouse and a dark cardigan, standing against a blurred natural backdrop. She has a soft, serene expression, looking away from the camera. Use a Canon EOS R5 with an 85mm f/1.2 lens, with diffused daylight to create a gentle, natural contrast.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 90,
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]);
Run zaktechgis/flux-pro-6 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zaktechgis/flux-pro-6:bfd58ea111d3c8fde6851598267d1fbddd228c98020213f9161bfaa44ebcaa39",
input={
"model": "dev",
"prompt": "Capture an outdoor black and white portrait of a woman in a white blouse and a dark cardigan, standing against a blurred natural backdrop. She has a soft, serene expression, looking away from the camera. Use a Canon EOS R5 with an 85mm f/1.2 lens, with diffused daylight to create a gentle, natural contrast.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
# To access the file URL:print(output[0].url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output[0].read())
Run zaktechgis/flux-pro-6 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": "zaktechgis/flux-pro-6:bfd58ea111d3c8fde6851598267d1fbddd228c98020213f9161bfaa44ebcaa39",
"input": {
"model": "dev",
"prompt": "Capture an outdoor black and white portrait of a woman in a white blouse and a dark cardigan, standing against a blurred natural backdrop. She has a soft, serene expression, looking away from the camera. Use a Canon EOS R5 with an 85mm f/1.2 lens, with diffused daylight to create a gentle, natural contrast.",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
https://api.replicate.com/v1/predictions