Practical limits
Image generation
countmaximum:100- prompt length maximum:
2056characters - negative prompt length maximum:
2056characters - custom webhook endpoints per request:
5 - metadata maximum size:
2 KB
Content rating
- custom levels minimum:
2 - custom levels maximum:
7 - custom level
valuemax length:24 - custom level
descriptionmax length:150
Uploads
- maximum files per request:
10 - maximum file size:
10 MB - accepted formats: JPEG, PNG, WEBP
Concurrency
Mynth does not enforce API concurrency limits. If you want to create many independent tasks, you can send requests in parallel.Common failure cases
Unauthorized
HTTP401.
You used:
- a missing or invalid API key
- a Public Access Token on an owner-only endpoint
- a task token for the wrong task
Validation errors
HTTP400.
The request shape does not match what Mynth expects, or the selected model does not support a requested capability such as input images.
Insufficient balance
HTTP402.
Task creation reserves cost before generation begins. Requests fail when the account does not have enough available balance.
Not found
HTTP404.
The task ID does not exist, or you do not have access to it.
Task failed
The task was accepted but did not complete successfully. This is not an HTTP error. Polling will eventually returnstatus: "failed", and webhook delivery will emit task.image.generate.failed.
SDK-specific errors
The JavaScript SDK can also throw:MynthAPIError- wraps all API errors with status code and response bodyTaskAsyncTimeoutError-toTask()polled for five minutes without completionTaskAsyncUnauthorizedError- the Public Access Token was rejectedTaskAsyncFetchError- a network fetch failed during pollingTaskAsyncTaskFetchError- the task detail fetch failedTaskAsyncTaskFailedError- the task completed withstatus: "failed"
MynthAPIError to inspect the underlying API error: