Skip to content

[Feature]: Auto-Generate Dynamic OpenGraph (OG) Images for Model Pages #54

@nitishchaubeyy

Description

@nitishchaubeyy

Description

When users share an AIAtlas model page on platforms like Twitter, LinkedIn, or Discord, it currently shows a generic site preview. We should use Next.js's native ImageResponse to generate dynamic OpenGraph images on the fly that display the specific model's name, provider, and key stats.

Expected Behavior

  1. OG Image Route: Create an opengraph-image.tsx file inside the src/app/models/[slug]/ directory.
  2. Dynamic Data: Fetch the model data based on the slug inside this file.
  3. Image Design: Use standard HTML/CSS (supported by satori) to design a visually appealing card containing the ProviderLogo, Model Name, and perhaps a quick stat (like "Context Window: 128k").
  4. Metadata Update: Ensure the model page's generateMetadata function correctly points to this new dynamic image.

Constraints

  • Rely strictly on the native @vercel/og functionality provided by Next.js 14. Do not install heavy image generation libraries like Puppeteer.

Labels

enhancement, next.js, growth, v2-roadmap

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions