# Speaker Quote

> A bold speaker quote card with full-bleed B&W portrait photo, gradient overlay, large accent quote mark, bold quote text, and italic author attribution.

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: `speaker-quote`
- Category: social-media
- Pages: 1
- Open in browser: https://bannx.com/templates/speaker-quote

## 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/6a1c18e9e8cf1a3d1bd532d9?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

| Name | Type | Default | Description |
|------|------|---------|-------------|
| `accentColor` | string | `#c084fc` |  |

## Pages

### Speaker Quote

- Page ID: `6a1c18e9e8cf1a3d1bd532d9`
- Size: 1080×1080
- Variables: `speakerPhoto`, `quoteText`, `speakerName`, `speakerTitle`

## Example: render "Speaker Quote"

POST (recommended):

```bash
curl -X POST "https://bannx.com/api/render" -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" --data "{\"templateId\":\"speaker-quote\",\"draft\":false,\"format\":\"png\",\"output\":\"binary\",\"tweaks\":{\"accentColor\":\"#c084fc\",\"speakerPhoto\":\"https://images.unsplash.com/photo-1665397858112-06e206f9e5ae?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wyMjY0Nzl8MHwxfHNlYXJjaHw2Mnx8c3BlYWtlcnxlbnwwfHx8fDE3ODAyMjY2NzJ8MA&ixlib=rb-4.1.0&q=80&w=1080\",\"quoteText\":\"The stars do not argue over who shines brightest — they simply burn, and let the darkness prove their worth.\"},\"pageId\":\"6a1c18e9e8cf1a3d1bd532d9\"}" -o render.png
```

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

```bash
curl -H "Authorization: Bearer YOUR_API_KEY" "https://bannx.com/api/render/6a1c18e9e8cf1a3d1bd532d9?format=png&output=binary&templateId=speaker-quote&tweaks=%7B%22accentColor%22%3A%22%23c084fc%22%2C%22speakerPhoto%22%3A%22https%3A%2F%2Fimages.unsplash.com%2Fphoto-1665397858112-06e206f9e5ae%3Fcrop%3Dentropy%26cs%3Dtinysrgb%26fit%3Dmax%26fm%3Djpg%26ixid%3DM3wyMjY0Nzl8MHwxfHNlYXJjaHw2Mnx8c3BlYWtlcnxlbnwwfHx8fDE3ODAyMjY2NzJ8MA%26ixlib%3Drb-4.1.0%26q%3D80%26w%3D1080%22%2C%22quoteText%22%3A%22The+stars+do+not+argue+over+who+shines+brightest+%E2%80%94+they+simply+burn%2C+and+let+the+darkness+prove+their+worth.%22%7D" -o render.png
```
