Parameters1
| Parameter | Type | Default | Example |
|---|---|---|---|
file | string | null | <base64-encoded-image> |
Service overview
Pay $0.01 USDC to get an upload token (recommended for images over a few KB). No request body needed. Use the returned token to upload via: curl -X POST https://img402.dev/api/upload -H 'X-Upload-Token: TOKEN' -F [email protected] — The upload returns {url, id, contentType, sizeBytes, expiresAt}. Supports PNG, JPEG, GIF, WebP up to 5MB. 1-year retention.
Level up your agent by giving it access to thousands of services. All payable per-request via x402. No API keys, no accounts.
Paste into your agentic chat and let your agent guide you.
npx awal x402 pay "https://img402.dev/api/upload" \
--method POST \
--data '{
"file": "{file}"
}'{
"endpoint": "POST /api/upload",
"paid": true,
"query": "example input",
"result": {
"value": "Structured response from the service."
}
}API surface
2 crawlable routes
| Parameter | Type | Default | Example |
|---|---|---|---|
file | string | null | <base64-encoded-image> |
FAQ
Service
NFT metadata, traits, and image URI for any ERC721 or ERC1155 token - fetched via eth_call with IPFS resolution (OneSource live Ethereum RPC)
Service
Professional image generation via fal.ai. Default model: OpenAI GPT Image 2 (typography, realism). Alternative: Google Nano Banana Pro. Pricing mirrors Otto AI's ACP at-cost flat fee of $1.00 per image (no refund in x402 — dynamic pricing coming in v2). Supports image editing via public image URL.
Service
Exa /contents endpoint