Image Processing

Transform, resize, or annotate images with simple HTTPS requests.

Remove background (JSON or PNG)

post

Remove the background from a single image. By default the endpoint returns a JSON description from the upstream background-removal worker. To receive raw PNG bytes, set raw=true (query or form field) or set Accept: image/png.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

The source image.

rawbooleanOptional

When true, return PNG bytes instead of JSON.

modelstringOptional

Optional model hint for the upstream worker.

alphaMattebooleanOptional

Return alpha matte if supported by the model.

Responses
chevron-right
200

JSON envelope by default or PNG bytes when raw=true.

post
/v1/transparent

Remove background (PNG bytes)

post

Always returns PNG bytes with the background removed.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

The source image.

modelstringOptional

Optional model hint for the upstream worker.

alphaMattebooleanOptional

Return alpha matte if supported by the model.

Responses
chevron-right
200

PNG image bytes with background removed.

image/png
Responsestring · binary
post
/v1/transparent/png
Return PNG bytes

Convert image

post

Upload a single image and BridgeAPI will change it to the format you need. This is handy when a website only accepts JPEG but you currently have a PNG, or when you want to shrink a photo before placing it in a slide deck. You must include your image file and can optionally control the output format and quality.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

The source image you want to convert.

formatstring · enumOptional

Choose the desired output format. Leave blank to keep the original format.

Possible values:
qualityinteger · min: 1 · max: 100Optional

Optional compression quality (higher means better quality but larger files).

Responses
chevron-right
200

Binary image data in the chosen format.

Responsestring · binary
post
/v1/image/convert
Convert PNG to JPEG

Convert image to target size

post

Compress an image until it lands near a size that you choose. This is perfect for upload forms that only allow files under a certain number of kilobytes. BridgeAPI will try different quality levels automatically while preserving as much visual clarity as possible.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

The original image file you would like to shrink.

formatstringOptional

Desired output format. Leave blank to keep original format.

targetKBintegerOptional

Aim for this many kilobytes (KB). BridgeAPI stops when it gets as close as possible.

targetMBintegerOptional

Alternative target in megabytes (MB). Use either targetKB or targetMB.

tolerancePctinteger · min: 1 · max: 30Optional

How far above the target size is acceptable. A tolerance of 10 means ±10%.

Responses
chevron-right
200

Binary image data that lands close to the requested target size.

Responsestring · binary
post
/v1/image/convert/target
Fit under 200 KB

Text overlay

post

Place a text caption on top of an image. Use this when you want to watermark social-media posts, add a label or version number, or write a short note on screenshots before sharing them.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

The base image you want to label.

textstringOptional

The words that should appear on the image.

Responses
chevron-right
200

Image with the added text overlay.

Responsestring · binary
post
/v1/image/text
Add caption to photo

Watermark overlay

post

Stamp a watermark image onto another image so that screenshots or documents keep your branding. Supply either a watermark file directly or reference a stored branding preset.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

Base image to watermark.

markstring · binaryOptional

Optional watermark graphic. Provide this or brandId.

brandIdstringOptional

Use an existing branding preset instead of uploading mark each time.

Responses
chevron-right
200

Image with the watermark applied.

Responsestring · binary
post
/v1/image/watermark
Watermark with saved preset

Batch convert images

post

Convert many images in one call. Send multiple files and BridgeAPI will process them sequentially so you can download them as a zip or JSON envelope. Ideal for preparing product photos or marketing assets at once.

Authorizations
X-API-KeystringRequired
Body
file[]string · binary[]Optional

Each image you want to convert.

formatsstringOptional

Comma-separated list of desired output formats. If fewer formats than files are provided, the last one is reused.

Example: jpeg,png
Responses
chevron-right
200

Zip archive containing converted images or JSON with Base64 content when requested.

Responsestring · binary
post
/v1/image/convert/batch
Convert multiple images

Strip image metadata

post

Remove EXIF and other metadata from an image. Optionally re-encode to a target format.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

Source image.

formatstring · enumOptionalPossible values:
Responses
chevron-right
200

Binary image with metadata removed, or JSON when requested.

string · binaryOptional
post
/v1/image/strip-metadata

Extract image metadata

post

Return EXIF and decoder metadata as JSON.

Authorizations
X-API-KeystringRequired
Body
filestring · binaryOptional

Source image.

Responses
chevron-right
200

JSON with metadata fields.

application/json
post
/v1/image/metadata

Image options and limits

get

Learn the current plan limits for image endpoints, including max file sizes, supported formats, and quotas.

Authorizations
X-API-KeystringRequired
Responses
chevron-right
200

Plan-based limits, supported formats, and parameter ranges

application/json
get
/v1/image/options
Check image plan limits

Last updated