Open Graph (OG) Image Generator Service

This service generates OG:Image compatible screenshots from web pages.

How to Use

Option 1: Direct Redirect (Root Endpoint)

Make a GET request to the root URL (/) with a url query parameter. The service will generate the image (or use a cached version) and redirect your browser directly to the final image URL.

Example:

/

Option 2: API Endpoint (Recommended for programmatic use)

Make a GET request to the /generate endpoint.

Endpoint: GET /generate

Query Parameters:

Response:

*Note: Due to limitations, cached responses might also return 202; check the "status" field.

Example:

/generate?url=

Endpoint: GET /status/{task_id}

Check the status of a generation task using the task_id returned by /generate.

Response:
{ "status": "pending|processing|completed|failed", "image_url": "..." | null, "error_message": "..." | null }