Skip to main content
All error responses use this envelope:
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Technical message"
  }
}

Common Error Codes

HTTPCodeTypical Cause
400VALIDATION_ERRORRequest payload failed validation
400INVALID_PERSONAPersona id is not a valid UUID
400INVALID_STYLEStyle id is not a valid UUID
400INVALID_AMOUNTCredit amount is invalid or negative
400MISSING_IMAGE_URLMissing source image for an image-based thumbnail request
400MISSING_TARGET_IMAGEMissing target image for faceswap
400MISSING_FACE_REFERENCEMissing face reference image for faceswap
400CONTENT_POLICYRequest blocked by content policy
400CANNOT_DELETE_PROCESSINGAttempted to delete a pikzonality while processing
401MISSING_API_KEYMissing X-Api-Key header
401INVALID_API_KEY_FORMATAPI key does not start with pkz_
401INVALID_API_KEYAPI key is unknown
401API_KEY_INACTIVEAPI key is disabled
401API_KEY_DELETEDAPI key was deleted
402INSUFFICIENT_CREDITSBalance is too low for requested operation
403API_ACCESS_NOT_ENABLEDAccount does not have API access
404NOT_FOUNDRequested pikzonality does not exist
404API_USER_NOT_FOUNDAPI user record is missing (API access setup issue)
409NAME_RESERVEDPikzonality name is reserved
409NAME_ALREADY_EXISTSPikzonality name already in use
499CANCELLEDUpstream generation was cancelled
500GENERATION_FAILEDUpstream generation/scoring/title failure
500CONFIGURATION_ERRORMissing or invalid service configuration variable
500CONFIG_ERRORFAL webhook configuration is incomplete
500INVALID_MODELNo configured generation model for the requested route/model
500INVALID_IMAGEImage URL/body is invalid or not an accessible image
500DOWNLOAD_FAILEDFailed to download an input or generated image
500UPLOAD_FAILEDFailed to upload generated output to storage
500DELETE_FAILEDFailed to delete generated storage artifacts
500OUTPAINT_FAILEDFailed while enlarging image with AI outpainting
500TITLE_GENERATION_ERRORTitle generation model failed
500PARSE_ERRORCould not parse title model response
500FAL_ERRORFAL generation/webhook processing failed
503SERVICE_UNDER_MAINTENANCEService maintenance window is active
504GENERATION_TIMEOUTThumbnail generation exceeded timeout
504SCORING_TIMEOUTThumbnail scoring exceeded timeout
504TITLE_TIMEOUTTitle generation exceeded timeout
504FAL_TIMEOUTFAL generation request exceeded timeout
Error codes may expand over time. Use code for programmatic handling and use message for technical details.