
pranavsekhar/compare-image-edit-slideshow
Public
1
run
Run pranavsekhar/compare-image-edit-slideshow with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
Main prompt for the base image (e.g., 'a nice garden with fairy lights and a house in the background')
|
|
input_image |
string
|
Optional starting image to use as base (if not provided, will generate from prompt)
|
|
num_variations |
integer
|
20
Min: 1 Max: 50 |
Number of foreground variations to generate
|
seconds_per_image |
number
|
0.2
Min: 0.1 Max: 2 |
Duration each image should show in the video (seconds)
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Main prompt for the base image (e.g., 'a nice garden with fairy lights and a house in the background')"
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 1,
"nullable": true,
"description": "Optional starting image to use as base (if not provided, will generate from prompt)"
},
"num_variations": {
"type": "integer",
"title": "Num Variations",
"default": 20,
"maximum": 50,
"minimum": 1,
"x-order": 2,
"description": "Number of foreground variations to generate"
},
"seconds_per_image": {
"type": "number",
"title": "Seconds Per Image",
"default": 0.2,
"maximum": 2,
"minimum": 0.1,
"x-order": 3,
"description": "Duration each image should show in the video (seconds)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "object",
"title": "Output",
"required": [
"composite_video",
"nano_banana_video",
"qwen_edit_video",
"seedream_video",
"flux_kontext_video",
"variations_used"
],
"properties": {
"seedream_video": {
"type": "string",
"title": "Seedream Video",
"format": "uri"
},
"composite_video": {
"type": "string",
"title": "Composite Video",
"format": "uri"
},
"qwen_edit_video": {
"type": "string",
"title": "Qwen Edit Video",
"format": "uri"
},
"variations_used": {
"type": "string",
"title": "Variations Used"
},
"nano_banana_video": {
"type": "string",
"title": "Nano Banana Video",
"format": "uri"
},
"flux_kontext_video": {
"type": "string",
"title": "Flux Kontext Video",
"format": "uri"
}
}
}
Example API response
View prediction
{'composite_video': 'https://replicate.delivery/xezq/xDDnovdcT0YHJ5cvwuGhoFTabqkdpJiRffwNFIJbbnxDyPWVA/composite_video.mp4',
'flux_kontext_video': 'https://replicate.delivery/xezq/zEmfaR4wuLzvdKfNIbV10FQWXACHX0c2sxMDAqeOyyRGkfYVB/flux-kontext_video.mp4',
'nano_banana_video': 'https://replicate.delivery/xezq/sL5WfJMF9TWYRqos3dsQBDwvV8QBnAfKr8NkUjju54QDyPWVA/nano-banana_video.mp4',
'qwen_edit_video': 'https://replicate.delivery/xezq/vjBUwAOaBdadHVPeBnwq4sxNvSsLfzQpXti0qcyWM3BDyPWVA/qwen-edit_video.mp4',
'seedream_video': 'https://replicate.delivery/xezq/uw9JJBI2OEotAdBWmeiu1XI5JfHx5Q8fZROal7jgJe5MIfxqC/seedream_video.mp4',
'variations_used': '1. a red corvette sitting at the base of a mountain on a '
'misty day, realistic style (base image)\n'
'2. Replace the red corvette with a vintage pickup truck\n'
'3. Add a hiker with a backpack standing next to the '
'corvette\n'
"4. Place a mountain bike leaning against the corvette's "
'side\n'
'5. Add camping gear scattered on the ground near the car\n'
'6. Replace the corvette with a rugged SUV with mud on the '
'tires\n'
'7. Add a photographer crouched down taking pictures of '
'the mountain\n'
'8. Place hiking boots and a walking stick next to the car '
'door\n'
'9. Add a small campfire with smoke rising near the '
'vehicle\n'
'10. Replace the corvette with a classic muscle car from '
'the 1970s\n'
'11. Add a golden retriever sitting beside the car looking '
'toward the mountain\n'
'12. Place a folded camping chair and cooler next to the '
'corvette\n'
"13. Add morning dew droplets on the car's surface and "
'nearby grass\n'
'14. Replace the corvette with a motorcycle parked on its '
'kickstand\n'
"15. Add a thermos and coffee cup sitting on the car's "
'hood\n'
"16. Place a pair of binoculars on the car's roof\n"
'17. Add tire tracks in the dirt leading up to where the '
'car sits\n'
'18. Replace the corvette with a vintage Jeep Wrangler\n'
"19. Add a small bird perched on the car's side mirror\n"
'20. Place a roadside wildflower bouquet leaning against '
'the front bumper'}