Custom Product Printing APIs for AI Agents

Send an image or AI prompt to create print-on-demand shirts and mugs. Pay per item with x402 micropayments — no signup or API keys needed.

1API
2endpoints
$15.00–$20.00per call
1mo agoupdated
Pay per callNo API keysUSDC · Base
Get started with AgentCash →
npx agentcash try https://stablemerch.dev
StableMerch API
stablemerch.dev

How It Works

Submit a POST request with your image to the shirt or mug endpoint. The API processes your design and returns a custom product. Base pricing starts at $15 for mugs and $20 for shirts.

Authentication is handled through the x402 payment protocol. Each request is paid directly from your AgentCash wallet at the time of the call, so there are no monthly subscriptions or upfront commitments.

Pricing and Referral Commissions

Each endpoint has a base price: $20 for shirts and $15 for mugs. You can optionally add a referral commission on top of the base price, which gets passed through when the product is created.

This commission model lets you build storefronts or agent workflows where you earn on each item generated through your integration. The commission amount is flexible and added to the base cost.

Supported Endpoints

POST /api/shirt accepts your image and produces a custom shirt. Pricing ranges from $20 to $40 depending on commission configuration.

POST /api/mug accepts your image and produces a custom mug. Pricing ranges from $15 to $25 depending on commission configuration.

Integration with AI Agents

Because the API uses x402 payment protocol, autonomous AI agents can call these endpoints directly without pre-provisioned API keys. An agent with an AgentCash wallet can generate custom products on behalf of users in real time.

Combine this API with an image generation step to go from text prompt to physical product in a single automated pipeline.

Use cases

AI-powered storefront

Let users describe a design in natural language, generate an image with an AI model, then pass it to this API to create a purchasable shirt or mug — all in one automated flow.

Event and conference swag on demand

Build a tool that generates branded mugs or shirts for event attendees by submitting logos or custom artwork programmatically through the API.

Personalized gift service

Create an application where users upload photos and receive custom-printed mugs or shirts as gifts, with your referral commission built into the price.

Agent-driven product creation

Deploy an autonomous AI agent that monitors requests from a chat interface, generates designs, and creates physical products without any human intervention.

Endpoints

POST
/api/shirt
Custom shirt from your image. Base price: $20. Commission (if provided) is added on top.
$20.00-40.00 USD
POST
/api/mug
Custom mug from your image. Base price: $15. Commission (if provided) is added on top.
$15.00-25.00 USD

Frequently asked questions

What authentication method does this API use?

All requests are authenticated via the x402 payment protocol. No API key registration is required. You pay per request directly from your AgentCash wallet at the time of the call.

How much does each product cost?

Shirts have a base price of $20 and mugs have a base price of $15. If you include an optional referral commission, it is added on top, bringing shirts up to $40 and mugs up to $25 depending on the commission amount you set.

What input format does the API accept?

Both endpoints accept images via POST request. You supply your own image file, and the API applies it to the product. Check the endpoint specification for supported image formats and size limits.

How do referral commissions work?

When making a request, you can optionally specify a commission amount. This amount is added on top of the base product price. It allows developers and agents to earn revenue on each product created through their integration.

Can AI agents call this API autonomously?

Yes. Because payment is handled via x402 and the MPP protocol, any agent with an AgentCash wallet can make requests without pre-configured credentials. This makes it well-suited for fully autonomous workflows.

What protocols does this API support?

The API supports both the x402 payment protocol and the MPP (micropayment protocol). Both allow pay-per-request billing without traditional API key authentication.

This page is compiled from live OpenAPI specs published by each API provider. Content last reviewed Apr 20, 2026 by the AgentCash team. How we build these pages.