Run danovate2/avatar_train_dan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"danovate2/avatar_train_dan:3b370ef892f58c601086670dc43530cdc73bffdfb8fe751af87aaee7c28c93a2",
{
input: {
model: "dev",
prompt: "TOK_AVAT the bald AI Automation Expert Daniel sits at a rustic wooden desk in his home office, wearing a light blue Oxford shirt with rolled-up sleeves. A Neewer softbox camera-left provides key light; a desk lamp behind casts warm fill. On the desk: a laptop displaying code, a mechanical keyboard, and a steaming mug. Floor-to-ceiling shelves of books are softly blurred behind him. Subtle wrinkles in his shirt and the grain of the wood surface lend a lived-in feel.",
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.9,
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 danovate2/avatar_train_dan using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"danovate2/avatar_train_dan:3b370ef892f58c601086670dc43530cdc73bffdfb8fe751af87aaee7c28c93a2",
input={
"model": "dev",
"prompt": "TOK_AVAT the bald AI Automation Expert Daniel sits at a rustic wooden desk in his home office, wearing a light blue Oxford shirt with rolled-up sleeves. A Neewer softbox camera-left provides key light; a desk lamp behind casts warm fill. On the desk: a laptop displaying code, a mechanical keyboard, and a steaming mug. Floor-to-ceiling shelves of books are softly blurred behind him. Subtle wrinkles in his shirt and the grain of the wood surface lend a lived-in feel.",
"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.9,
"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 danovate2/avatar_train_dan 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": "danovate2/avatar_train_dan:3b370ef892f58c601086670dc43530cdc73bffdfb8fe751af87aaee7c28c93a2",
"input": {
"model": "dev",
"prompt": "TOK_AVAT the bald AI Automation Expert Daniel sits at a rustic wooden desk in his home office, wearing a light blue Oxford shirt with rolled-up sleeves. A Neewer softbox camera-left provides key light; a desk lamp behind casts warm fill. On the desk: a laptop displaying code, a mechanical keyboard, and a steaming mug. Floor-to-ceiling shelves of books are softly blurred behind him. Subtle wrinkles in his shirt and the grain of the wood surface lend a lived-in feel.",
"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.9,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
https://api.replicate.com/v1/predictions