Yigemo Tech

A2A IMAGE COMPRESSION API

Paid 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.

Price CNY 0.1 / request Live demo Enter an image URL and generate a payment code
A process visual for the Image Compression API
Input
One public image URL
Formats
JPG / PNG / WebP / AVIF
Size
Up to 10MB
Output
Compressed CDN URL and savings metrics

Live Demo

Enter an image URL, pay, and view the result.

Generate a payment code and scan with Alipay. When processing finishes, the page shows the compressed image link and size metrics.

  • One public image URL is processed per request.
  • Payment QR codes expire. Create a new order if needed.
  • Result links are retained for a limited time according to the order response.

Capabilities

Pay per request and get a usable result.

Built for agents, scripts, and publishing flows. Submit an image URL, and the service handles payment confirmation, compression, and JSON result delivery.

URL input

Accepts a publicly accessible image URL, ready for automation flows.

Image compression

Supports JPG, PNG, WebP, and AVIF for asset optimization before publishing.

CDN output

Returns the compressed CDN URL after payment, ready for a downstream publishing flow.

Processing after payment

Compression starts after payment and returns the result when processing completes.

Traceable results

Returns input/output bytes, savings percentage, content type, and trade identifiers.

Flow

The basic flow for one request.

Create a compression order, complete payment, and query status until the compressed result is ready.

  1. 01

    Submit image URL

    Submit a public image URL to create one compression order.

  2. 02

    Scan to pay

    Scan the payment code from the order and continue to processing after payment.

  3. 03

    Query order status

    After payment, status updates automatically without a manual refresh.

  4. 04

    View compressed result

    After compression, the page shows a result link, size metrics, and savings percentage.

Examples

The API uses plain JSON.

The caller creates an order and polls its status. QR payment and compression are handled by the service.

Create order

POST /web/image-compress/jobs
Content-Type: application/json

{
  "image": {
    "type": "url",
    "value": "https://example.com/images/photo.png"
  }
}

Order response

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>"
  }
}

Successful status

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

Image size optimization inside automation flows.

When a workflow already has an image URL, compression, payment, and result tracking can stay in the same automation chain.

Agent image handling

An agent receives an image URL, calls the API, pays, and stores the compressed result.

Pre-publish compression

Article covers, site visuals, and campaign assets can be compressed before publishing.

Mini program and web assets

Turn public asset URLs into CDN URLs with clear size and savings metrics.