This service generates OG:Image compatible screenshots from web pages.
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:
/
Make a GET request to the /generate
endpoint.
Endpoint: GET /generate
Query Parameters:
https://example.com
). Must be URL encoded.true
to ignore cache and regenerate. Defaults to false.Response:
202 Accepted
* with JSON: { "status": "cached", "image_url": "..." }
202 Accepted
with JSON:{ "status": "processing", "task_id": "...", "check_status_url": "..." }
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 }