API Documentation

Generate studio-quality product photos programmatically. Authenticate with a Bearer API key, send base64 images, get results back instantly.

Get API keyMachine-readable docs at /api/v1/docs

Base URL

https://mokkagen.com/api/v1

Authentication

All API requests require an API key passed as a Bearer token in the Authorization header. Keys are prefixed with ppg_. Create keys from the API Keys dashboard (requires login).

bashcurl -H "Authorization: Bearer ppg_your_api_key_here" \
  https://mokkagen.com/api/v1/credits

Endpoints

POST/api/v1/generate
POST/api/v1/generate/batch
GET/api/v1/styles
GET/api/v1/credits
GET/api/v1/generations/:id

Credit Costs

Each generation costs credits based on the output resolution. Batch generation uses the same credit costs as single generation.

1K1 credit
2K2 credits
4K3 credits