Add Camera Tags

Add Camera Tags API

Design

Write camera EXIF onto a JPEG in your browser: pick an iPhone, Pixel, Canon, Sony or custom profile, set the capture time, and download a tagged file.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

20 requests per minute

Endpoints

1 endpoint available

Overview

Write camera EXIF into an image and get it back as a JPEG: Make, Model, Software, lens, shutter, aperture, ISO, focal length, and optionally the capture time and GPS. Start from a camera profile and override any field. Send the image as multipart form data in the file field. The response body is the tagged JPEG.

Notes

  • A JPEG keeps its pixels: only the EXIF segment is replaced, so the image is not re-compressed. Other EXIF fields already in the file (for example an existing date or GPS, and the orientation tag) are kept, except MakerNote and UserComment, which are removed.
  • Typical values for exposure program, metering mode, flash, white balance and colour space are written too, as on the web page.
  • PNG, WebP, GIF (first frame), AVIF, TIFF and SVG are re-encoded as JPEG at quality 92 first, with the rotation applied and transparent areas filled black, the same as the web page. HEIC returns 415.
  • Limits: 20 MB and 50 megapixels.
  • profile fills every field from a preset, and any field you send replaces the preset's value. With profile=custom, make and model are required and the other fields start at 35 mm, f/2.8, 1/125 and ISO 200.
  • Software is set to the model when it is empty.
  • capturedAt is written as given to DateTime, DateTimeOriginal and DateTimeDigitized, with no time zone. Leave it out to write no date.
  • Location is coordinates only (lat and lng, WGS-84). The web page's place-name lookup is not available in the API. Leave both out to keep any GPS the JPEG already has.
  • Text fields must be printable ASCII, up to 100 characters.
  • The tags do not prove where or with what a photo was taken, and no C2PA credential is added.

Profiles

iphone-16-pro (default), iphone-15-pro, pixel-9-pro-xl, pixel-9-pro, pixel-9, pixel-8-pro, pixel-8, galaxy-s24-ultra, canon-r5, sony-a7iv, nikon-z8, fujifilm-xt5, custom.

Endpoints

POST
https://opentools.ca/api/v1/tools/add-camera-tags
Write camera EXIF into an image and return it as a JPEG

Request Body

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
file
file
Required
The image, up to 20 MB and 50 megapixels. JPEGs keep their pixels; other formats are re-encoded as JPEG.
profile
string
Enum: iphone-16-pro, iphone-15-pro, pixel-9-pro-xl, pixel-9-pro, pixel-9, pixel-8-pro, pixel-8, galaxy-s24-ultra, canon-r5, sony-a7iv, nikon-z8, fujifilm-xt5, custom
OptionalCamera preset that fills every field. "custom" starts empty and needs make and model.Default: iphone-16-pro
make
string
OptionalCamera make, e.g. "Apple". ASCII, up to 100 characters.
model
string
OptionalCamera model, e.g. "iPhone 16 Pro". ASCII, up to 100 characters.
software
string
OptionalSoftware or firmware version. Set to the model when empty.
lensMake
string
OptionalLens make (LensMake).
lensModel
string
OptionalLens description (LensModel).
shutter
string
OptionalExposure time as a fraction or in seconds, e.g. "1/125" or "0.5".
fNumber
number
OptionalAperture f-number, 0.5 to 128, e.g. 1.78.
iso
integer
OptionalISO speed, 1 to 65535.
focalMm
number
OptionalFocal length in mm, 0.1 to 5000.
focal35
integer
Optional35mm-equivalent focal length in mm, 1 to 65535.
capturedAt
string
OptionalCapture time as YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, no time zone. Omit to write no date.
lat
number
OptionalGPS latitude, -90 to 90. Send together with lng.
lng
number
OptionalGPS longitude, -180 to 180. Send together with lat.

Response Example

HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Disposition: attachment; filename="IMG_0001-camera.jpg"

<binary JPEG data>

Error Codes

400
Bad Request - Missing file, invalid field, no make/model for a custom profile, only one of lat/lng, or EXIF that could not be written
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key is inactive or expired, or the request IP is not allowed
413
Payload Too Large - File over 20 MB or image over 50 megapixels
415
Unsupported Media Type - Not an image the server can read (HEIC, BMP and ICO are not supported)
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error

Code Examples

curl -X POST https://opentools.ca/api/v1/tools/add-camera-tags \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@IMG_0001.jpg" \
  -F "profile=pixel-9-pro" \
  -F "capturedAt=2026-05-14T09:30" \
  -F "lat=43.6532" \
  -F "lng=-79.3832" \
  -o IMG_0001-camera.jpg

Ready to get started?

Create an API key to start using the Add Camera Tags API.

Rather use it in your browser? Open the Add Camera Tags