← Back to directory

Upload an image with payment and get a public URL. Accepts multipart form-data (...

https://img402.dev/api/upload

Overview

Upload an image with payment and get a public URL. Accepts multipart form-data (field 'image') or JSON {"file": "<base64>"}. 5MB max, 1-year retention. PNG, JPEG, GIF, WebP.

Protocol x402
Price $0.01
Payment Asset USD Coin
Payment Network Base
Category media/images
Provider img402
Source bazaar
Indexed 2026-03-02 01:01:28

Health

Status healthy
Latency (p50) 321ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-03-23 09:24:40
Last Healthy 2026-03-23 09:24:40
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator

Input Schema

{ "body": { "file": "<base64-encoded-image>" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "contentType": "image/png", "expiresAt": "2027-02-08T00:00:00.000Z", "id": "abc123", "sizeBytes": 12345, "url": "https://i.img402.dev/abc123.png" }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-03-23 09:24:40 healthy 402 240ms
2026-03-23 08:31:18 healthy 402 315ms
2026-03-23 07:37:29 healthy 402 248ms
2026-03-23 06:48:43 healthy 402 321ms
2026-03-23 05:42:41 healthy 402 339ms
2026-03-23 04:44:18 healthy 402 242ms
2026-03-23 03:36:50 healthy 402 225ms
2026-03-23 02:31:32 healthy 402 530ms
2026-03-23 01:52:00 healthy 402 320ms
2026-03-23 00:42:29 healthy 402 244ms
2026-03-22 23:40:26 healthy 402 225ms
2026-03-22 22:40:19 healthy 402 392ms
2026-03-22 21:39:16 healthy 402 335ms
2026-03-22 20:30:20 healthy 402 340ms
2026-03-22 19:59:26 healthy 402 402ms
2026-03-22 19:00:22 healthy 402 316ms
2026-03-22 17:56:00 healthy 402 341ms
2026-03-22 16:55:25 healthy 402 272ms
2026-03-22 15:45:38 healthy 402 339ms
2026-03-22 14:59:07 healthy 402 369ms