Skip to main content
POST
Extract GTINs from a product photo via Claude Vision

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
image
file
required

Product photo to scan for GTINs (JPEG, PNG, GIF, or WebP).

Response

OK

Validated GTIN candidates extracted from a product photo.

candidates
string[]
required

Zero or more GTIN candidates that pass the GS1 mod-10 check digit. Strings are zero-padded to 14 digits. Empty when the model returned nothing usable or Bedrock errored — callers should treat empty as 'OCR found no GTIN' rather than a transport failure.

GTIN barcode digits. Accepts 8/12/13/14 digit forms; the resolver and storage layers normalize to GTIN-14 by left-padding with zeros.

Pattern: ^\d{8,14}$
source
enum<string>
required

Backend that produced the candidates. Currently always bedrock; reserved as an enum for future server-side OCR fallbacks.

Available options:
bedrock
Example:

"bedrock"