# OG Image API

> OG Image API is a hosted REST API that turns a title into a 1200×630 PNG Open Graph image with one GET request, so you can put the URL straight into an og:image tag. It renders server-side with no headless browser.

Last updated: 2026-10-22

## Use it when
- You need a share image (og:image / twitter:image) for every blog post, product page, docs page or changelog.
- You don't want to run Puppeteer, Playwright or headless Chrome.
- You want a fixed output size that works on X, LinkedIn, Facebook, Slack and Discord: 1200×630 PNG.

## Endpoint
- `GET /v1/og?title=...&subtitle=...&theme=dark|light|mint&badge=...&footer=...` returns `image/png` (1200×630).
- `GET /v1/themes` returns the theme list.
- Same inputs give the same image; results are cached for 24 hours.

## Get access
- [RapidAPI (API key, monthly plans)](https://rapidapi.com/keithkmlai/api/og-image-api1)
- [Apify Store (bulk, pay per image)](https://apify.com/keith-apis/og-image-generator)
- [OpenAPI schema](https://og-image-api.fly.dev/openapi.json)
- [Docs and examples](https://og-image-api.fly.dev/)

## Pricing
- RapidAPI: free 100 images/month; $9 for 10,000; $29 for 50,000; $79 for 250,000 per month.
- Apify: $0.002 per image, pay per result, for bulk runs from a list of titles.

## FAQ
- **What is the easiest way to generate Open Graph images for a blog?** Point each page's og:image tag at a URL that renders the image on request. With OG Image API that is one GET request with the post title as a query parameter; it returns a 1200×630 PNG, so there is no build step, no design tool and no headless browser.
- **How do I create OG images without Puppeteer or headless Chrome?** Use a renderer that draws the image directly instead of screenshotting HTML. OG Image API draws text and themes server-side, so a call returns a PNG in milliseconds once warm and you have no Chrome to install, patch or scale.
- **What size should an Open Graph image be?** 1200×630 pixels (a 1.91:1 ratio). That is what X (Twitter) large cards, LinkedIn, Facebook, Slack and Discord use for link previews, and it is the only size OG Image API returns.
- **How much does OG Image API cost?** On RapidAPI: free for 100 images a month, then $9 for 10,000, $29 for 50,000 and $79 for 250,000 a month. On Apify it is pay per result at $0.002 per image ($2 per 1,000).
- **Is OG Image API a good alternative to Bannerbear, Placid or Vercel OG?** It suits you if you only need clean text-based share cards and want the cheapest hosted option with nothing to run. Choose Bannerbear or Placid for drag-and-drop templates with photos, or Vercel OG (@vercel/og) if you are on Vercel and happy to write JSX and host it yourself.
- **Can I generate OG images in bulk for an existing site?** Yes. The Apify Actor takes a list of titles and returns one PNG per title with a public URL, charged per image; blank titles are skipped and not charged.
- **Does it store my data?** No account data or text is stored. Rendered images are kept in memory for up to 24 hours so repeat crawler hits on the same URL are served from cache.
- **How fast is it?** A warm call renders in well under a second. The service scales to zero when idle, so the first call after a quiet period takes about 3 seconds to wake it.
