Generate branded ad image (credits)
generate_ad_imageGenerate a publication-ready branded ad image using BrandGene credits (6 credits for 1K, 9 for 2K, 19 for 4K). Automatically injects your brand DNA, optional campaign angles, headline/CTA copy, and real product photos, brand style references, and logo. Defaults to your active brand when brandId is omitted; requires at least one saved brand, product, or campaign.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_ad_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cta | No | Optional exact call-to-action badge or button text (e.g. 'Shop Now'). | |
| prompt | Yes | Ad creative brief describing the visual scene, subject, and composition. | |
| adStyle | No | Optional commercial ad format preset to guide art direction. | |
| brandId | No | Optional BrandGene brand ID to inject brand DNA. Defaults to the product's linked brand or your active brand. | |
| headline | No | Optional exact headline copy to render cleanly on the ad image. | |
| imageSize | No | Resolution tier: 1K (6 credits), 2K (9 credits), or 4K (19 credits). Default 1K. | |
| productId | No | Optional BrandGene product ID to inject product selling points and real product photos. | |
| campaignId | No | Optional BrandGene campaign ID to inject objective, audience, channels, angles, and linked product. | |
| aspectRatio | No | Output aspect ratio (default 1:1). | |
| includeLogo | No | Automatically attach the saved brand logo as a visual reference when a brand is resolved (default true). | |
| includeBrandImages | No | When no product photos are attached, automatically attach up to 2 saved brand visual reference images for style consistency (default true). | |
| includeProductImages | No | Automatically attach up to 2 saved product photos as visual references when a product is resolved (default true). |