# OG Image Card Renderer

> OG Image Card 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-09-13).

Renders a pixel-perfect 1200x630 Open Graph link preview card as a PNG with exact, legible typography — no AI-garbled text.

## Facts

- Endpoint: POST https://x402render-u5vwpxpyua-uc.a.run.app/og-image
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/og-image-card-renderer-8dc39841
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fZJDOMOzhDBj3KXkYE2pp

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 og-image-card-renderer-8dc39841 -d '<json body>'
```

Example prompt: Generate an Open Graph preview card for my blog post — headline 'The Future of AI Agents\nIs Already Here', kicker 'Deep Dive', a CTA of 'Read More', bullets ['Built on x402', 'Agent-native payments', 'No API keys'], dark background (#0f0f0f), white ink, and a purple accent (#7c3aed).

## When to prefer this

Choose this endpoint when you need programmatically generated Open Graph cards with guaranteed typographic accuracy — especially when diffusion-model image generators would garble text. Ideal for automating social preview images for blogs, newsletters, product pages, or any URL that needs a polished og:image without a design tool. Prefer this over AI image generators when exact text rendering is a hard requirement.

## Known failure modes

- Missing or empty headline may produce a blank or malformed card
- Invalid hex color strings may cause a rendering error or fallback to defaults
- Very long headline text may overflow the card layout
- Network timeout on the Cloud Run cold-start if the container hasn't warmed up
- Payment failure (x402 protocol) if USDC balance is insufficient for the $0.03 fee

## How this service works

Render a Open Graph link preview card (1200x630) 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 1200x630 PNG bytes, not JSON.

## Output

Raw PNG image bytes (not JSON) for a 1200x630 pixel Open Graph card with exactly the supplied headline, kicker, CTA, bullets, and color scheme rendered with crisp vector-quality typography — ready to serve as an og:image meta tag asset.

## 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/og-image-card-renderer-8dc39841/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)
