Use ImageHQ processing tasks from an MCP-compatible AI assistant.
An installable local MCP server is supplied in integrations/mcp. Set IMAGEHQ_API_KEY in its environment and run via stdio.
Discover operations and models, obtain quotes, create tasks with explicit approval, and check or cancel tasks.
The connector passes asset IDs and structured task requests, never file binaries or credentials to signed storage URLs. A hosted OAuth MCP endpoint is not yet available.
Install the stdio MCP server locally and configure a project-scoped API key in your client environment. A hosted OAuth endpoint is not part of this release.
cd integrations/mcp
npm install
IMAGEHQ_API_KEY=your_project_key npm startTask 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.