API reference
Eleven HTTP endpoints for generating, editing and processing images — each one also an MCP tool and a CLI command. Bearer-token auth, JSON in, JSON out.
Request basics
- Base URL —
https://api.imagemcpserver.com - Auth —
Authorization: Bearer <IMAGEMCP_API_KEY>, orx-api-key: <key> - Content type —
application/jsonon everyPOST - Images in — an https URL or a base64 data URI, in the
imagefield - Images out — a hosted URL, or base64 when you pass
responseFormat: "b64_json"
Response envelope
Every image endpoint returns the same top-level shape. The tool-specific output lives under result, and the credit fields appear both at the top level and inside result so either is convenient to read.
{
"success": true,
"message": "…",
"deductedCredits": 15,
"userCredits": 2485,
"result": { "…": "tool-specific output" }
}get_user_info is the exception
{ "user": { … } } directly.Account
Generation
/playground/generateModel costGenerate image
Turn a text prompt — optionally guided by reference images — into a hosted image.
MCP tool: generate_image
/playground/generate-transparentModel cost + 8Generate transparent image
Generate an image from a prompt and return it as a cut-out PNG with a transparent background.
MCP tool: generate_transparent_image
Editing
/playground/editModel costEdit image
Change an existing image with natural-language instructions.
MCP tool: edit_image
/playground/remove-background8 creditsRemove background
Strip the background from an image and return a transparent PNG.
MCP tool: remove_background
/playground/upscale15 creditsUpscale image
Increase an image's resolution while sharpening detail.
MCP tool: upscale_image
Vector
Optimisation
/playground/compress1 creditCompress image
Shrink an image's file size with quality control, and report exactly how much was saved.
MCP tool: compress_image
/playground/convert-format1 creditConvert format
Convert an image between PNG, JPEG, WebP and other common formats.
MCP tool: convert_format