# Slazzer — how to use (mcp.ai)

Connect your Slazzer account and use 9 tools for images and design straight from your AI agent. Connect with your own API key. Slazzer provides AI-powered image background removal, enhancement, relighting, generation, and catalog image processing APIs.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_slazzer?ms=1787295960000`
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. `slazzer_colorize_old_photo`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/slazzer`
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/slazzer/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/slazzer/colorize/old/photo` — Colorize and restore a black-and-white photo and return the result as a downloadable image. Processing costs one Slazzer credit.
  - body: { render_factor?: integer, source_image_file: object }
- `POST https://api.mcp.ai/api/slazzer/create/catalog/image` — Create a catalog-ready grocery, food, or furniture image using the matching Slazzer scene model.
  - body: { seed?: integer, padding?: string, relighting?: boolean, canvas_size?: string, text_prompt?: string, catalog_type: string, scaling_mode: string, reference_type?: string, background_color?: string, source_image_file: object, background_image_file?: object }
- `POST https://api.mcp.ai/api/slazzer/edit/automobile/image` — Remove or replace an automobile background, optionally add a shadow or overlay or segment its number plate, and return the processed image, mask, or ZIP.
  - body: { crop?: boolean, scale?: string, format?: string, channel?: string, preview?: boolean, position?: string, car_shadow?: boolean, crop_margin?: string, background_color?: string, source_image_url?: string, source_image_file?: object, number_plate_image?: object, source_image_base64?: string, background_image_url?: string, background_image_file?: object, background_image_base64?: string, number_plate_segmentation?: boolean }
- `POST https://api.mcp.ai/api/slazzer/enhance/image/colors` — Improve an image's color, contrast, vibrancy, and visual quality and return the result as a downloadable image. Processing consumes 1 Slazzer credit.
  - body: { source_image_file: object }
- `POST https://api.mcp.ai/api/slazzer/generate/image/shadow` — Apply an AI-generated studio shadow to a PNG or JPEG product image and return the result as a downloadable file. Processing costs 0.20 Slazzer credit.
  - body: { shadow_opacity?: number, background_color?: string, source_image_file: object, light_source_position: string }
- `POST https://api.mcp.ai/api/slazzer/relight/image` — Relight a PNG or JPEG image with a selected brightness multiplier and return the result as a downloadable image. Processing costs one Slazzer credit.
  - body: { brightness_factor?: number, source_image_file: object }
- `POST https://api.mcp.ai/api/slazzer/remove/image/background` — Remove an image background, optionally replace it, and return the processed image or alpha mask as a downloadable file.
  - body: { roi?: string, crop?: boolean, scale?: string, format?: string, channel?: string, preview?: boolean, position?: string, car_shadow?: boolean, crop_margin?: string, background_color?: string, source_image_url?: string, source_image_file?: object, source_image_base64?: string, background_image_url?: string, background_image_file?: object, background_image_base64?: string }
- `POST https://api.mcp.ai/api/slazzer/replace/sky` — Replace an image's sky or background with another image or a solid color and return the processed file. Processing consumes 1 Slazzer credit.
  - body: { background_color?: string, source_image_file: object, background_image_file?: object }
- `POST https://api.mcp.ai/api/slazzer/upscale/image` — Upscale a PNG or JPEG image by 2x or 4x and return the result as a downloadable file.
  - body: { scale?: string, source_image_file: object }

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

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