Execute image background removal
The user receives a processed image file with the background removed, generated by the API and returned as a binary response or URL, ready for download or further use.
How it works
The agent identifies the 'remove-bg' tool from the available tools list. It constructs a POST request to the /api/v1/process/remove-bg endpoint, attaching the user's image file and the user's API key in the header. The agent executes the request, handles the binary image response, and provides the result to the user. It verifies the request succeeded by checking for a 200 status code and valid image data.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Remove the background from the attached image using the apiai.me service. Use the remove-bg tool and return the resulting image.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
What you get after clicking Copy curl -X POST https://apiai.me/api/v1/process/remove-bg \ -H "X-API-Key: ak_xxxx" \ -F "image=@photo.png" \ --output result.pngapiai.me Docs — API Pipelines & AI Orchestration Reference