# 402utils OG Image Generator

> 402utils OG Image Generator is a paid API for AI agents from 402utils.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Generates a 1200×630 PNG Open Graph / social share image from text using configurable templates, accent colors, and light/dark themes

## Facts

- Endpoint: POST https://402utils.com/v1/og-image
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402utils-og-image-generator-42634e60
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PBMscvSJFjzZyKSGarHj7

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 402utils-og-image-generator-42634e60 -d '<json body>'
```

Example prompt: Generate an Open Graph share image for my article titled 'The Future of AI Agents' with subtitle 'How autonomous systems will reshape work by 2030', using the article template, dark theme, and accent color #6366F1.

## When to prefer this

Choose this endpoint when you need to programmatically generate polished og:image or social card PNGs at scale without spinning up a browser, design tool, or canvas library. It is ideal for blog platforms, SaaS apps, and launch automation where consistent branded sharing images are needed per-post or per-product. Prefer it over screenshot-based approaches when you have structured text content (title + subtitle) and want sub-second rendering at $0.003/image.

## Known failure modes

- Title exceeds 120 characters — returns validation error
- Subtitle exceeds 200 characters — returns validation error
- Invalid hex color format for accent — returns 400 bad request
- Invalid template enum value — returns 400 bad request
- Invalid theme value — returns 400 bad request
- Width or height outside allowed range (320–2400) — returns 400 bad request
- Payment not included or insufficient — returns 402 Payment Required

## How this service works

Generate a polished Open Graph / social share image (PNG) from text — no browser, no design tools. Pick a template (article, product, stat), pass a title and optional subtitle, set your brand accent colour and light/dark theme, and get back a crisp 1200×630 PNG ready for og:image, Twitter cards, blog headers and launch posts. Rendered with Satori + resvg; fast and cheap.

## Output

A crisp 1200×630 PNG image binary ready to be served as an og:image or Twitter card; rendered server-side with Satori and resvg with no browser required

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "theme": {
   "enum": [
    "light",
    "dark"
   ],
   "type": "string",
   "default": "light",
   "description": "Colour theme."
  },
  "title": {
   "type": "string",
   "maxLength": 120,
   "description": "Headline (required, ≤120 chars)."
  },
  "width": {
   "type": "integer",
   "default": 1200,
   "maximum": 2400,
   "minimum": 320
  },
  "accent": {
   "type": "string",
   "description": "Accent colour as hex, e.g. #2FBF71."
  },
  "height": {
   "type": "integer",
   "default": 630,
   "maximum": 2400,
   "minimum": 320
  },
  "subtitle": {
   "type": "string",
   "maxLength": 200,
   "description": "Optional supporting line / label."
  },
  "template": {
   "enum": [
    "article",
    "product",
    "stat"
   ],
   "type": "string",
   "default": "article",
   "description": "Layout style."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "<binary image/png stream, 1200×630>"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/402utils-og-image-generator-42634e60/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402utils.com](https://www.zero.xyz/host/402utils.com/llms.txt)
