Skip to main content

Next.js

Use a Route Handler so that the API key does not reach the browser.
For large files, upload to your storage first and call /convert/from-url.

Handling of 202 (auto-async)

If API returns 202, the Route Handler can poll and return the result when ready: