Run AI operations on cloud files and export results after credit settlement.
/v1/task/Inputs can reference authorised S3, Google Drive, Dropbox or OneDrive connections; ImageHQ keeps a recoverable source snapshot for processing.
Outputs may include a managed asset and up to four external destinations. Changing any file ID or destination requires a fresh quote.
A failed export is retried from the settled managed result, never by repeating a chargeable AI provider call. Once retries are exhausted the task becomes partially_succeeded.
The source must be PNG, JPEG or WebP no larger than 12 MiB. Provider credentials remain encrypted and scoped to your account and project.
Task API · convert
# Upload a file using /v1/assets/uploads/ first; replace the example asset IDs.
curl -X POST 'https://api.imagehq.io/v1/task/' \
-H "X-API-Key: $IMAGEHQ_API_KEY" \
-H 'Content-Type: application/json' \
-H "Idempotency-Key: $(uuidgen)" \
--data-binary '{"operation":"convert","inputs":[{"type":"asset","asset_id":"asset_12345678"}],"parameters":{"target_format":"webp","quality":85},"outputs":[{"type":"managed"}]}'Illustrative server-side examples. Upload source bytes to a presigned S3 URL first; substitute your ready asset IDs and an enabled model.