Documentation Index
Fetch the complete documentation index at: https://docs.pixcraft.es/llms.txt
Use this file to discover all available pages before exploring further.
Validate Image
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
| Field | Type | Description |
|---|---|---|
valid | boolean | Whether the image can be processed |
image_info | object | Image metadata (dimensions, format, size) |
warnings | array | Non-blocking warnings about image quality |
recommended_settings | object | Suggested parameters for best results |
Interpreting warnings
| Warning | Meaning |
|---|---|
| ”Image resolution is very low” | Image is under 50px in either dimension. Pattern will be very coarse. |
| ”Image has low resolution” | Image is under 200px. Large patterns may lack detail. |
Common errors
| Code | Description |
|---|---|
MISSING_REQUIRED_FIELD | Neither image nor image_url was provided |
INVALID_IMAGE | Image could not be decoded or format is unsupported |
IMAGE_TOO_LARGE | Image exceeds 10MB |