Submit an image
curl -X POST https://opt.iniapp.com/api/v1/jobs \
-H "Authorization: Bearer $OPT_API_KEY" \
-F "file=@product.jpg" \
-F "preset=product-photo"Returns HTTP 202 with a job ID. Optional fields: preset, format, width or resize_percent, quality, target_kb, preserve_transparency, and progressive_jpeg. Without a preset, original format and dimensions are retained.
Check and download
GET /api/v1/jobs/{id}
GET /api/v1/jobs/{id}/downloadPoll until status is completed or failed. The download request needs the same API key. Store the output in your product before it expires.