
pipeline-examples/video-ads
Video ads with a product!
Public
110
runs
Run pipeline-examples/video-ads 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 |
---|---|---|---|
product_image |
string
|
Upload an image of your product
|
|
num_prompts |
integer
|
3
Min: 1 Max: 10 |
Number of different ad variations to create
|
product_description |
string
|
|
Optional description of your product to help generate better prompts
|
target_audience |
string
|
general consumers
|
Target audience for the ads (e.g., 'young professionals', 'fitness enthusiasts', 'luxury buyers')
|
ad_style |
string
|
modern and clean
|
Style preference for the ads (e.g., 'minimalist', 'vibrant and energetic', 'luxury and elegant')
|
video_duration |
None
|
5
|
Duration of animated videos in seconds
|
{
"type": "object",
"title": "Input",
"required": [
"product_image"
],
"properties": {
"ad_style": {
"type": "string",
"title": "Ad Style",
"default": "modern and clean",
"x-order": 4,
"description": "Style preference for the ads (e.g., 'minimalist', 'vibrant and energetic', 'luxury and elegant')"
},
"num_prompts": {
"type": "integer",
"title": "Num Prompts",
"default": 3,
"maximum": 10,
"minimum": 1,
"x-order": 1,
"description": "Number of different ad variations to create"
},
"product_image": {
"type": "string",
"title": "Product Image",
"format": "uri",
"x-order": 0,
"description": "Upload an image of your product"
},
"video_duration": {
"enum": [
5,
10
],
"type": "integer",
"title": "video_duration",
"description": "Duration of animated videos in seconds",
"default": 5,
"x-order": 5
},
"target_audience": {
"type": "string",
"title": "Target Audience",
"default": "general consumers",
"x-order": 3,
"description": "Target audience for the ads (e.g., 'young professionals', 'fitness enthusiasts', 'luxury buyers')"
},
"product_description": {
"type": "string",
"title": "Product Description",
"default": "",
"x-order": 2,
"description": "Optional description of your product to help generate better prompts"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output",
"x-cog-array-type": "iterator"
}
Example API response
View prediction
['https://replicate.delivery/xezq/onEKv3gA3NIFHJkTXW3qikfgEUlcC16gfquDlnKb8jsxF9MVA/tmppfs9c10e.mp4',
'https://replicate.delivery/xezq/B4YGbdcvtK5YGxhSDjpKogXPjENqEnlx7HAzsv5EGlBnRPTF/tmpu084b_jq.mp4',
'https://replicate.delivery/xezq/9WeTzPQW9pQ4PSKAviOanOlfWDybmXtbgo6PejNvzIy6M6ZqA/tmpq4esh87r.mp4']