POST /auth/register
Register a new free-tier account with just an email address. For an email that is not yet registered, this returns the API key immediately and sends a copy to that address. For an email that already has an account, it returns 409 account_exists and no key.
POST https://og-engine.com/auth/registerAuthentication: Not required
Request Body
Section titled “Request Body”| Field | Type | Required | Description |
|---|---|---|---|
email |
string | Yes | Your email address |
Example Request
Section titled “Example Request”curl -X POST https://og-engine.com/auth/register \ -H "Content-Type: application/json" \ -d '{"email": "you@example.com"}'Response — 201 Created
Section titled “Response — 201 Created”{ "apiKey": "oge_sk_a1b2c3d4e5f6...", "plan": "free", "limit": 500, "message": "API key also sent to you@example.com"}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
apiKey |
string | Your new API key (prefix oge_sk_) |
plan |
string | Always "free" for new registrations |
limit |
number | Monthly render quota (500 for free plan) |
message |
string | Confirmation that the key was also emailed |
The API key is returned immediately in the response AND sent to the provided email address. The email includes the key, a curl example, and a link to the documentation.
Duplicate Registration — 409 Conflict
Section titled “Duplicate Registration — 409 Conflict”If the email is already registered, this endpoint returns 409 and no API key:
{ "error": "account_exists", "message": "An account already exists for this email. Log in at https://og-engine.com/auth/login to retrieve your API key.", "docs": "https://og-engine.com/api-reference/errors#account_exists"}/auth/register is unauthenticated, so it will never return a key that already exists — otherwise anyone who guessed your email address would receive your credentials. No email is sent on this path either.
To recover an existing key: request a login link at og-engine.com/auth/login (or POST /auth/send-link with your email). The link signs you in to the dashboard, where the key is shown.
Breaking change. Before 2026-10-01 a duplicate registration returned 200 with the existing apiKey. Clients that relied on calling /auth/register to fetch an already-issued key must switch to the login flow above.
Rate Limit
Section titled “Rate Limit”/auth/register accepts 20 requests per hour per IP. Past that it returns 429 rate_limit_exceeded with a retryAfterMs field. This limit is independent of your plan’s render quota.
Error Responses
Section titled “Error Responses”| Status | Code | Cause |
|---|---|---|
| 400 | missing_field |
email not provided |
| 400 | invalid_request |
email is not a valid email address |
| 409 | account_exists |
An account already exists for this email — recover the key by logging in |
| 429 | rate_limit_exceeded |
More than 20 registration attempts from this IP in one hour |
Next Steps
Section titled “Next Steps”- Quick Start — use your new API key to generate your first image
- API Reference Overview — full endpoint documentation
- Pricing — upgrade to a paid plan for higher limits