Base URL
| Environment | URL |
|---|---|
| Public Hosted | https://img.ogis.dev |
| Self-Hosted | Your instance URL |
Generate Image
GET /
Generate an Open Graph image
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | No | Main heading text |
description | string | No | Secondary text below title |
subtitle | string | No | Small text above title |
template | string | No | Template name (default: twilight) |
logo | string | No | URL to logo image |
image | string | No | URL to background/hero image |
signature | string | No* | HMAC signature (required if auth enabled) |
Response
Returns a PNG image with dimensions 1200x630 pixels.- Content-Type:
image/png - Status:
200 OK
Example Request
Example with SDK
OpenAPI Specification
The full OpenAPI specification is available at:Health Check
GET /health
Check service health
Response
- Status:
200 OK— Service is healthy - Status:
503 Service Unavailable— Service is not ready
Error Responses
| Status | Description |
|---|---|
400 Bad Request | Invalid parameters |
401 Unauthorized | Missing or invalid signature (when auth enabled) |
413 Payload Too Large | Text exceeds maximum length |
500 Internal Server Error | Image generation failed |
Rate Limiting
The public hosted service atimg.ogis.dev has rate limiting enabled. For high-volume usage, consider self-hosting.