Flireo AI
WebsiteLinkedin
WebsiteLinkedin
  1. Guides
  • API Reference
    • Agents
      • List all agents
      • Create a new agent
      • Get an agent
      • Update an agent
      • Delete an agent
    • Tool Templates
      • List all tool templates
      • Create a new tool template
      • Get a tool template
      • Update a tool template
      • Delete a tool template
    • Numbers
      • List all phone numbers
      • Register a phone number
      • Get a phone number
      • Update a phone number
      • Delete a phone number
    • Calls
      • List calls
      • Get call by ID
      • Initiate outbound call
    • Call Control
      • Send control command to active call
    • Usage
      • Get usage logs
    • SIP Trunks
      • List SIP trunks
      • Create a SIP trunk
      • Get a SIP trunk
      • Delete a SIP trunk
    • Voices
      • List available voices
    • BYOK
      • Get BYOK configurations
      • Add BYOK configuration
      • Delete BYOK configuration
      • Get BYOK provider configurations
    • Domains
      • Get your domain
      • Add a domain
      • Delete your domain
      • List available Resend domains
      • Select and sync a Resend domain
      • Verify domain DNS records
      • Refresh domain status
    • Webhooks
      • Dynamic assistant configuration webhook
      • Tool/Function Call
      • Call Status Update
      • End of Call Report
    • Analysis Templates
      • List analysis templates
      • Create analysis template
      • Get analysis template
      • Update analysis template
      • Delete analysis template
    • Organization
      • Get organization information
    • Campaigns
      • List all campaigns
      • Create a campaign
      • Get a campaign
      • Update a campaign
      • Delete a campaign
      • List campaign leads
      • Add a lead
      • Remove a lead
  • Documentation
    • Get started
      • Quickstart
      • Introduction
      • Authentication
    • Core concepts
      • Agents
      • Phone numbers
      • Calls
      • Webhooks
    • Api's
      • Organization
      • Agents
      • Phone numbers
      • Sip trunks
      • Calls
      • Call control
      • Usage
      • Voices
      • BYOK
      • Domains
      • Analysis templates
      • Tool templates
    • Webhooks
      • Overview
      • Assistant request
      • Tool calls
      • Status update
      • End of call report
      • Security
    • Guides
      • BYOK Setup
      • Call analysis
      • Custom Tools
      • Call Transfers
      • xAI Realtime Integration
      • Analysis templates
      • Billing
      • Error codes
      • Rate limits
      • Sip Trunks
      • Tool templates
      • Troubleshooting
WebsiteLinkedin
WebsiteLinkedin
  1. Guides

BYOK Setup

Bring Your Own Key (BYOK) allows you to use your own API keys for AI providers, giving you control over costs and access to specific models.

Supported Providers#

ProviderCategoryUse For
DeepgramSTTSpeech-to-Text
OpenAILLMLanguage Model
ElevenLabsTTSText-to-Speech
ResendEmailNotifications

Step 1: Get Your API Keys#

Deepgram (STT)#

1.
Sign up at https://console.deepgram.com
2.
Create an API key with "Member" role
3.
Copy the key (it won't be shown again)

OpenAI (LLM)#

1.
Go to https://platform.openai.com/api-keys
2.
Click "Create new secret key"
3.
Copy the key (starts with sk-)

ElevenLabs (TTS)#

1.
Go to https://elevenlabs.io/app/settings/api-keys
2.
Click "Create API Key"
3.
Copy the key

Resend (Email)#

1.
Go to https://resend.com/api-keys
2.
Click "Create API Key"
3.
Copy the key (starts with re_)

Step 2: Add BYOK Configuration#

Add your API key via the API:
Repeat for each provider you want to configure.

Step 3: Verify Configuration#

Check which providers are configured:
Response:
{
  "byok_keys": {
    "deepgram_secret_id": "vault-id-1",
    "openai_secret_id": "vault-id-2",
    "elevenlabs_secret_id": null,
    "resend_secret_id": null
  }
}
A non-null value means the provider is configured.

Step 4: Configure Your Agent#

Create or update your agent to use the provider:

Available Models#

Check available models for each provider:

Important Notes for ElevenLabs#

When using ElevenLabs with BYOK:
1.
Voice Library Only - You only have access to voices in your ElevenLabs Voice Library
2.
No Public Voices - You don't automatically get access to all public ElevenLabs voices
3.
Add Voices First - Before using a voice, add it to your library at https://elevenlabs.io/app/voice-library
4.
Voice IDs - Use the voice ID from your ElevenLabs dashboard

Removing BYOK Configuration#

To remove a provider and go back to Flireo's default keys:

Security#

API keys are stored securely in Supabase Vault
Keys are never exposed in API responses
Only the vault reference ID is stored in your account
You can rotate keys at any time by adding a new key for the same provider
See BYOK API Reference for complete details.
Modified at 2025-12-31 12:09:16
Previous
Security
Next
Call analysis
Built with