Images Videos Audio Pricing Docs View as Markdown (Agent) Get started
Human Agent

The simplest image
hosting API.

POST a file with no account or API key and get a CDN URL back. Anonymous uploads last about 30 days; add a free project key for managed images without that fixed expiration. Free-plan retention applies.

No key to start Zero egress fees Idempotent uploads OpenAPI 3.1 spec

Upload in one call

The curl example needs no account or key and returns a temporary CDN URL. For permanent managed images, add a free project key as shown in the Node and Python examples.

# No account or API key required
curl -X POST https://api.pixelvault.dev/v1/images \
  -F "file=@photo.jpg"

# Temporary URL, kept for about 30 days
# { "data": { "url": "https://img.pixelvault.dev/anonymous/anon_xyz.jpg", "temporary": true } }

What a good image hosting API needs

Before you pick one — or build your own on top of S3 — check for these.

Auth

Start keyless, add real authentication

Try the API without provisioning anything. For production, use scoped per-project keys instead of a shared account-wide token.

Cost

Zero egress fees

Serving is where naive S3 setups get expensive. A global CDN with zero egress (via Cloudflare R2) means bandwidth doesn't bill you by surprise.

Retries

Idempotent uploads

Networks fail; a retried upload shouldn't create duplicates or error out. Retry-safe by design.

Management

Management, not just upload

List, fetch, and delete images by ID — the operations you need once real data accumulates.

Contract

An OpenAPI spec

A machine-readable contract means predictable error codes and easy client generation — and lets AI agents consume the API directly.

Formats

Broad format support

JPEG, PNG, GIF, WebP, AVIF, SVG, and download-only PDF.

Predictable errors

A good API fails clearly: 401 for a bad key, 413 when a file is over your plan's size cap, 400 with invalid_file for an unsupported type. No guessing, no HTML error pages — just JSON your code (or your agent) can branch on. PixelVault publishes the full contract as an OpenAPI 3.1 spec.

Going deeper: the image upload API covers file, URL and batch uploads with limits, and the image CDN API covers resizing and format conversion through the URL.

Wiring it into a coding agent? See image hosting for AI agents. Want to try it without code first? Use the free image-to-URL tool or PDF-to-URL tool. Comparing options? Here are the best Cloudinary alternatives and how PixelVault stacks up against ImgBB.

Not sure which route your agent should take? Compare the four ways an agent can upload an image.

Image hosting API FAQ

Is there a free image hosting API?

Yes. Upload without an account or API key and get a temporary CDN URL kept for about 30 days. For production, the free tier includes 200 MB storage, 500 uploads/month, and 1 GB bandwidth — no credit card and no trial expiry.

What's the simplest way to upload an image and get a URL?

POST the file to /v1/images with no API key. The response contains a CDN URL in one call. Anonymous uploads are kept for about 30 days; add a free project API key for managed images without that fixed expiration. Free-plan retention still applies.

What file formats does the upload API support?

JPEG, PNG, GIF, WebP, AVIF, SVG and PDF. Images are served with the correct Content-Type; PDFs are forced downloads and do not support image transforms.

How is this different from Cloudinary or imgbb?

ImgBB exposes an upload-only API with its key in the query string and no documented delete endpoint; Cloudinary is a full media-processing platform with SDKs and an $89/month floor. PixelVault supports keyless trials plus per-project keys, image management, zero egress fees, and a free tier.

Can AI agents use the API without a human?

Yes. An agent can upload without an account in one call, or register with an email for a project API key. The service is discoverable via llms.txt, an OpenAPI 3.1 spec, and a remote MCP server.

Upload your first image in 30 seconds

Free tier: 200 MB storage, 500 uploads/month, no credit card. Paid plans start at $9/month.