# NanoAPI Image Format Converter

> NanoAPI Image Format Converter is a paid API for AI agents from nanoapi.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts an uploaded image file (PNG, JPEG, WebP, AVIF) to a specified target format, billed at $0.01 USDC per call via x402 protocol with no API key required.

## Facts

- Endpoint: POST https://nanoapi.org/image/convert
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nanoapi-image-format-converter-0989299f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ts2d1K5h-TGpFC315Clgb

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 nanoapi-image-format-converter-0989299f -d '<json body>'
```

Example prompt: Convert this PNG image file to WebP format — I just need the converted image file back.

## When to prefer this

Prefer this endpoint when you need a lightweight, no-signup, pay-per-use image format conversion with microtransaction pricing ($0.01 USDC per call) via the x402 protocol, especially in AI agent pipelines that already support crypto micropayments on Base or Solana and need to convert between PNG, JPEG, WebP, and AVIF formats on demand.

## Known failure modes

- Image exceeds 10MB size limit — rejected with error
- Unsupported input format — only PNG, JPEG, WebP, AVIF accepted
- Invalid target format enum value — must be one of png, jpg, webp, avif
- Payment not accepted or insufficient funds via x402 — 402 response returned
- Malformed or corrupted image binary — processing error returned

## How this service works

Pay-per-use APIs for AI agents: image processing and Solana data endpoints. $0.001-$0.01 USDC per call on Base or Solana via x402 protocol. No signup or API keys required.

## Output

Binary image data of the uploaded image converted to the requested target format (png, jpg, webp, or avif). Returned as raw binary in the response body.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "string",
   "format": "binary",
   "description": "Image file (PNG, JPEG, WebP, AVIF, max 10MB)"
  },
  "format": {
   "enum": [
    "png",
    "jpg",
    "webp",
    "avif"
   ],
   "type": "string",
   "description": "Target output format"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "<binary image data â converted to requested format>"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nanoapi-image-format-converter-0989299f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nanoapi.org](https://www.zero.xyz/host/nanoapi.org/llms.txt)
