AI Gateway now supports the cf-aig-collect-log-payload header, which controls whether request and response bodies are stored in logs. By default, this header is set to true and payloads are stored alongside metadata. Set this header to false to skip payload storage while still logging metadata such as token counts, model, provider, status code, cost, and duration.
This is useful when you need usage metrics but do not want to persist sensitive prompt or response data.
curl https://gateway.ai.cloudflare.com/v1/$ACCOUNT_ID/$GATEWAY_ID/openai/chat/completions \ --header "Authorization: Bearer $TOKEN" \ --header 'Content-Type: application/json' \ --header 'cf-aig-collect-log-payload: false' \ --data '{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": "What is the email address and phone number of user123?" } ] }'For more information, refer to Logging.
Source: Cloudflare
Latest Posts
- Amazon SageMaker Unified Studio adds notebook import/export and developer acceleration features

- Amazon Quick Enables Sparklines for Inline Trend Visualization in Tables

- Amazon Kinesis Video Streams (KVS) now supports WebRTC in AWS GovCloud (US) Regions

- AWS IoT Greengrass component SDK for C, C++, and Rust applications






![(Updated) Retirement of the Semi-Annual Enterprise Channel option in the Office Customization Tool [MC1249427] 7 (Updated) Retirement of the Semi-Annual Enterprise Channel option in the Office Customization Tool [MC1249427]](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-olly-3761504-96x96.webp)