Pixelbin MCP

Remove backgrounds, upscale, edit and generate images and videos, and manage assets in PixelBin storage, through PixelBin's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Create prediction

    Start a PixelBin prediction (e.g. background removal, upscaling, watermark removal, image-to-video, image generation). DO NOT call this without first calling estimate-prediction-cost, presenting the credit cost to the user, getting explicit confirmation, AND passing the returned `confirmation_token` here verbatim — calls without a valid token are rejected server-side. The token is bound to plugin/operation/input; if any of those changes, re-run estimate-prediction-cost. **Image / video / PDF inputs MUST be public HTTPS URLs.** Raw bytes, base64, and data URLs are NOT supported on this tool — they fail across MCP clients due to envelope-size limits. To obtain a URL when the user has a local file: • **If you have shell access (Claude Desktop, Claude Code CLI, Codex CLI, Cursor, or anything that can run `curl`):** call `request-upload-url` first, then ask the user for the absolute local path to their file, run the curl command from `request-upload-url`'s response with that path, and pass the resulting `hostedUrl` into `input` here. This is the primary path. • **If you DO NOT have shell access (claude.ai web, ChatGPT web, or any sandboxed runtime):** ask the user to either (1) upload the file to their PixelBin Console at https://console.pixelbin.io/?redirectTo=storage (deep-links straight to the Storage page) and paste back the resulting URL, or (2) paste a public URL of the image (e.g. a Google Drive / Dropbox / Imgur public link). Then pass that URL into `input` here. Do NOT try to upload from a Python sandbox — sandbox network allowlists block cloud-storage hosts. Required input fields are validated server-side and missing ones return a clear error — ask the user for the value rather than substituting one. For OPTIONAL input fields (e.g. output_resolution, seed, style, aspect_ratio): inspect the operation's schema via list-predictions(include_schema=true), surface the optional fields the user has not specified, and ASK whether they want to set any of those before calling — do not silently fill optional fields without asking. Async: returns immediately with a workflow id and status=ACCEPTED. Poll with get-prediction.

  • Estimate prediction cost

    Estimate the credits a PixelBin prediction will consume BEFORE running it. ALWAYS call this first for any create-prediction request. Returns creditsPerOperation, totalCredits, AND a `confirmation_token` that create-prediction REQUIRES. Present the credit cost to the user; once they confirm, pass `confirmation_token` (verbatim) into create-prediction. The token is bound to plugin/operation/input — if the user changes their mind about any of those, re-run estimate-prediction-cost to get a fresh token. For fixed-cost plugins, 'inputs' may be omitted; for plugins where cost depends on the input (e.g. video duration, page count), pass the same 'inputs' you would pass to create-prediction.input so the token's input-hash matches.

  • Save prediction to storage

    Persist a prediction's output to the user's PixelBin storage so the URL stops expiring after ~30 days. Takes a `prediction_id`, fetches the prediction's result URL(s), and registers each one as a permanent asset via PixelBin's URL ingest. Returns the resulting permanent `cdn.pixelbin.io/v2/...` URLs. Only works for SUCCESS predictions. Use this when the user asks to keep / save / archive a result that an MCP `create-prediction` call has just returned. **Decision rule for upload/persist tools:** - User has a **prediction_id** from an MCP `create-prediction` call → use **this tool**. - User has a **public URL** that didn't come from an MCP prediction (e.g. an upstream model delivery URL, a Drive link, a screenshot URL): use `upload-asset-from-url`. Do NOT ask for credentials or write a script — `upload-asset-from-url` does the same server-side ingest this tool does, just for arbitrary URLs. - User has a **local file on disk** and you have shell access: use `request-upload-url` (presigned PUT + curl).