Developer hub · REST API v1

Pick your language.
Make your first request.

Seven API tools, a single bearer key, and complete examples in ten languages. Every endpoint returns the finished file directly.

Quickstart

  1. Create a free account. Your free API subscription activates immediately.
  2. In the dashboard, create an API key. Copy it once and keep it in an environment variable.
  3. Save this sample image as photo.png in your working directory.
  4. Select an endpoint and your language below, download its example, and run it.

Base URL: https://dropandconvert.com. Use Authorization: Bearer YOUR_API_KEY. These are direct HTTP examples, with no Drop & Convert SDK to install.

Set your key

# macOS / Linux shell
export DROPANDCONVERT_API_KEY='YOUR_API_KEY'

# PowerShell 7
$env:DROPANDCONVERT_API_KEY = 'YOUR_API_KEY'

Keep keys in backend environment variables. Do not commit them or embed them in frontend code. Keys expire after one year. Revoke an exposed key immediately in the dashboard. Canceling a free subscription disables API requests; free reactivation restores them. Paid plans are managed through Stripe billing in the dashboard. See API pricing and allowances.

Endpoint reference

All endpoints accept multipart/form-data with repeated files parts. Do not manually set Content-Type when your HTTP library creates the multipart boundary.

Convert images

POST /api/v1/convert

Convert between 15 image formats. Response: application/zip.

format is required. Choose one of the 15 supported image formats below.

Open web tool →

Compress & resize

POST /api/v1/optimize

Re-encode and resize without enlarging. Response: application/zip.

Default output: WebP at quality 80. Choose quality and maxWidth for your workflow. A smaller output file is not guaranteed.

Open web tool →

Images to PDF

POST /api/v1/images-to-pdf

Combine images in upload order, one image per page. Response: application/pdf.

One JPEG image per PDF page, fitted to A4 bounds, in upload order. Output is image-only, without searchable text. The format field is ignored.

Open web tool →

Crop images

POST /api/v1/crop

Extract a pixel rectangle from each image. Response: application/zip.

Required integer fields: x and y (0–19999), width and height (1–20000). Coordinates begin at the top left after automatic orientation correction. Every rectangle must fit the corresponding image; an out-of-bounds rectangle returns 422. Crop occurs before optional resizing. Default output: PNG.

Open web tool →

Rotate & mirror

POST /api/v1/rotate

Rotate clockwise and optionally mirror horizontally or vertically. Response: application/zip.

rotation: 0, 90, 180, or 270 degrees clockwise (default 90). flip: none, horizontal, or vertical (default none). Mirroring happens after rotation. Set rotation=0 to mirror only. Default output: PNG.

Open web tool →

Grayscale images

POST /api/v1/grayscale

Turn color images into monochrome images. Response: application/zip.

No extra fields required. Default output: PNG. Optional format, quality, and maxWidth are supported.

Open web tool →

Redact images

POST /api/v1/redact

Replace one rectangle with opaque black pixels in JPG, PNG or single-page TIFF images. PNG output, original dimensions, no automatic detection. Response: application/zip.

Required integer fields: x, y (0-19999), width, height (1-20000). Coordinates start at the top left after orientation correction. The same rectangle must fit every image. Only JPG/JPEG, static PNG and single-page TIFF are accepted. Output is PNG only (format=png); maxWidth must be 0 or omitted. Masked pixels are replaced with opaque black; metadata is stripped. No automatic sensitive-data detection. Review each result before sharing. Unsupported or multipage inputs and out-of-bounds rectangles return 422 with no partial download.

Open web tool →

Common fields

FieldAccepted valuesDefault
files1–25 image file parts; requiredNone
formatjpg, png, webp, avif, bmp, tiff, gif, ico, tga, ppm, pgm, pbm, pam, pcx, qoiRequired for convert; see each endpoint
qualityInteger 40–95; affects lossy encoders80
maxWidth0 for original width, or integer 100–4096; never enlarges0

Live format catalog. JPEG/JPG and TIF/TIFF aliases count as one format each.

Code examples in your language

Loading examples…

Batch conversions

Repeat the files field to upload multiple images. The same operation and settings apply to every image. ZIP entries use numbered names such as image-01.png; PDF pages follow upload order. A failed image fails the whole batch. No partial ZIP is returned.

curl --fail-with-body --max-time 110 \
  https://dropandconvert.com/api/v1/convert \
  -H "Authorization: Bearer $DROPANDCONVERT_API_KEY" \
  -F '[email protected]' -F '[email protected]' \
  -F 'format=webp' --output images.zip

In Node.js, call form.append('files', blob, filename) for each file. In Python, add more tuples to the files list. In C#, repeat form.Add(new StreamContent(file), "files", filename).

Postman

  1. Import the collection and environment linked above.
  2. Select the Drop & Convert environment and set apiKey to your own key; keep the value local and secret.
  3. Open a request, choose a local image in the files form-data field, and send.
  4. Use Save Response to File to save the ZIP or PDF. Add repeated files rows for batches.

The downloads contain no credentials. OpenAPI can also be imported into clients that support multipart file uploads.

Errors, timeouts, and retries

Processing is synchronous. Use a timeout of at least 110 seconds. Conversion errors generally return JSON; rate-limit and infrastructure responses may have an empty or non-JSON body. Always check the HTTP status before saving the response as a file.

{ "error": "A readable explanation of the problem." }
400Invalid or missing fields; correct the request.
401Missing, expired, or revoked bearer key.
403Subscription inactive; check your dashboard.
408Upload or processing timed out; try a smaller batch.
413Upload exceeds limits.
422Invalid image, unsupported animation, or crop outside image bounds.
429Worker busy, global rate limited, or monthly allowance reached.
500Processing failure; try fewer files or retry later.
503Service or database temporarily unavailable.

For worker or global rate limits (429) and temporary failures (503), retry after 2, 4, then 8 seconds with a small random delay, up to three retries. A monthly allowance 429 requires a plan change or the next UTC month. Do not retry other 4xx errors without correcting the request. There is no idempotency-key feature; a retry is another request and appears separately in history. Do not assume a Retry-After header is present.

Limits and privacy

25 images per batch, 10 MB per image, 50 MB total, and 20 megapixels per image. One shared batch at a time and 30 conversion requests per minute globally, across web tools and API users. The processing deadline is 90 seconds. This free release has no uptime guarantee.

Images are automatically oriented, metadata is removed, and resizing preserves proportions. GIF, TIFF and ICO inputs use only the first frame/page/icon. Animated PNG/WebP are rejected. Formats without alpha use a white background. GIF output is static and palette-limited; ICO fits within 256 pixels. Files are returned directly and temporary files are deleted after the response; interrupted jobs are cleaned up after 15–20 minutes while the service runs. Request history retains tool, timestamp, duration and status for 90 days, without uploaded contents or filenames. Privacy details.

Office conversion, PDF input/editing, OCR, webhooks, remote-URL uploads, and official language SDKs are not available in this release.