Run derickson/ds-01 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"derickson/ds-01:ca4f2ed73bc8b5d9a97c49a349fc13fa50e736b15e9396eae8ea0f0634b089fd",
{
input: {
image: "https://replicate.delivery/pbxt/MtFE70ID5jCM94NPTlef1yncdGosXWUfpPuY9b5NYOcUzAg1/templatebrom.jpg",
model: "dev",
prompt: "in the style of bromdarksun25, a painting of a muscled warrior brandishing a spear in a gladiator arena, he wears a mix of bone, metal, and obsidian armor pieces. he is intimidating and yelling",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3,
output_quality: 80,
prompt_strength: 0.5,
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 derickson/ds-01 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"derickson/ds-01:ca4f2ed73bc8b5d9a97c49a349fc13fa50e736b15e9396eae8ea0f0634b089fd",
input={
"image": "https://replicate.delivery/pbxt/MtFE70ID5jCM94NPTlef1yncdGosXWUfpPuY9b5NYOcUzAg1/templatebrom.jpg",
"model": "dev",
"prompt": "in the style of bromdarksun25, a painting of a muscled warrior brandishing a spear in a gladiator arena, he wears a mix of bone, metal, and obsidian armor pieces. he is intimidating and yelling",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3,
"output_quality": 80,
"prompt_strength": 0.5,
"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())