When a task reaches a terminal state (Documentation Index
Fetch the complete documentation index at: https://docs.maxapi.io/llms.txt
Use this file to discover all available pages before exploring further.
SUCCESS / FAILURE / TIMEOUT / CANCELLED), if a callBackUrl was specified at submission time, the system will send a POST request to that URL.
Callback Format
data field is identical in format to the query endpoint response:
SUCCESS
FAILURE (content moderation)
result Field Structure
On SUCCESS:| Field | Type | Description |
|---|---|---|
type | string | Result type: image or video |
urls | string[] | List of resource URLs. Images may have multiple entries; videos typically have 1. URLs expire after 7 days |
result is null.
failure_reason
Always present in the response.null when no specific actionable reason applies.
Values:
| Value | Meaning | Recommended Action |
|---|---|---|
CONTENT_MODERATION | Prompt or image rejected due to real human faces, copyrighted characters or public figures, or NSFW content | Notify the user; do not retry |
INVALID_PARAMETERS | Submitted parameters are invalid | Fix request parameters; do not retry until corrected |
INSUFFICIENT_POINTS | Account has insufficient credits | Prompt user to recharge; do not retry |
null | No specific actionable reason (transient error, timeout, etc.) | May retry if appropriate |