Understanding API Responses
The ByByBG API returns standard HTTP status codes to indicate successful requests, failures, upload restrictions, and rate limits.
Common HTTP Status Codes
Upload Restrictions
- Maximum supported image size: 10MB.
- Supported formats: PNG, JPG, JPEG, and WEBP.
- Transparent output format: PNG.
- API requests may be rate limited.
- Large uploads may increase processing time.
Common Problems & Solutions
Invalid API Key
Verify your API key and request headers before sending requests.
Large Image
Compress images before uploading to reduce file size and improve speed.
Network Error
Check internet connection and backend server availability.
Rate Limit
Reduce request frequency or upgrade your API plan.
Production Recommendations
- Use retry mechanisms for failed requests.
- Display user-friendly error messages.
- Validate uploads before sending files.
- Compress large images before upload.
- Cache successful responses when possible.
- Monitor API usage and request limits.
Example JSON Error Response
{
"success": false,
"error": "Invalid API key"
}
Documentation Complete
You are now ready to integrate the ByByBG API into websites, mobile apps, SaaS platforms, and automation systems.