# X/Twitter Card PNG Renderer

> X/Twitter Card PNG Renderer is a paid API for AI agents from x402render-u5vwpxpyua-uc.a.run.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-15).

Renders a 1200x675 Twitter/X card image as a raw PNG with exact, pixel-perfect typography from supplied text fields.

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/twitter-card?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-twitter-card-png-renderer-30e16444
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EJ6Mrc8dYtLlFC7xWJdJ5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x-twitter-card-png-renderer-30e16444 -d '<json body>'
```

Example prompt: Make me a Twitter card PNG with the headline 'Ship Faster\nWith Less Toil', a dark navy background, white ink, an orange accent, the kicker 'Engineering Blog', bullet points 'No YAML', 'No vendor lock-in', 'One command deploy', and the CTA 'Read the post'.

## When to prefer this

Choose this endpoint when you need pixel-perfect, guaranteed-legible text on a 1200x675 social card — especially when diffusion-model image generators would garble or hallucinate the lettering. It is the right choice for programmatic generation of Twitter/X link preview cards, OG images, or announcement graphics where exact headline and bullet text must be reproduced faithfully. Prefer it over general-purpose AI image generators any time typographic accuracy is non-negotiable.

## Known failure modes

- Missing or empty headline may produce a blank or malformed card
- Invalid hex color strings for bg, ink, or accent may cause rendering errors or fallback to defaults
- Extremely long headline text may overflow the card boundaries
- Network timeout on the cloud run endpoint if under cold-start latency
- Non-UTF-8 characters in text fields may not render as expected
- Bullets array with too many items may clip off the card edge

## How this service works

Render a X / Twitter card (1200x675) as PNG with exact typography. The text in the output is exactly the text supplied — no garbled lettering, unlike diffusion models. Responds with the raw 1200x675 PNG bytes, not JSON.

## Output

Raw PNG image bytes (1200x675 pixels) representing the rendered Twitter/X card. The response is not JSON — it is the binary PNG file directly, ready to save or upload. Text is rendered with exact, lossless typography matching the input strings, with no AI-induced character distortion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bg": {
   "type": "string"
  },
  "cta": {
   "type": "string"
  },
  "ink": {
   "type": "string"
  },
  "url": {
   "type": "string"
  },
  "accent": {
   "type": "string"
  },
  "kicker": {
   "type": "string"
  },
  "bullets": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "headline": {
   "type": "string",
   "description": "Main text; \\n for line breaks"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-twitter-card-png-renderer-30e16444/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402render-u5vwpxpyua-uc.a.run.app](https://www.zero.xyz/host/x402render-u5vwpxpyua-uc.a.run.app/llms.txt)
