Run rsjejonathanortiz/jonathan_heroes using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"rsjejonathanortiz/jonathan_heroes:99effd09fed6c6f4e90cfeacf881b7b3e56ccdb1396d804214d820e02a32f2eb",
{
input: {
model: "dev",
prompt: "Create an image of me with the body of a male hero, in a medieval futuristic suit, in reddish colors, holding a laser sword, with the Paris background , in neon colors, full body",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "4:5",
output_format: "png",
guidance_scale: 3.5,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 0.8,
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 rsjejonathanortiz/jonathan_heroes using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"rsjejonathanortiz/jonathan_heroes:99effd09fed6c6f4e90cfeacf881b7b3e56ccdb1396d804214d820e02a32f2eb",
input={
"model": "dev",
"prompt": "Create an image of me with the body of a male hero, in a medieval futuristic suit, in reddish colors, holding a laser sword, with the Paris background , in neon colors, full body",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "4:5",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"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 rsjejonathanortiz/jonathan_heroes 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": "rsjejonathanortiz/jonathan_heroes:99effd09fed6c6f4e90cfeacf881b7b3e56ccdb1396d804214d820e02a32f2eb",
"input": {
"model": "dev",
"prompt": "Create an image of me with the body of a male hero, in a medieval futuristic suit, in reddish colors, holding a laser sword, with the Paris background , in neon colors, full body",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "4:5",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 28
}
}' \
https://api.replicate.com/v1/predictions