BiGapiguides
POST /v1/image → 200 image/* · 1¢

Image processing API — resize, crop, convert, watermark

One call, several steps in order: resize, crop, rotate, convert (JPEG/PNG/WebP/AVIF/TIFF), quality, text or image watermark, keep or strip metadata. Sharp under the hood.

Quick start (curl)

Get a key first – no signup: curl -X POST https://api.bigapi.dev/v1/keys (100 free operations, 7 days).

curl -X POST https://api.bigapi.dev/v1/image -H 'Authorization: Bearer $KEY' -F 'file=@photo.jpg' -F 'ops={"resize":{"width":1200},"format":"webp","quality":80}' -o photo.webp

Give it to your agent (MCP)

Add BiGapi to Claude Desktop, Cursor or any MCP client – the server fetches its own key on first use:

{
  "mcpServers": {
    "bigapi": { "command": "npx", "args": ["-y", "@bigapi/mcp"] }
  }
}

Then simply ask: “Resize this image to 1200px wide, convert to WebP and strip metadata.” – the model calls the image_process tool.

When your agent needs this

Parameters

ParamTypeRequiredNotes
filefileyesSource image.
opsjsonyesOperations object: {resize:{width,height,fit}, crop:{left,top,width,height}, rotate, format, quality, palette, watermark:{text,position,opacity}, keepMetadata}
watermarkfilenoOptional second file used as image watermark.

Pricing

per operation
First 100 operations free (per key, 7 days) · failed calls (4xx/5xx) cost $0 · repeats with Idempotency-Key are free · prepaid credit from $5, never expires.

Every response carries X-BigAPI-Cost, X-BigAPI-Balance and X-BigAPI-Free-Ops – your agent can budget on its own.

Errors your agent can handle

StatusMeaningAgent action
401missing/invalid keyPOST /v1/keys for a fresh one
402credit exhaustedshow the upgrade_url from the response to a human
413file too largesplit the input (limit 100 MB)
422conversion failedcheck the detail field – costs $0
429rate limitedwait retry_after seconds

FAQ

In which order do operations run?

As given in the ops object: resize → crop → rotate → format/quality → watermark.

Is EXIF removed?

Yes, by default – set keepMetadata=true to preserve EXIF/ICC.

Text and image watermarks?

Both: watermark.text or a second uploaded file, with gravity and opacity.