Skip to main content
Use this page as the exact lookup reference for Observe request headers.

Required headers

HeaderRequiredPurpose
x-inference-providerYesTells the proxy which upstream provider to call, such as openai or anthropic
x-inference-observability-api-keyYesLinks the request to the correct Inference.net project

Optional headers

HeaderPurpose
x-inference-environmentTag requests by environment, such as production, staging, or development
x-inference-task-idGroup related requests under a logical workflow
x-inference-provider-urlOverride the upstream base URL for an OpenAI-compatible provider
x-inference-metadata-*Attach arbitrary metadata fields to the request

Legacy compatibility

Inference.net still accepts x-inference-project-api-key for backwards compatibility. New integrations should use x-inference-observability-api-key.

Metadata prefix

Any header that starts with x-inference-metadata- becomes a metadata field on the captured request. Examples:
  • x-inference-metadata-chat-id: abc123
  • x-inference-metadata-customer-tier: enterprise
  • x-inference-metadata-release: 2026-03-11