Create your first banner variant

Last updated: 08.04.2025


Dynamic banner variant

Auto-generate landing page visuals, social media banners, ecommerce sales pages and more with our API and CRM integrations

There are two ways to create named variants,

Option 1: Using the wafrow dashboard

The button right next to save (keyboard shortcut: Option + V) is to create named variants. Variants allow you to save a template configuration with properties that can be reused multiple times.

This has a few limitations, e.g., opacity of a variant can just be 0 or 1. This option is designed for users preferring no-code so is biased towards UI simplicity.

For billing purposes, each variant counts as just 1 unique image generated.

Option 2: Create a variant for the image template using wafrow API

Retrieve the image template with personalization variables in the request body of the form

POST /api/createVariant/IMAGE_TEMPLATE_ID
Host: wafrow.com
Content-Type: application/json
Authorization: Bearer YOUR_TOKEN

{
  "personalize": {
    "cat": {"src": "/assets/gul.png"}, // set image src for layername: cat
    "firstname": {"text": "Gul"}, // set text for layername: firstname
    "offer": {"text": "Free delivery"}, // set text for layername: offer
    "offer_bg": {"opacity": 0.8} // set opacity for layername: offer_bg
  }
}

This returns an object of the form:

{
    "success": true,
    "campaign": {
        "organization_id": "9da084fd-7463-4151-bbe4-91645d1d3ccc",
        "response": {
            "personalize": {
              "cat": {"src": "/assets/gul.png"}, // set image src for layername: cat
              "firstname": {"text": "Gul"}, // set text for layername: firstname
              "offer": {"text": "Free delivery"}, // set text for layername: offer
              "offer_bg": {"opacity": 0.8} // set opacity for layername: offer_bg
            }
        },
        "image_template_id": "9e17d381-40cb-4b61-b9c5-818041e43273",
        "id": "9ea07c57-4746-46cd-bd57-d1b9c1c5ddef",
        "updated_at": "2025-04-08T14:06:20.000000Z",
        "created_at": "2025-04-08T14:06:20.000000Z"
    }
}

You can use the image you've just created with the URL: https:wafrow.com/i/campaign.image_template_id/campaign.id

The API is also documented here


What Next?