Supported Image Formats
✅ Supported:- JPEG (.jpg, .jpeg)
- PNG (.png)
- GIF (.gif)
- BMP (.bmp)
- WebP (.webp)
- TIFF (.tiff, .tif)
- PDF (.pdf)
Response Time
⏱️ Expected Response Time: 20-30 seconds The API processes images using advanced OCR and data extraction algorithms, which require significant processing time. Plan for timeouts of at least 60 seconds in your client applications.Image Requirements
File Size
- Recommended: Less than 10MB
- Maximum: 50MB
Image Quality
- Resolution: Minimum 300 DPI recommended
- Format: High contrast, well-lit images work best
- Orientation: Document should be properly oriented (not rotated)
Base64 Encoding
Images must be converted to Base64 format before sending. The Base64 string should contain only the encoded image data without any data URI prefixes (e.g., removedata:image/jpeg;base64,
if present).
Error Handling
Common Error Scenarios
Status Code | Error Type | Description |
---|---|---|
400 | Bad Request | Request body must contain an image field with base64 data. |
401 | Unauthorized | Access Denied: API Key is unavailable. |
413 | Payload Too Large | Image file too large |
415 | Unsupported Media Type | Unsupported file format. Only JPEG and PNG files are supported. |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | OpenAI/Gemma API Server Error |
Authorizations
Body
application/json