Skip to main content

MCP

Connect a streamable HTTP MCP client to http://localhost:8000/v1/mcp. Add the bearer token to the client headers when IMAGIES_AUTH_TOKEN is set. If you connect by a reverse proxy or container service name, add the Host header the server will receive to IMAGIES_MCP_ALLOWED_HOSTS.

ToolArgumentsResult
transformspec with a staged image ID and edit optionsStaged output image
montagespec with image IDs and grid optionsStaged contact sheet
matchspec with image IDs and text queriesRanked matches by image
detectspec with image IDs and an optional confidence thresholdObject labels, scores, and normalized boxes
generateFull model ID from GET /v1/models, prompt, and optional size such as 512x512One staged output image. Requires generation weights.

Upload inputs and download staged results using the REST API. The spec argument takes the same JSON object as the matching REST endpoint.

For example, call transform with these arguments. Replace the example image ID with the ID returned by the upload.

{
"spec": {
"image_id": "00000000000000000000000000000000",
"width": 640,
"height": 480,
"fit": "contain",
"format": "webp"
}
}