CCloud Releases
Home
Following

Cloud Releases

Service catalogues and updates come from each provider's public product listing and announcements.

Explore

  • Home
  • Latest updates
  • Following

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Use

Providers

  • Amazon Web Services
  • Microsoft Azure
  • Google Cloud
  • Cloudflare

Not affiliated with any cloud provider. Product names and logos belong to their owners.

  1. Providers
  2. ›Cloudflare
  3. ›AI Gateway
  4. ›Update

Feature•Mar 17, 2026

Log AI Gateway request metadata without storing payloads

AI GatewayCloudflare · Developer platform

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.

Read the original announcement↗

More from AI Gateway

All AI Gateway updates →
  1. Standardize provider credential error responses in AI Gateway

    AI Gateway's REST API now returns consistent responses when an AI provider rejects credentials. The change applies to POST /ai/run.

    AI Gateway•Feature•Oct 6, 2026
  2. Introducing Web Search API

    Web Search API is now available in beta. Web Search API lets your AI agents and applications search the Internet and ground their responses in live information, instead of guessing URLs or relying on a model's training cutoff.

    AI Gateway•Feature•Oct 2, 2026
  3. Pay for AI inference with Machine Payments

    AI Gateway now supports Machine Payments in beta. With Machine Payments, clients can use the x402 protocol to pay for eligible inference requests directly from a stablecoin wallet instead of maintaining a prepaid credit balance.

    AI Gateway•Feature•Sep 30, 2026
  4. Identify model overuse and potential savings with User Insights

    AI Gateway User Insights now gives you more context about the traffic flowing through your gateway. It shows what users and agents are doing with AI, and where a selected model may be more capable than a task requires.

    AI Gateway•Feature•Sep 29, 2026
  5. Prevent Unified Billing fallback for BYOK third-party providers

    AI Gateway can now require credentials for third-party provider requests. Credentials must accompany the request or be stored on the gateway. This setting prevents fallback to Unified Billing with Cloudflare-managed credentials.

    AI Gateway•Feature•Sep 14, 2026