Skip to content

API Reference Overview

The OG Engine REST API lets you generate images, validate text layout, and check service health from any HTTP client. All endpoints are served over HTTPS.

https://og-engine.com

All endpoint paths are relative to this base URL.

Most endpoints require a Bearer token in the Authorization header:

Terminal window
Authorization: Bearer oge_sk_YOUR_KEY

API keys begin with the prefix oge_sk_. Obtain your key by signing up at og-engine.com — no credit card required for the Free plan.

The /validate and /health endpoints do not require authentication.

For JSON request bodies, always set:

Content-Type: application/json

When uploading a background image with /render, use:

Content-Type: multipart/form-data

(curl sets this automatically when you use -F.)

Render quota is metered monthly. Paid plans reset each billing cycle; free plans reset on the 1st of each month. Each successful /render or /render/batch call consumes quota. /validate calls are free and unlimited.

PlanMonthly RendersBatchWebP
Free500NoNo
Starter10,000NoYes
Pro50,000YesYes
Scale200,000YesYes

Rate limiting headers are present on every authenticated response. See the Errors guide for details.

MethodPathAuthDescription
POST/renderRequiredGenerate a single image
POST/validateOptionalCheck if text fits a layout (free, unlimited)
POST/render/batchRequiredGenerate multiple images (Pro+)
GET/healthNot requiredService status and capabilities
POST/auth/registerNot requiredCreate a free account and get an API key
GET/usageRequiredCurrent quota usage for your API key

All errors return a JSON body:

{
"error": "missing_field",
"message": "The 'format' field is required.",
"details": { "field": "format" },
"docs": "https://og-engine.com/api-reference/errors#missing_field"
}

See the Errors Reference for the complete list of error codes.

The current API is v1. There is no version prefix in the URL — the API version is communicated through breaking-change notices and the changelog. Subscribe to status.og-engine.com for uptime and deprecation notices.