Image Convert API - Check Supported Format Conversions
Accepts a url or base64 image and a from/to format pair (jpeg, jpg, png, gif, webp, avif, bmp, tiff, svg). Returns whether the conversion is supported by common tooling plus a note explaining the recommended pipeline. Native pixel transcoding is not performed in edge Workers; this endpoint guides client-side or server-side implementation.
Code examples
curl -X POST https://api.botoi.com/v1/image/convert \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/avatar.png","from":"png","to":"webp"}'When to use this API
Validate conversion feasibility before starting a job
In an image-pipeline tool, query this endpoint to check whether a requested conversion (e.g., avif→png) is realistic before queueing the work. Fails fast on unsupported pairs.
Route conversions to the right worker
Simple conversions (jpeg↔png) run in browser Canvas. Complex ones (heic→jpeg, avif→webp) need a dedicated Sharp worker. Use the supported flag to branch.
Document conversion options in a UI
In an image-upload form, fetch the supported flag for each format pair and gray out unsupported options before the user picks.
Frequently asked questions
Why doesn't this actually convert the image?
Which conversions are marked supported?
Is base64 input validated?
What about heic, avif, or tiff?
Will this feature add real conversion later?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.