pranavsekhar/nano-banana-slideshow

Public
44 runs

Run pranavsekhar/nano-banana-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)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "video",
    "variations_used"
  ],
  "properties": {
    "video": {
      "type": "string",
      "title": "Video",
      "format": "uri"
    },
    "variations_used": {
      "type": "string",
      "title": "Variations Used"
    }
  }
}
Example API response
View prediction
{'variations_used': '1. a red corvette sitting at the base of a mountain on a '
                    'misty day, realistic day (base image)\n'
                    '2. Add a hiker with a backpack standing near the car '
                    'looking up at the mountain trail\n'
                    '3. Place a vintage camping lantern and folded map on the '
                    "corvette's hood\n"
                    "4. Add a golden retriever sitting beside the driver's "
                    'door\n'
                    "5. Include scattered autumn leaves around the car's base "
                    'and on the windshield\n'
                    '6. Place a pair of hiking boots and a water bottle on the '
                    'ground near the passenger side\n'
                    '7. Add a small wooden trail marker sign pointing toward a '
                    'mountain path\n'
                    "8. Include morning dew droplets covering the car's "
                    'surface and nearby grass\n'
                    '9. Place a thermos of coffee and binoculars on the '
                    "corvette's roof\n"
                    '10. Add a red-tailed hawk perched on a nearby weathered '
                    'fence post',
 'video': 'https://replicate.delivery/xezq/US5fuyIdtUVlFKccqEuE7g5iFCIbmAbrYT66Tf8SgO1Zz5VVA/variations_video.mp4'}