
Add Camera Tags API
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.
All API requests require a valid API key passed in the Authorization header as a Bearer token.
20 requests per minute
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.
profilefills every field from a preset, and any field you send replaces the preset's value. Withprofile=custom,makeandmodelare 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.
capturedAtis written as given to DateTime, DateTimeOriginal and DateTimeDigitized, with no time zone. Leave it out to write no date.- Location is coordinates only (
latandlng, 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
https://opentools.ca/api/v1/tools/add-camera-tagsRequest Body
Content-Type: multipart/form-data
| Parameter | Type | Required | Description |
|---|---|---|---|
| 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 | Optional | Camera preset that fills every field. "custom" starts empty and needs make and model.Default: iphone-16-pro |
| make | string | Optional | Camera make, e.g. "Apple". ASCII, up to 100 characters. |
| model | string | Optional | Camera model, e.g. "iPhone 16 Pro". ASCII, up to 100 characters. |
| software | string | Optional | Software or firmware version. Set to the model when empty. |
| lensMake | string | Optional | Lens make (LensMake). |
| lensModel | string | Optional | Lens description (LensModel). |
| shutter | string | Optional | Exposure time as a fraction or in seconds, e.g. "1/125" or "0.5". |
| fNumber | number | Optional | Aperture f-number, 0.5 to 128, e.g. 1.78. |
| iso | integer | Optional | ISO speed, 1 to 65535. |
| focalMm | number | Optional | Focal length in mm, 0.1 to 5000. |
| focal35 | integer | Optional | 35mm-equivalent focal length in mm, 1 to 65535. |
| capturedAt | string | Optional | Capture time as YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS, no time zone. Omit to write no date. |
| lat | number | Optional | GPS latitude, -90 to 90. Send together with lng. |
| lng | number | Optional | GPS 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
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.jpgRather use it in your browser? Open the Add Camera Tags