URL input
Accepts a publicly accessible image URL, ready for automation flows.
A2A IMAGE COMPRESSION API
A pay-per-use image compression service for agents, scripts, and content automation. Submit a public image URL and receive a compressed CDN URL with size metrics after payment.
Enter an image URL and generate a payment code
Live Demo
Generate a payment code and scan with Alipay. When processing finishes, the page shows the compressed image link and size metrics.
Scan with Alipay
No refresh needed after payment. The page will update the status automatically.
Compression result
Open compressed imageCapabilities
Built for agents, scripts, and publishing flows. Submit an image URL, and the service handles payment confirmation, compression, and JSON result delivery.
Accepts a publicly accessible image URL, ready for automation flows.
Supports JPG, PNG, WebP, and AVIF for asset optimization before publishing.
Returns the compressed CDN URL after payment, ready for a downstream publishing flow.
Compression starts after payment and returns the result when processing completes.
Returns input/output bytes, savings percentage, content type, and trade identifiers.
Flow
Create a compression order, complete payment, and query status until the compressed result is ready.
Submit a public image URL to create one compression order.
Scan the payment code from the order and continue to processing after payment.
After payment, status updates automatically without a manual refresh.
After compression, the page shows a result link, size metrics, and savings percentage.
Examples
The caller creates an order and polls its status. QR payment and compression are handled by the service.
POST /web/image-compress/jobs
Content-Type: application/json
{
"image": {
"type": "url",
"value": "https://example.com/images/photo.png"
}
} HTTP 200 OK
{
"code": 0,
"success": true,
"data": {
"job_id": "wic_xxx",
"out_trade_no": "WICxxx",
"amount": "0.1",
"currency": "CNY",
"status": "WAITING_PAYMENT",
"qr_code": "<alipay-qr-url>"
}
} GET /web/image-compress/jobs/wic_xxx
{
"code": 0,
"success": true,
"data": {
"status": "SUCCEEDED",
"output_url": "<compressed-image-url>",
"input_bytes": 123456,
"output_bytes": 45678,
"saved_percent": 63,
"content_type": "image/png",
"trade_no": "2026..."
}
} Use Cases
When a workflow already has an image URL, compression, payment, and result tracking can stay in the same automation chain.
An agent receives an image URL, calls the API, pays, and stores the compressed result.
Article covers, site visuals, and campaign assets can be compressed before publishing.
Turn public asset URLs into CDN URLs with clear size and savings metrics.