Validate Image
Validates an image to check if it is suitable for pattern generation. Useful for pre-flight checks without consuming an API call on full generation.
When to use validate vs generate
Use /validate to:
- Check image quality before showing the user a generation form
- Catch errors early (corrupted files, unsupported formats, low resolution)
- Get recommended settings based on image properties
Request body
Base64-encoded image data. Provide either image or image_url.
URL of the image to validate. Provide either image or image_url.
Example request
Response
Response fields
Interpreting warnings
Common errors