AI API Headers Builder

Generate correct authentication headers for AI API providers.

Select your AI API provider and enter an API key to generate the correct authentication headers. Outputs ready-to-copy header block and cURL flags for OpenAI, Claude, Gemini, and LLaMA (Ollama). API keys are never stored.

Headers (2)
Authorization:Bearer YOUR_API_KEY
Content-Type:application/json
cURL Flags
-H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json'

Related Tools

Learn More

FAQ

What headers does OpenAI require?
OpenAI requires Authorization: Bearer YOUR_KEY and Content-Type: application/json.
What headers does Anthropic Claude require?
Claude requires x-api-key: YOUR_KEY, anthropic-version: 2023-06-01, and Content-Type: application/json.
Is my API key stored anywhere?
No. Your API key is only used in your browser to build the header preview. It is never sent to any server.