For access to the campaign API, please Contact Us
The Campaign Generation API enables the creation of multiple ads (scenes) in various sizes and resolutions, all unified by the same branding, style, and messaging. This is essential for testing different ad variations, repurposing successful ad formats, and significantly reducing the manual effort required to create multiple ads.
BRIA's Campaign Generation API provides a unique and scalable solution for producing professional-grade ads while minimizing the need for time-consuming design work.
Template
Templates enable to repurpose and reuse well-design ads that share the same style, content and branded elements.It consists of multiple ads (“scenes”) and includes configurations for customizing the content at scale.
Smart Image Feature
A standout feature of BRIA's Campaign Generation API is its ability to seamlessly embed objects, products, and presenter images into another image (a "smart image"). This AI-powered capability allows for generating diverse backgrounds for the embedded image or extending the background to fit the ad's design perfectly.
How It Works
The Campaign Generation API works by sending a template ID along with inputs such as text, images, the main object with its background definition, and a brand ID (including logos, colors, and fonts). In response, the API generates a set of ad images.
Templates can be easily created using BRIA’s Campaign Editor application. Once a template is ready, it can be used to produce multiple ad versions with varying messaging, branding, and images.
Campaign generated successfully.
Bad request.
Unauthorized. Invalid API key or authentication token.
Value error in the request body.
Internal server error.
{- "results": [
- {
- "name": "scene_name",
- "url": "IMAGE_URL",
- "resolution": [
- 1000,
- 1000
]
}
]
}
Get the list of brands associated with your token, used to customize campaigns with colors, fonts, and logos.
Successfully retrieved list of brands.
Unauthorized. Invalid API key or authentication token.
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "created_at": "string"
}
]
Get the list of templates associated with your token, used for campaign generation.
Successfully retrieved list of templates.
Unauthorized. Invalid API key or authentication token.
[- {
- "id": 0,
- "name": "string",
- "created_at": "string",
- "number_of_scenes": 0,
- "preview": "string"
}
]
Retrieve details for a specific template by template ID.
Successfully retrieved template details.
Unauthorized. Invalid API key or authentication token.
Template not found for the provided template ID.
[- {
- "id": "string",
- "scene_number": 0,
- "elements": [
- {
- "layer_type": "string",
- "content_type": "string",
- "content": "string"
}
]
}
]