Use sync mode when
- your request can wait for completion
- you are on the server
- you want the simplest API
Use async mode when
- you need to respond quickly
- you want browser progress updates
- you are orchestrating background work
Poll the status endpoint
Fetch final results
Owner-only task details
UseGET /tasks/:id when you need the full task object, including the original request and full result payload.
This endpoint requires your Mynth API key and is not available through the public access token.
SDK polling behavior
TaskAsync.toTask() polls until the task is completed or failed. The SDK:
- polls quickly at first, then more slowly
- times out after five minutes
- retries transient fetch failures
- throws dedicated task and polling error classes