render_card
Render a typographic card — headline, versus (two columns), list, stat (one big number) or quote — as a PNG or JPEG at 1920x1080 or 2560x1440. Deterministic layout, no AI model: the text you send is exactly what appears, which no image generator can promise. Built for video title cards and slides, thumbnails, quote cards and social posts. Lists and comparisons REVEAL one beat at a time (revealed:N / show_right:false) — render N states and cut between them, and the text never shifts. Optional theme (hex colours). Text coverage: Latin, Greek and Cyrillic (DejaVu Sans) with Noto Sans fallback for Arabic, Indic, Thai, Chinese, Japanese and Korean; emoji render as single-colour silhouettes in the text colour, not in full colour. Returns { url, width, height, format, mime, expires_in_seconds } — the url is a signed download valid 2 h; fetch it, the image is not inlined. Hard caps: 3 lines x 40 chars, 6 items x 40 chars — a spec over a cap is refused BEFORE payment. 5 sats per card. Pay per request with Bitcoin Lightning — no API key or signup needed. Requires create_payment with toolName='render_card'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sub | No | stat: small line above the number, e.g. a year | |
| left | No | versus: left value (up to 22 chars) | |
| size | No | Output size (default 1920x1080) | 1920x1080 |
| text | No | quote: the quoted words (up to 30 chars) | |
| items | No | list: 1-6 items, each up to 40 chars; the last revealed item is drawn in the accent colour | |
| label | No | stat: caption under the number (up to 60 chars) | |
| lines | No | headline: 1-3 lines, each up to 40 characters | |
| right | No | versus: right value, drawn in the accent colour | |
| theme | No | Optional hex colours: background, foreground, accent, muted (default: near-black ground, Bitcoin-orange accent) | |
| title | No | list: small caps title (up to 40 chars) | |
| value | No | stat: the big number (up to 12 chars), e.g. '34 Md $' | |
| format | No | Output format (default png) | png |
| source | No | quote: attribution line (up to 60 chars) | |
| variant | Yes | Card layout | |
| revealed | No | list: how many items are shown (default all) — render 1..N for a beat-by-beat reveal | |
| paymentId | Yes | Valid payment ID (must be paid) | |
| left_label | No | versus: small label over the left value (up to 28 chars) | |
| show_right | No | versus: false renders the left column only (first beat of a two-state reveal) | |
| accent_line | No | headline: index of the line drawn in the accent colour | |
| right_label | No | versus: small label over the right value |