{"uid":"cap_PBMscvSJFjzZyKSGarHj7","slug":"402utils-og-image-generator-42634e60","name":"402utils OG Image Generator","description":"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.","url":"https://402utils.com/v1/og-image","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json","example":"<binary image/png stream, 1200×630>"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fhAdeZBFrj7Kph78pl1a3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a 1200×630 PNG Open Graph / social share image from text using configurable templates, accent colors, and light/dark themes","exampleAgentPrompt":"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.","exampleUseCases":null,"resultDescription":"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","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:39:52.170Z","isFirstParty":false}