Generate OG / social card images for blog posts
언제 쓸까: You just wrote a post and need a 1200×630 social card before publishing.
사전 조건
- EverArt API key — everart.ai → account → API keys. Set as EVERART_API_KEY.
흐름
-
Draft the prompt from the articleMy post is titled 'How we cut p99 latency in half'. Propose 3 image prompts that capture that visually — abstract, not literal, tech-editorial style.✓ 복사됨→ 3 distinct prompt candidates
-
Generate variationsUse EverArt to generate image_count=3 for the prompt I pick. Use the FLUX1.1 model for cleaner composition.✓ 복사됨→ 3 URLs returned
-
Pick and saveI like #2. Download it to ./public/og/<slug>.png via the filesystem MCP.✓ 복사됨→ File saved locally, ready for deploy
결과: A publish-ready OG card in 5 minutes, no design app open.
함정
- Generated images have artifacts (weird text, extra fingers) — Skip prompts that ask for text in the image — let the model do abstraction and overlay your title via CSS/HTML
- Aspect ratio doesn't match 1200×630 — The model outputs 1024×1024 by default — crop/resize via an image tool or accept square