Skip to content

Craft Twitter/X Cards with AI

Make the image behind your X link previews from a page URL or a headline, then check how the large summary card frames your headline before you post the link to your followers

O
Oginify@oginify · 2h

New essay is up — link preview below.

Example link card image inside an X post, 1200 × 630
oginify.com
summary_large_image1200×630 · 1.91:1

Built for the X Timeline, Not a Generic Banner

X shows summary_large_image cards from a wide image. A card made from your page, with the headline kept away from the edges, holds up better than a recycled banner.

A Size X Accepts

URL runs output 1200 × 630, which X renders as summary_large_image. Text to OG Image also offers 1200 × 675 when you want a 16:9 frame.

Check It on a Dark Feed

Many people read X in dark mode. Preview your downloaded card against a dark background and avoid thin gray text before you post.

Keep Text Off the Edges

X rounds card corners. Keep the headline and logo away from the edges so nothing important sits where the corners are clipped.

How X-Native Teams Use It

Make the card from the page you are linking to, check it in a preview tool, then post.

For Posts, Replies and Quote-Tweets

X collapses a link without a usable card image into a plain URL — no thumbnail, no domain badge. A card made from the page you are linking to gives the post a real preview.

Use it for a launch post pointing at the homepage, a thread linking back to a long-form article, or a reply that needs the preview to carry the argument. Download the image, add the meta tags to your page yourself, and check the result in a preview tool before posting.

  • Match the Card to the Announcement. Write the headline you'll tweet, pull the same words into the card so the preview and the copy read as one thought.
  • Send Blog Traffic Back Through X. Regenerate the header from any published article so the retweet preview stops falling back to the site favicon.
  • Anchor a Thread with One Cover Image. Build one lead card and reuse it across the thread's outbound links to keep the thread visually coherent.
  • Post the Same Day You Ship. Solo founders drafting release posts can generate the card in one tab while they draft in another — see indie hackers.
Twitter Card example painted by Oginify

Oginify vs. DIY vs. Other Card Builders

Run it yourself with our MIT-licensed Agent Skill, let us paint the card for you, or compare against the generic builders.

Oginify
Managed SaaS
Satori / Resvg DIY
Open source
Online card builders
Generic tools
Output ratio1200 × 630 (1200 × 675 in Text to OG Image)Whatever you templateOften only 1200 × 630
Brand matchAuto-detected from pageDIY with your tokensGeneric templates
Dark-mode safeTested on X darkYou verify itRarely
Edge-mask inset20px built-inManualNo
SetupPaste a URLnpx + fonts + edge runtimeSign up + manual editor
CostFree · $0.99 optional tipFree · MIT licensedFreemium or paid
Best forShip one X card right nowAgents, CI, content at scaleOne-off marketing cards

How to Generate Twitter Card Images With AI

Paste a URL on the home page for a 1200×630 card X renders as summary_large_image, or use Text to OG Image when you want a 1200×675 frame, then add the tags yourself.

  1. Step 1

    Paste Your Page URL

    Paste the page you will tweet into the home-page generator. It reads the page title, description, colors and logo and returns four 1200×630 candidates.

  2. Step 2

    Choose the Size for X

    1200×630 works for summary_large_image. If you want a 1200×675 frame, generate from your headline in Text to OG Image and pick that size.

  3. Step 3

    Ship the Image and Meta Tags

    Download the image, host it on your site, and paste twitter:card plus the og:image tags into your page's head. Check the result with a preview tool before posting.

Frequently Asked Questions

Twitter Card meta tags, the summary_large_image spec and how X unfurls links in 2026.

What are the correct Twitter Card image dimensions?

For summary_large_image, X documents a 2:1 aspect ratio with a minimum of 300×157 and files under 5MB in PNG, JPG, WebP or GIF; 1.91:1 images such as 1200×630 also render as large cards. URL runs in Oginify output 1200×630; Text to OG Image also offers 1200×675.

Do I need Twitter-specific meta tags if I already have Open Graph tags?

No. X falls back to og:title, og:description and og:image when the twitter:* tags are missing. Add twitter:card="summary_large_image" and optionally twitter:site="@handle" for card analytics; skip twitter:image and twitter:title if they duplicate the og:* values.

How long does X cache my Twitter Card preview after I update it?

X caches card data per URL, and an updated image may not show on links that were already shared. Publish the new image at a new file URL and wait for X to re-fetch; we can't force X's cache to clear.

Do Twitter Cards still work now that X removed the headline overlay?

Yes. Since X stopped overlaying the page title on large cards, the image itself has to carry the message, so put the headline in the card. Oginify's URL runs include a text-exact template candidate for that reason.

How is Oginify different from Meta Tags or OpenGraph.xyz previewers?

Meta Tags and OpenGraph.xyz preview cards you already have — they don't create the image. Oginify generates the image and a copy-ready meta block; you add both to your site and can then check the result in any previewer.

Stop Letting X Auto-Crop Your Headline

Paste any URL on the home page, download the card, and add the meta tags to your page so the timeline shows the preview you chose.