Run fofr/image-prompts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/image-prompts:ba4130c13f3f1cd9771bc671bb13eab6ad5d839b2e55723b40742c03ef7f99ff",
input={
"debug": False,
"top_p": 1,
"prompt": "Image: a weird flan",
"max_length": 100,
"temperature": 1,
"repetition_penalty": 1.5
}
)
# The fofr/image-prompts model can stream output as it's running.# The predict method returns an iterator, and you can iterate over that output.for item in output:
# https://replicate.com/fofr/image-prompts/api#output-schemaprint(item, end="")
Prompt: a weird flan, made with creme, maple syrup, mangoes, strawberries, cherries, pine nuts and pecans, fried on an electric stovetop, iced and covered in caramel; bklyn / washington d.c. --ar 2:1