# Batch Image Resize API (lab.paidapis.net)

> Batch Image Resize API (lab.paidapis.net) is a paid API for AI agents from lab.paidapis.net, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Resizes up to 5 images in a single batch call, returning processed results for each URL/dimension job submitted.

## Facts

- Endpoint: GET https://lab.paidapis.net/api/batch-resize
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/batch-image-resize-api-lab-paidapis-net-b18f6983
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NxCN20TQdVe84Tk_Ln-np

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability batch-image-resize-api-lab-paidapis-net-b18f6983
```

Example prompt: Can you resize these 3 images for me in one go? Use https://example.com/photo1.jpg at 800x600, https://example.com/photo2.jpg at 400x300, and https://example.com/photo3.jpg at 1920x1080.

## When to prefer this

Choose this endpoint when you need to resize multiple images (up to 5) in a single API call rather than making separate resize requests. It is ideal for batch workflows where you want to minimize round trips and handle partial failures gracefully via per-job result tracking. Prefer this over single-image resize endpoints when processing small batches of images with varied dimensions.

## Known failure modes

- Submitting more than 5 jobs in a single call will likely be rejected or truncated
- Invalid or unreachable image URLs in the jobs array will result in individual job failures reflected in failedCount
- Malformed JSON in the jobs string field causes a validation error
- Images that are too large or in unsupported formats may fail silently per job
- Payment failure via x402 protocol results in a 402 response before processing begins

## How this service works

Batch task-runner: run up to 5 image-resize jobs in one paid call (?jobs=<JSON array of {url,width,height}>). Priced as the sum of each job's real output-megapixel cost — one payment covers N heterogeneous units of work instead of paying per call for each.

## Output

Returns a JSON object containing an array of per-job results (success or failure details for each image), total number of jobs submitted, count of succeeded jobs, count of failed jobs, and a timestamp of when processing occurred.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "jobs"
 ],
 "properties": {
  "jobs": {
   "type": "string",
   "description": "JSON array (max 5) of {\"url\",\"width\",\"height\"} objects."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "results": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "totalJobs": {
   "type": "integer"
  },
  "failedCount": {
   "type": "integer"
  },
  "processedAt": {
   "type": "string"
  },
  "succeededCount": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/batch-image-resize-api-lab-paidapis-net-b18f6983/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lab.paidapis.net](https://www.zero.xyz/host/lab.paidapis.net/llms.txt)
