# NFTItem PNG Upload & Mint

> NFTItem PNG Upload & Mint is a paid API for AI agents from api.nftitem.io, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Uploads a PNG image to the blockchain and mints an NFT linking to that image data, for a fixed fee of $0.10 USDC.

## Facts

- Endpoint: POST https://api.nftitem.io/upload
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-nftitem-io-d313ae72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1xEshJtyZV5NqNRinKoAk

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 api-nftitem-io-d313ae72 -d '<json body>'
```

Example prompt: Mint this PNG as an NFT on the blockchain — here's the base64-encoded image content — and give me back the token ID so I can retrieve it later.

## When to prefer this

Choose this endpoint when you need to permanently and verifiably store a PNG image on-chain as an NFT with a retrievable URL. It is ideal for scenarios requiring immutable, blockchain-backed image storage without managing your own smart contracts or NFT infrastructure. Best suited for single-image uploads where a fixed $0.10 USDC cost per mint is acceptable.

## Known failure modes

- Payment not received or insufficient USDC — upload rejected
- Invalid or missing PNG content — request fails with validation error
- Content type mismatch — server rejects non-PNG content
- NFT not yet available immediately after upload — GET /nfts/{tokenId} may return 404 for a few minutes
- Blockchain congestion — minting may be delayed beyond typical window
- Malformed base64 content — causes processing error

## How this service works

POST /upload — PNG upload to blockchain. Pay USDC on Base to upload a PNG directly to the blockchain and mint an NFT that links to the PNG data. Fixed fee of $0.10 USDC. Retrievable via GET api.nftitem.io/nfts/{tokenId} with response { url : string } — availability may take a few minutes.

## Output

After payment of $0.10 USDC, the endpoint initiates an on-chain upload and NFT mint. The caller receives a token ID. The minted NFT's image URL becomes accessible via GET /nfts/{tokenId} returning { url: string } after a few minutes of processing time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "content"
   ],
   "properties": {
    "content": {
     "type": "string"
    },
    "contentType": {
     "type": "string"
    }
   }
  },
  "command": {
   "enum": [
    "UPLOAD"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-nftitem-io-d313ae72/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.nftitem.io](https://www.zero.xyz/host/api.nftitem.io/llms.txt)
