# Maximalist Travel Ad

> A bold, maximalist travel advertisement template bursting with color, layered typography, and rich visual detail.

This is a [Bannx](https://bannx.com) template. Render any of its **pages** to an image (PNG, SVG, WebP) or PDF through the Bannx Render API, and customize the output by passing **tweaks** (variable overrides).

## Template

- Template ID: `travel-ad`
- Category: travel
- Pages: 1
- Open in browser: https://bannx.com/templates/travel-ad

## How to use

1. Pick a **page** below and note its **page ID**.
2. Call the Render API with that page ID. Override text, colors, and other values via the `tweaks` map (keys are the variable names listed below).
3. Authenticate with an API key (create one under **Settings → Space → Developers**) using the `Authorization: Bearer <token>` header. GET requests for this template require a token (or the space GET render secret `gt`).

Full docs: https://bannx.com/docs/rendering · https://bannx.com/docs/variables

## Quick demo (no API key)

AI agents and curious humans can render this **public** template with tweaks without an account. Mint a short-lived **demo token** (IP-throttled, ~1h TTL, max 5 per hour per IP) and pass it as `?demo=...` (or `Authorization: Bearer <token>`):

```bash
# 1. Mint a demo token (no auth required)
curl -s -X POST https://bannx.com/api/demo-token
# → { "token": "demo_…", "expiresAt": …, "quota": { … } }

# 2. Render with the token (public templates only)
curl -L "https://bannx.com/api/render/page-insta-city?format=png&output=binary&demo=demo_…" --output demo.png
```

Demo tokens only work on public templates and don't consume any space's credits. For production usage, create an API key under **Settings → Space → Developers** instead.

## Variables

_No configurable variables._

## Pages

### City Anniversary Post

- Page ID: `page-insta-city`
- Size: 1080×1080
- Variables: `bgImage`, `photo1`, `photo2`, `eventDate`, `eventSubtitle`, `sloganLine1`, `sloganLine2`, `cityName`, `yearsCount`, `yearsLabel`, `brandName`, `website`, `socialHandle`, `phone`, `accentColor`, `photo3`

## Example: render "City Anniversary Post"

POST (recommended):

```bash
curl -X POST "https://bannx.com/api/render" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" --data "{\"templateId\":\"travel-ad\",\"draft\":false,\"format\":\"png\",\"output\":\"binary\",\"tweaks\":{\"bgImage\":\"https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?w=1080&q=80\",\"photo1\":\"https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?w=600&q=80\",\"photo2\":\"https://images.unsplash.com/photo-1504432842672-1a79f78e4084?w=600&q=80\"},\"pageId\":\"page-insta-city\"}" -o render.png
```

GET (embed in an `<img>` / quick link):

```bash
curl -H "Authorization: Bearer YOUR_API_KEY" "https://bannx.com/api/render/page-insta-city?format=png&output=binary&templateId=travel-ad&tweaks=%7B%22bgImage%22%3A%22https%3A%2F%2Fimages.unsplash.com%2Fphoto-1516026672322-bc52d61a55d5%3Fw%3D1080%26q%3D80%22%2C%22photo1%22%3A%22https%3A%2F%2Fimages.unsplash.com%2Fphoto-1547471080-7cc2caa01a7e%3Fw%3D600%26q%3D80%22%2C%22photo2%22%3A%22https%3A%2F%2Fimages.unsplash.com%2Fphoto-1504432842672-1a79f78e4084%3Fw%3D600%26q%3D80%22%7D" -o render.png
```
