# DeepImage — how to use (mcp.ai)

Connect your DeepImage account and use 5 tools for artificial intelligence straight from your AI agent. Connect with your own API key. AI Image Enhancer to Generate & Upscale.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_deepimage?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `deepimage_delete_job`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/deepimage`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/deepimage/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/deepimage/delete/job` — Tool to delete completed job result and remove images from the server. Use when cleaning up processed jobs that are no longer needed.
  - body: { hash: string }
- `POST https://api.mcp.ai/api/deepimage/get/account/info` — Tool to retrieve authenticated user's profile information including credits, username, email, API key, language preference, webhook settings, and billing address. Use when you need to check account de
- `POST https://api.mcp.ai/api/deepimage/get/job/result` — Tool to retrieve processing job result by hash. Use to check job status and get result URL when processing is complete.
  - body: { hash: string }
- `POST https://api.mcp.ai/api/deepimage/process/image/async` — Tool to schedule an image enhancement job and wait for the result. Performs selected enhancement options on an image and returns the result URL if processing completes within 25 seconds; otherwise ret
  - body: { dpi?: integer, fit?: string|object, url: string, width?: integer|string, height?: integer|string, preset?: string, target?: string, padding?: integer|string, quality?: integer, background?: object, min_length?: integer, print_size?: string, enhancements?: string[], output_format?: string }
- `POST https://api.mcp.ai/api/deepimage/process/image/sync` — Tool to process an image synchronously with Deep Image AI. Returns result URL immediately if processing completes in less than 25 seconds, otherwise returns job hash for async polling. Use for image e
  - body: { dpi?: integer, url: string, width?: integer|string, height?: integer|string, preset?: string, target?: string, quality?: integer, background?: object, print_size?: string, enhancements?: string[], max_file_size?: string, output_format?: string, color_parameters?: object, light_parameters?: object, deblur_parameters?: object, denoise_parameters?: object, white_balance_parameters?: object }

## Example prompts
- "What can I do in DeepImage?"
- "Show me a summary of my DeepImage account"

## More
- Page: https://mcp.ai/deepimage
- Agent spec (llms.txt): https://mcp.ai/deepimage/llms.txt
- Postman collection: https://mcp.ai/deepimage/postman.json
