🔑 BYOK
Bring Your Own Key
Use your own API keys with Arch Tools. When you pass your own key, no Arch Tools credits are deducted — you pay the provider directly at their rates.
How it works
Pass your API key as a request header. Arch Tools detects it automatically and routes your request through your key.
curl -X POST https://arch-ai-tools.onrender.com/v1/tools/ai-generate \ -H "x-api-key: YOUR_ARCH_TOOLS_KEY" \ -H "x-openai-key: sk-your-openai-key" \ -H "Content-Type: application/json" \ -d '{"prompt": "Summarize this article...", "model": "gpt-4o"}'
The response includes "byok": true confirming your key was used and no credits were deducted.
Supported providers & headers
Anthropic Claude
x-anthropic-keyClaude 3.5+OpenAI
x-openai-keyGPT-4o, GPT-3.5Google Gemini
x-google-keyGemini 2.0xAI Grok
x-xai-keyGrok-3Firecrawl
x-firecrawl-keyWeb scrapingBrave Search
x-brave-keyWeb searchTavily
x-tavily-keyAI searchExa
x-exa-keySemantic searchPython example
import requests response = requests.post( "https://arch-ai-tools.onrender.com/v1/tools/ai-generate", headers={ "Authorization": "Bearer YOUR_ARCH_TOOLS_KEY", "x-anthropic-key": "sk-ant-your-key", }, json={ "prompt": "Write a haiku about AI payments", "model": "claude-sonnet-4-6" } ) data = response.json() print(data["text"]) # The response print(data["byok"]) # True — your key was used
Benefits of BYOK
Use your existing API contracts and spend less on Arch Tools credits for heavy LLM usage. BYOK is ideal for agents running high-volume inference — you get Arch Tools' infrastructure (MCP server, structured outputs, error handling) with your own model billing.
Try it now
Start with 250 free credits. No card required. Use BYOK for any provider.
Get your API key →