---
title: "AI Gateway - Send up to 10 custom metadata entries per request — Cloud Changelog"
description: "AI Gateway now saves up to 10 custom metadata entries per request, up from five. You can use the extra entries in log filtering, spend limits and dynamic…"
url: "https://cloudchangelog.com/cloudflare/2026-11-30-custom-metadata-limit"
updated: "2026-11-30"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W49)

November 30, 2026 · Cloudflare

# AI Gateway - Send up to 10 custom metadata entries per request

- [AI Gateway](https://cloudchangelog.com/products/cloudflare/ai-gateway)
- [AI and machine learning](https://cloudchangelog.com/search?q=ai-ml)

## What changed

**AI Gateway custom metadata:** Limit raised from 5 to 10 entries per request; added metadata no longer counts.

AI Gateway now saves up to 10 [custom metadata](https://developers.cloudflare.com/ai-gateway/observability/custom-metadata/) entries per request, up from five. You can use the extra entries in log filtering, spend limits and dynamic routing conditions.

Metadata that AI Gateway adds, such as the Access user ID [`cf.user_id`](https://developers.cloudflare.com/ai-gateway/observability/custom-metadata/#reserved-metadata), no longer counts toward the limit and no longer replaces your last entry.

Custom metadata can be up to 12,288 bytes (12 KB) per request. If it is larger, AI Gateway removes entries from the end until the rest fit.

```
--header 'cf-aig-metadata: {"team": "AI", "user": 12345, "project": "chat", "cost_center": "cc-42", "env": "prod", "region": "us", "tier": "pro"}'
```

For details, refer to [Custom metadata](https://developers.cloudflare.com/ai-gateway/observability/custom-metadata/).

Get the week’s Cloudflare changes in one email

Your email address

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

[See last week’s digest](https://cloudchangelog.com/digests/weekly-2026-W48#provider-cloudflare)

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-11-30-custom-metadata-limit/)

## Related updates

- Aug 25, 2026

  [AI Search - Store larger custom metadata values in AI Search](https://cloudchangelog.com/cloudflare/2026-08-25-larger-custom-metadata-values)
- Sep 9, 2026

  [AI Gateway custom costs support cache tokens](https://cloudchangelog.com/cloudflare/2026-09-09-custom-cache-token-costs)

[All AI Gateway changes](https://cloudchangelog.com/products/cloudflare/ai-gateway)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
