🔑 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 Claudex-anthropic-keyClaude 3.5+
OpenAIx-openai-keyGPT-4o, GPT-3.5
Google Geminix-google-keyGemini 2.0
xAI Grokx-xai-keyGrok-3
Firecrawlx-firecrawl-keyWeb scraping
Brave Searchx-brave-keyWeb search
Tavilyx-tavily-keyAI search
Exax-exa-keySemantic search

Python 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 →