Use your own API keys for providers like OpenAI, Anthropic, and Groq through apitree. You get caching, monitoring, MCP integration, and health tracking — without sharing credentials with apitree.
# Add a key
POST /api/v1/byok
{
"apiSlug": "openai-chat",
"providerName": "OpenAI",
"keyValue": "sk-...",
"authMethod": "bearer"
}
# List your keys (masked)
GET /api/v1/byok
# Remove a key
DELETE /api/v1/byok/openai-chatAuthorization: Bearer <key> (default, most APIs)X-API-Key)// After adding your OpenAI key via BYOK:
const apitree = new ApitreeClient('nxs_live_YOUR_KEY');
const result = await apitree.call('openai-chat', {
messages: [{ role: 'user', content: 'Hello' }]
}, { method: 'POST' });
// → Uses YOUR OpenAI key, through apitree proxy