OpenAI · Dreamlike
1200 × 630 PNG
Free OG image generator for AI agents—turn any page title into a 1200 × 630 PNG and ready-to-use Open Graph metadata.
Copy this to your agent
It will guide setup, collect your image details, and generate the PNG.
Prefer to generate it yourself? OG image generator
Showcase
Explore examples across four templates.
OpenAI · Dreamlike
1200 × 630 PNG
OpenAI · Blue
1200 × 630 PNG
Linear · Ocean
1200 × 630 PNG
Linear · Sunset
1200 × 630 PNG
Editorial · Product
1200 × 630 PNG
Aurora · Meadow
1200 × 630 PNG
Image details
Choose a template, theme, and title size.
Free OG Generator for AI Agents
The downloaded PNG uses the same content and layout.
How it works
The agent handles content decisions. OG Image API handles exact rendering and a stable output your site can publish.
Choose editorial, a color gradient, an OpenAI gradient, or Aurora Background with a safe title size.
Add editorial fields when needed, then render a deterministic 1200 × 630 PNG.
Use the returned URL and metadata in Next.js, a CMS, or an agent workflow.
API reference
POST returns an agent-friendly JSON object by default. Choose editorial, gradient-title, openai-gradient, or aurora-background, then authenticate with the same X-API-KEY created in Account Settings.
titlestring · requiredArticle or page title, up to 110 characters
templateenum · optionaleditorial (default), gradient-title, openai-gradient, or aurora-background
themeenum · optionalocean, sunset, violet, midnight, or emerald
backgroundenum · optionaldreamlike (default), blue, floral, or sky
auroraenum · optionalmeadow (default), ember, tide, or generated
colorshex,hex,hex · optionalThree aurora colors, used when aurora is generated
titleSizeenum · optionalsmall, medium (default), large, or custom
fontSizeinteger · optionalCustom title size from 32 through 96 pixels
descriptionstring · optionalSupporting copy, up to 180 characters
siteNamestring · optionalOptional brand name; empty values are hidden
categorystring · optionalOptional label; empty values are hidden
accenthex · optionalSix-digit brand color such as #2563eb
curl https://twittershots.com/api/og-image \
-H "Content-Type: application/json" \
-H "X-API-KEY: $TWITTERSHOTS_API_KEY" \
-d '{
"title": "Free OG Generator for AI Agents",
"template": "openai-gradient",
"background": "dreamlike",
"titleSize": "custom",
"fontSize": 58
}'{
"imageUrl": "https://twittershots.com/api/og-image?title=...",
"width": 1200,
"height": 630,
"contentType": "image/png",
"alt": "Free OG Generator for AI Agents",
"template": "openai-gradient",
"background": "dreamlike",
"titleSize": "custom",
"fontSize": 58,
"metadata": {
"openGraph": { "images": ["https://..."] },
"twitter": { "card": "summary_large_image", "images": ["https://..."] }
}
}Built from a real workflow
“Our agent can now finish the article and its social preview in the same task—without reusing the wrong image or changing the headline.”
TwitterShots publishing workflow
The use case behind OG Image API
Start in the browser, then connect the same endpoint to your content agent when the workflow is ready.