Run jonathan-hubjam/jonathan-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jonathan-hubjam/jonathan-flux:3658c4d7fd61d3d9bbc04c66cf87de87dbd855e956cc3473e430eb04813afa41",
{
input: {
model: "dev",
prompt: "JONSHUBJAM a bald man sailing on a yacht – in a chic outfit, enjoying a calm day at sea, with seagulls flying overhead.",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "png",
guidance_scale: 1.99,
output_quality: 90,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 30
}
}
);
// 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 jonathan-hubjam/jonathan-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jonathan-hubjam/jonathan-flux:3658c4d7fd61d3d9bbc04c66cf87de87dbd855e956cc3473e430eb04813afa41",
input={
"model": "dev",
"prompt": "JONSHUBJAM a bald man sailing on a yacht – in a chic outfit, enjoying a calm day at sea, with seagulls flying overhead.",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 1.99,
"output_quality": 90,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 30
}
)
# 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())