Cloudflare doubles AI Gateway’s custom metadata limit to 10 entries
Cloudflare increased the number of custom metadata entries AI Gateway saves per request from five to 10 on November 30. These entries are tags developers attach to model requests.

Teams can use them to filter logs or as inputs to configured spending limits and routing rules.
The documentation says the gateway keeps the first 10 entries. If their combined size exceeds 12,288 bytes when encoded as UTF-8 JSON, it drops entries from the end until the rest fit. Both limits apply, so a request can lose tags even when it sends fewer than 10.
Cloudflare’s own metadata now sits outside both limits. On a custom domain protected by Cloudflare Access, the gateway can add a verified user identifier separately, without displacing a customer tag. Requests made with a service token or without a valid user identifier do not receive this field.
The extra room lets teams keep more of the context that helps explain who or what is driving usage, such as a project, environment or cost center. The size and ordering rules still matter for teams that use those tags to decide where requests go or how spending is tracked.
Sources and citations
Revision history
Published . No corrections recorded.