# OG Image Generator (og.bip-rep.com)

> OG Image Generator (og.bip-rep.com) is a paid API for AI agents from og.bip-rep.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates a 1200x630 Open Graph / social preview image as a base64 PNG from a title, optional subtitle, category badge, and theme.

## Facts

- Endpoint: POST https://og.bip-rep.com/generate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/og-image-generator-og-bip-rep-com-8d2cd6d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VOT1NP2ptg35yC2exEoc9

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-generator-og-bip-rep-com-8d2cd6d2 -d '<json body>'
```

Example prompt: Generate a social preview image with the title 'How AI Is Changing Healthcare', subtitle 'A deep dive into the 2025 landscape', a badge labeled 'Featured', using the midnight theme — I need a 1200x630 PNG for the og:image tag.

## When to prefer this

Choose this endpoint when you need a server-side-rendered, pixel-perfect 1200x630 social preview image with no external dependencies or browser required. It is ideal for content publishing agents, marketing automation pipelines, and CMS integrations that need to programmatically generate og:image or twitter:card assets at low cost ($0.01/call). Prefer it over full headless-browser screenshot services when you only need a styled text card rather than a full-page render.

## Known failure modes

- Missing required title field returns a validation error
- Invalid theme value (not one of dark/light/midnight/forest/sunset) may return an error or fall back to default
- Overly long title or subtitle text may be truncated or overflow in the rendered image
- Payment failure (insufficient USDC balance) returns a 402 Payment Required response
- Malformed JSON body returns a 400 Bad Request

## How this service works

Generate ready-to-use 1200x630 Open Graph / social preview images from text for content, marketing, and publishing agents. Provide a title plus optional subtitle and category badge, pick a built-in theme (dark, light, midnight, forest, sunset), and receive a base64 PNG sized exactly for og:image and twitter:card. Pure server-side rendering with no external calls and no shell access.

## Output

Returns a JSON object containing the rendered PNG as a base64-encoded string, the image dimensions (1200x630), the theme used, and server-side rendering latency in milliseconds. The base64 PNG is ready to embed directly in an og:image or twitter:card meta tag.

## Example request

```json
{
 "input": {
  "body": {
   "badge": "New",
   "theme": "light",
   "title": "Welcome to Our Service",
   "subtitle": "Discover amazing features and capabilities"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "title"
     ],
     "properties": {
      "title": {
       "type": "string",
       "description": "Main headline text (up to 140 characters)"
      },
      "subtitle": {
       "type": "string",
       "description": "Optional supporting text below the title (up to 200 characters)"
      },
      "badge": {
       "type": "string",
       "description": "Optional small category label rendered above the title (up to 40 characters)"
      },
      "theme": {
       "type": "string",
       "description": "Color theme",
       "enum": [
        "dark",
        "light",
        "midnight",
        "forest",
        "sunset"
       ]
      }
     },
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "width": {
       "type": "integer"
      },
      "height": {
       "type": "integer"
      },
      "theme": {
       "type": "string"
      },
      "png_base64": {
       "type": "string"
      },
      "size_bytes": {
       "type": "integer"
      },
      "latency_ms": {
       "type": "integer"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

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