# GS1 AI (02) CONTENT Global Trade Item Number Specification
> Extract GS1 AI (02) CONTENT identifiers for variable-measure trade items and validate the embedded GTIN check digit.

- **Canonical URL:** https://stanzaapi.com/tools/gs1-decoder/ai/02-content
- **Governing Standard:** GS1 General Specifications & AI Syntax (GS1 Global Standards Architecture)
- **Latency:** <1ms Edge
- **Privacy:** In-memory execution only (zero data stored or logged)

## Technical Overview & Governing Rules
AI (02) is the CONTENT identifier used for variable-measure trade items such as meat, produce, and bulk goods where the GTIN alone does not identify the exact quantity.

It carries a 14-digit GTIN without the packaging-level indicator and is paired with AI (37) COUNT or AI (30) VAR COUNT to express the quantity in the same barcode.

The embedded GTIN is validated with the standard GS1 alternating 3x/1x Modulo-10 check digit.

## Specification Matrix
| Property | Value |
| --- | --- |
| AI Code | 02 |
| Data Content | CONTENT (GTIN of variable-measure item) |
| Length | 14 digits (fixed) |
| Paired AIs | AI (37) COUNT, AI (30) VAR COUNT |
| Checksum | GS1 Modulo-10 on the GTIN |

## Standard JSON Response Model
```json
{
  "ai": "02",
  "content": "00012345678905",
  "gtinCheckDigitValid": true
}
```

## Frequently Asked Questions & Edge Cases
### Q: When is AI (02) used instead of AI (01)?
**A:** AI (02) is used for variable-measure trade items such as random-weight meat or produce where the exact quantity varies. It is always accompanied by AI (37) COUNT or AI (30) VAR COUNT, whereas AI (01) identifies a fixed trade item.

### Q: Does AI (02) include a check digit?
**A:** Yes. The 14-digit CONTENT value ends with the standard GS1 Modulo-10 check digit, calculated with alternating weights of 3 and 1.
