AI Gateway - Log AI Gateway request metadata without storing payloads
3mo ago
Source
CloudflareAI Gateway - Log AI Gateway request metadata without storing payloadscloudflare.comAI 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 $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 .
You might also wanna read
Proposal for AI-Disclosure HTTP Header to Identify AI-Generated Content
This document proposes a new HTTP response header called 'AI-Disclosure' that would allow websites to disclose when content has been generat
ietf.org·10mo ago
Open-Source Logging Infrastructure for EU AI Act Article 12 Compliance
The article discusses an open-source logging infrastructure solution designed to help companies comply with Article 12 of the EU AI Act, whi
Introducing Agent Gateway ISV ecosystem for security and governance
Google News·2mo ago
Analysis of AI Traffic Patterns Through Nginx Server Logs
The article analyzes nginx server logs to determine whether AI systems like ChatGPT, Claude, Perplexity, Gemini, and Google AI Mode actually
IBM ContextForge MCP Gateway: Unified Protocol Management for AI Applications
IBM's ContextForge MCP Gateway is a comprehensive Model Context Protocol gateway and registry that serves as a central management point for
Context Gateway: Agentic Proxy for AI Workflows with Instant History Compaction
Context Gateway is an agentic proxy tool developed by Compresr, a YC-backed company, that enhances AI agent workflows by providing instant h

Comments
Sign in to join the conversation.
No comments yet. Be the first.