Home › Developers › Image API

Free image API

Add image conversion, compression, resizing, background removal and AI generation to your app with simple HTTP calls. Free keys include 100 calls a day.

FreePrivateNo sign-upNo watermark
YOUR APPAPI

Free · No sign-up · No watermark

Loading tool…

Endpoints

EndpointWhat it doesOptions
POST /api/v1/convertConvert to JPG, PNG, WebP, AVIF, GIF or TIFFto, quality, width, height, fit, background
POST /api/v1/resizeResize to exact pixelswidth, height, fit (cover, contain, inside, fill), to
POST /api/v1/compressCompress, optionally under a sizemax_kb, quality, to
POST /api/v1/remove-backgroundRemove background (PNG) or put on a colourbackground (#ffffff)
POST /api/v1/generateAI image from text (JSON body)prompt
GET /api/v1/usageYour usage today

Send the image as multipart field file (or JSON {"url": "https://…"}) and your key in the x-api-key header. The response is the image itself.

Example (JavaScript)

const fd = new FormData();
fd.append('file', fileInput.files[0]);
fd.append('max_kb', '100');
const r = await fetch('https://imgtoany.com/api/v1/compress', {
  method: 'POST', headers: { 'x-api-key': 'YOUR_KEY' }, body: fd,
});
const blob = await r.blob(); // the compressed JPG

Limits and fair use

Questions

Do you keep my images?

No. Images are processed in memory and deleted as soon as the response is sent.

Is HEIC supported?

Use the website for HEIC (it converts in the browser). The API reads JPG, PNG, WebP, AVIF, GIF, TIFF and SVG.

Are my files uploaded?

No. This tool runs inside your browser, so your files are processed on your own device and never sent to our server.

Is it really free?

Yes. imgtoany is free to use, with no sign-up, no watermark and no daily limit.