How to give an AI agent image and video tools over MCP, billed per use
Add a remote MCP server that exposes media tools and bills per task. With NPPU you add one MCP URL and an API key to your client (Claude Code, Claude Desktop, Cursor, Codex or any Streamable HTTP client), and the agent can search the tool catalog, submit a task and hand you the result.
There's no subscription and no prepaid balance: each task is quoted first, and you pay for it through a link or QR code the agent shows you. Failed or timed-out tasks are refunded in full automatically.
Set it up in three steps
Create an API key
Sign in to the workbench and create a key.
Add the MCP server to your client
Endpoint:
https://nppu.ai/mcp. Transport: Streamable HTTP. Auth:Authorization: Bearer <API key>(OAuth is not supported yet). Config for each client is on the agent setup page.Ask in plain language
For example: "Use NPPU to put this product photo on a white background: https://example.com/shoe.jpg". The agent finds the right tool, tells you the price and asks you to pay.
claude mcp add --transport http nppu https://nppu.ai/mcp \
--header "Authorization: Bearer YOUR_API_KEY"{
"mcpServers": {
"nppu": {
"url": "https://nppu.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}The MCP tools
| Tool | What it does |
|---|---|
search_tools | Find tools in the catalog, with their input requirements and prices. |
get_tool | Read one tool's input format and price. |
create_task | Submit a task. Returns right away while the server checks the input and calculates the price. |
wait_task | Follow a task: first the quote with a payment link and QR code, then the result. |
get_upload_url | Get an upload URL for a local file, then pass the returned URL to create_task. |
pay_order | Get the payment link and QR code of an unpaid order again. |
list_orders | List recent orders, for example to recover a lost order ID. |
list_entitlements, use_entitlement | Find tasks that were paid for but never started, and run them without paying again. |
The catalog lives on the server, so new tools show up through search_tools without reinstalling anything.
How a task is billed
create_taskreturnspreparingwhile the server checks the input and measures it (for example, the length of a video).wait_taskreturnsawaiting_paymentwith the price, a payment link and a QR code, and the agent shows them to you. If the input can't be processed, the status isrejectedand nothing is charged.- You pay by card through Stripe (USD) or with WeChat Pay (CNY). The agent keeps calling
wait_task. - On
done, the agent receives the result files. Onfailed, the payment is refunded automatically. - If the payment window passes, the status is
expired. The agent checkslist_ordersbefore placing a new order, so you don't pay twice.
What's available and what it costs
Every tool in the catalog, from product photos and watermark removal to AI image and video generation (with model choice), lip sync and video translation. Prices come from the live tool catalog and are also on the Pricing page.
| Tool | Billing | USD (Stripe) | CNY (WeChat Pay) |
|---|---|---|---|
| White Background Product ImageProduct Images | Billed per image |
|
|
| E-commerce Image SetProduct Images | Billed per image
|
|
|
| AI Image GeneratorAI Generation | Billed per image |
|
|
| Event Poster MakerImage Editing | Billed per image |
|
|
| Image Layer SplitterImage Editing | Billed by number of layers |
|
|
| Image Watermark RemoverImage Editing | Billed per image |
|
|
| Image 4K UpscaleImage Editing | Billed per image |
|
|
| AI Video GeneratorAI Generation | Billed per second of video
|
|
|
| AI Video ExtenderAI Generation | Billed per second of video
|
|
|
| AI Video EditorAI Generation | Billed per second of video
|
|
|
| Product Link to Video AdProduct Images | Billed per video |
|
|
| Talking Photo (Lip Sync)AI Generation | Billed per second of video
|
|
|
| Video Character SwapVideo Editing | Billed per second of video
|
|
|
| Motion TransferAI Generation | Billed per second of video
|
|
|
| Add Subtitles to VideoVideo Editing | Billed per minute of video, rounded up |
|
|
| Video TranslationTranslation | Billed per second of video
|
|
|
| Video 4K UpscaleVideo Editing | Billed per second of video
|
|
|
| Video Watermark & Subtitle RemoverVideo Editing | Billed per second of video
|
|
|
Per-task tools vs. calling model APIs directly
Both are valid; they solve different problems.
| Per-task MCP tools (NPPU) | Model APIs billed by usage | |
|---|---|---|
| What the agent calls | A finished task, such as "white background" or "translate this video" | A model endpoint; you build the pipeline around it |
| When the price is known | Before paying, per task | After the call, based on usage |
| Who pays | A person, per order | Usually a card or balance on the developer account |
| If a task fails | Refunded automatically | Depends on the provider's terms |
| Best for | Agents that occasionally need a media task done for a person | Developers building automated pipelines at scale |
FAQ
Which MCP clients work?
Any client that supports remote MCP over Streamable HTTP, such as Claude Code, Claude Desktop (through mcp-remote), Cursor and Codex. Setup for each one is on the agent setup page.
Can my agent pay automatically?
No. You pay for each order through the link or QR code the agent shows you. Even with a leaked API key, nobody can spend your money.
How do I pass a local file?
The agent calls get_upload_url, uploads the file with the returned curl command, and passes the returned URL to create_task.
Where can I see the orders my agent placed?
Under Orders in the workbench, the same as web orders. You can download results and track refunds there.
Is OAuth supported?
Not yet. Send your API key in the Authorization: Bearer header.
Do I need to update anything when new tools are added?
No. The catalog lives on the server, so search_tools always returns the latest tools and prices.
Related tools
Pay only for a finished result
No subscription, no prepaid balance. Failed or timed-out tasks are refunded in full automatically.