Upload any file and get a temporary public URL instantly. Up to 10MB, configurable TTL from 1 hour to 7 days. Perfect for AI agents that need to share files.
Send a base64-encoded file and receive a publicly accessible URL in return. Files are hosted on iteratools.com and automatically deleted after the specified TTL (default 24 hours, max 7 days). Supports any file type: images, PDFs, text files, JSONs, CSVs, and more. Ideal for AI agents that generate files and need to share them via URL.
| Parameter | Type | Description |
|---|---|---|
| file | string (base64) | Required. Base64-encoded file content (or data URL) |
| filename | string | Required. Name of the file (e.g. image.png) |
| content_type | string | Required. MIME type (e.g. image/png, application/pdf) |
| ttl_hours | integer | Optional. Hours until expiry (1-168, default 24) |
| Endpoint | POST /storage/upload |
| Price | $0.002 / upload |
| Max file size | 10MB |
| TTL range | 1 hour to 168 hours (7 days) |
| Auth | Bearer token or x402 micropayment |
| Base URL | https://api.iteratools.com |