
pipeline-examples/ads-for-products

Create stunning ads using an image of a product
Public
363
runs
Run pipeline-examples/ads-for-products 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')
|
{
"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"
},
"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/fyL8CYOWJejQB0YRpFO6IK4tHwfWFdnnElfLmcvzPQqL6MyUB/tmpl27bfqqd.jpg',
'https://replicate.delivery/xezq/JNJY75DfXdyMAC7tkbTBSzGLeMs9rgh3Xc1dxMjv98fGdGZqA/tmpq2l60v92.jpg',
'https://replicate.delivery/xezq/n4pnV6i5eUQRVad1F5NDY9ewdT3ROqOjMRWYpssn8zlkOjMVA/tmpd1k04ytv.jpg',
'https://replicate.delivery/xezq/xxoRobeMgO05GyjQeRO67ibQNRQEie0gLfOCkfz3G5Iu0ZkpC/tmp9tu67x61.jpg']