API keys
Create API keys in the dashboard. Raw keys use themak_ prefix and are shown only once at creation time.
Send them as Bearer tokens:
POST /image/generatePOST /image/uploadPOST /image/rateGET /tasks/:id
GET /tasks/:id/status and GET /tasks/:id/result also accept API keys, but are typically called with a Public Access Token.
Spending limits
Each API key supports an optional spending limit, enforced when a task is created. The estimated cost is reserved against the limit before generation begins and rolled back if the task fails to enqueue. The dashboard supports these periods:dayweekmonth
Public Access Tokens
A task-scoped Public Access Token (PAT) is a short-lived JWT with thepat_ prefix. Mynth returns one in the generate response when access.pat.enabled is true (the default):
GET /tasks/:id/statusGET /tasks/:id/result
Concurrency
Mynth does not impose API concurrency limits. If your application needs to create several tasks at once, you can issue requests in parallel and manage the coordination on your side.Owner-only task access
GET /tasks/:id is owner-only. It requires the original account’s API key and returns the full task object.