Get the social preview image of a page (what shows when a link is shared)

$0.001 per call20 free calls/day via MCP

Get the social preview image of a page (what shows when a link is shared): og:image and twitter:image with declared size and alt text, or the first large page image as a fallback. Fast (under 2 s).

og-imageopen-graphlink-previewthumbnailsocialunfurlimage

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool og_image:

{
  "name": "og_image",
  "arguments": {
    "url": "https://stripe.com"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/og-image \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"url":"https://stripe.com"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.001 and retries automatically. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Public http(s) URL"
    }
  },
  "required": [
    "url"
  ]
}

Example output

{
  "url": "https://stripe.com/",
  "image": "https://images.stripeassets.com/.../og.png",
  "width": "1200",
  "height": "630",
  "alt": null,
  "source": "og:image"
}

Related tools

Screenshot any public web page ($0.01) · Get a page's metadata ($0.002) · Find a website's social media profiles ($0.002) · Get the best favicon/icon for a website ($0.001)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402