LinkedIn Post Image API — Generate Post Images & Article Banners From Any Title
ThumbAPI generates 1200×627 LinkedIn post images and article banners from any title. One REST call returns a production-ready image you can attach to a LinkedIn post or use as the hero of a LinkedIn Article — no design tool, no template, no manual crop.
LinkedIn posts with images get significantly more reach than text-only updates. The bottleneck is making one for every post. ThumbAPI replaces that work with a single HTTP POST: send the title, get back a base64 WebP sized exactly to LinkedIn's in-feed aspect ratio.
Quick start
curl -X POST https://api.thumbapi.dev/v1/generate \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "How we cut our cloud bill 40% in one quarter",
"format": "linkedin",
"category": "business-finance"
}'LinkedIn Image Sizes — Know the Difference
LinkedIn has several image slots with different aspect ratios. Use the wrong one and your image gets cropped or letterboxed:
| Context | Size | Aspect | ThumbAPI format |
|---|---|---|---|
| In-feed post image | 1200×627 | 1.91:1 | linkedin |
| LinkedIn Article hero banner | 1200×627 | 1.91:1 | linkedin |
| Shared link preview (og:image) | 1200×630 | 1.91:1 | blogpost → OG Image API |
| Profile / Company cover banner (not covered here) | 1584×396 | 4:1 | — |
This page covers in-feed post images and LinkedIn Article banners — both use the same 1200×627 1.91:1 layout. For link cards (when someone shares your URL), use format: "blogpost" and add a standard og:image meta tag (see the OG Image API guide). The profile cover banner (1584×396) is a separate use case and not yet a first-class ThumbAPI format.
How It Works
Three steps. No SDK, no polling — the image is returned inline in the same HTTP response.
- POST your title with
format: "linkedin"and optional flags for category, style, photo, or logo overlay. - The layout is selected from the format and a set of title heuristics — the same deterministic pipeline as every other format on ThumbAPI.
- Receive a 1200×627 base64 imagein the JSON response. Save it to disk, upload via LinkedIn's Assets API, or push it into your scheduling tool.
Three style options match LinkedIn content tone:
- Faceless (default, no flags) — clean typography and graphic design, no people. Best for thought-leadership posts, B2B insights, and case studies.
- Personalized (
usePhoto: true) — includes your face or a photo. Pass inline viaphotoImage(max 2MB) or save a Personal Photo asset and just toggle the flag. Good for personal-brand thought leaders and founder accounts. - Branded (
useLogo: true) — your company logo overlaid on the image. Pass vialogoImage(max 1MB) or save a Logo asset. Combine withusePhotofor founder-led brand posts.
Pairing With LinkedIn Category
LinkedIn audiences expect a specific visual tone — usually business/finance, tech/SaaS, or education. The category parameter biases generation toward that niche so your output fits the feed:
business-finance— earnings, leadership, strategy poststech-saas— product launches, engineering posts, industry analysiseducation-tutorial— how-to threads, courses, professional developmentcreative-design— agency portfolios, design case studies
Full category list and behavior is documented at /docs/endpoints/generate.
Posting to LinkedIn Automatically
ThumbAPI returns the image as base64 — decode it and push it to LinkedIn via the official Marketing/Posts API:
- Generate the image: POST to
/v1/generatewithformat: "linkedin". - Decode the base64 from
response.imageinto binary bytes. - Register an upload with LinkedIn's Assets API (
POST /rest/assets?action=registerUpload) — you get back an upload URL and an asset URN. - PUT the binary bytes to the upload URL, then create a UGC post via
POST /rest/postsreferencing the asset URN.
Prefer no-code? Use Zapier, Make.com, or n8n — every one has an official LinkedIn node that accepts a base64 or binary image and posts it automatically.
Who Uses This
Founders & operators
You post 3–5 times a week on LinkedIn. Custom images per post double engagement, but designing them eats your week. One API call generates the image at posting time.
B2B content & demand-gen teams
LinkedIn is the highest-intent B2B channel. Branded image per post, generated programmatically from your content calendar — ThumbAPI plugs in as the image step.
Newsletter & publication operators
Promoting each issue on LinkedIn needs a 1200×627 hero. Pull the title, call ThumbAPI, attach to a scheduled post — all automated.
Social scheduling tools
Building a B2B scheduler or AI writer? Add "auto image" as a feature. One integration covers LinkedIn, X, Instagram, and YouTube formats.
Pricing
Pricing is metered in credits. A standard 1K LinkedIn image costs 10 credits; add-ons (saved photo, saved logo, custom reference set) add +2 each; a 2K (hd) render costs 20 credits instead of 10.
| Plan | Credits / month | Price |
|---|---|---|
| Free | 50 | $0 |
| Creator | 750 | $19/month |
| Pro | 2,500 | $49/month |
| Business | 10,000 | $199/month |
All plans include every format and style. Free-tier output carries a small ThumbAPI watermark — paid plans (Creator and up) return watermark-free images. See full pricing details.
FAQ
What size should LinkedIn post images be?
LinkedIn recommends 1200×627 (1.91:1) for in-feed post images and LinkedIn Article hero banners. ThumbAPI generates exactly this size when you set format: "linkedin".
Is this the same as the LinkedIn cover banner?
No. The personal / company cover banner is 1584×396 (4:1 ratio) and is a separate slot. The LinkedIn Post Image API generates 1200×627 images, which is the size LinkedIn uses for in-feed posts and Article banners.
How is this different from the OG Image API?
OG images are link previews — when someone shares a URL on LinkedIn, the platform pulls og:image and renders it as a 1200×630 card. The LinkedIn Post Image API generates images you attach directly to a LinkedIn post or use as the hero of an Article. Same aspect ratio (1.91:1), different format value (linkedin vs blogpost) and different semantic role.
Can I auto-post the image to LinkedIn?
Yes. Decode the base64 from the response, register an asset via LinkedIn's Assets API, upload the binary, then create a UGC post. About a dozen lines of code, or zero if you go through Zapier, Make.com, or n8n.
Can I add my company logo to the image?
Yes. Set useLogo: true for a logo overlay, usePhoto: true for a personal photo overlay, or both. Save assets once via custom assets, or pass them inline per request.
How long does generation take?
Typical end-to-end latency is 15–25 seconds. The image is returned in the same HTTP response — no polling, no webhook for basic use.
Start generating LinkedIn images via API — free tier, no credit card
Try It for FreeRelated Pages
All formats — YouTube, OG, blog covers, Instagram, X, LinkedIn — in one API.
X (Twitter) Image API1200×675 — X (Twitter) in-post images and link previews.
OG Image API1200×630 — Open Graph link cards for LinkedIn, X, Slack, Discord.
Blog Cover APIHero images for blog posts, newsletters, and article pages.
API DocumentationEndpoint reference, all parameters, authentication, errors.