Upload an image with payment and get a public URL
Upload an image with payment and get a public URL. Accepts multipart form-data (field 'image') or JSON {"file": "<base64>"}. 10MB max, permanent hosting (no expiration). PNG, JPEG, GIF, WebP.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
274 msmedian answer time
$0.01listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://img402.dev/api/upload
| Category | Image and media |
|---|---|
| Provider host | img402.dev |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 5 from 3 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.01 | 274 ms |
Example input (from the provider)
{
"body": {
"file": "<base64-encoded-image>"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"file": {
"description": "Base64-encoded image data",
"type": "string"
}
},
"required": [
"file"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"contentType": {
"description": "Detected MIME type",
"type": "string"
},
"expiresAt": {
"description": "ISO 8601 expiration timestamp, or null for permanent images",
"type": [
"string",
"null"
]
},
"id": {
"description": "Unique image ID",
"type": "string"
},
"sizeBytes": {
"description": "File size in bytes",
"type": "number"
},
"url": {
"description": "Public CDN URL of the hosted image",
"type": "string"
}
},
"required": [
"url",
"id",
"contentType",
"sizeBytes",
"expiresAt"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}