Bring Your Own Key
(BYOK) AI Architecture
Stop paying 50x markups on proprietary sales software credits. Connect your own direct API keys for DeepSeek, OpenAI, Anthropic, Groq, and Google Gemini. Encrypted with AES-256-GCM and billed directly at raw provider token rates.
Authenticated encryption at rest
Pay wholesale LLM API prices
DeepSeek, OpenAI, Anthropic, Groq, Gemini
Keys never exposed to client browsers
Experience Direct LLM Key Management
InvokeIQ BYOK lets sales teams plug direct API credentials from 5 major AI providers into their cold email workspace. All credentials are encrypted with AES-256-GCM, masked permanently on the client, and verified via roundtrip diagnostic pings. This eliminates proprietary credit systems and reduces lead personalization costs by over 95%.
Toggle between providers below, test roundtrip latency handshakes, and inspect real-time token cost modeling per 1,000 prospects.
Interactive BYOK Key Manager & Diagnostic Ping
Simulate connecting direct API keys, testing roundtrip latency, and inspecting encryption safeguards.
Ultra-low token pricing for high-volume CSV icebreakers and bulk company enrichment.
How InvokeIQ Protects and Routes Your AI Keys
Enterprise key management requires authenticated encryption, zero client exposure, and intelligent provider routing. InvokeIQ decouples email campaign generation from credit monetization by integrating directly with provider endpoints via secured backend workers.
Traditional outreach software traps sales teams inside proprietary credit tiers. Here is how InvokeIQ delivers enterprise-grade security with wholesale pricing flexibility.
AES-256-GCM Authenticated Encryption
Keys are encrypted at rest using Galois/Counter Mode (GCM). Each stored credential contains a 12-byte initialization vector, a 16-byte authentication tag, and ciphertext. Any tampering with data automatically invalidates decryption.
Zero Client-Side Exposure
The InvokeIQ backend permanently masks saved keys as •••••••••••••••••• before returning responses to the browser. Your secret API tokens are decrypted strictly in ephemeral memory on secured backend workers.
Zero Platform Token Markup
You pay exactly what AI providers charge. Enriching 1,000 leads with DeepSeek V3 costs approximately $0.15 in direct tokens. InvokeIQ charges zero percentage fees, zero per-run surcharges, and zero transaction cuts.
Live Diagnostic Handshake Pings
The built-in connection tester executes real-time diagnostic handshakes against provider endpoints. It measures network latency in milliseconds and verifies model invocation scopes before batch campaigns execute.
Granular Model Routing
Define a global default model at the workspace level while maintaining the flexibility to override models for specific tasks. Use Groq for ultra-fast CSV cleaning and Anthropic Claude for executive value propositions.
Automatic Rate-Limit Backoff
When enriching 50,000 prospects, external APIs may return HTTP 429 rate throttles. InvokeIQ job queues automatically throttle request concurrency, calculate token usage, and apply exponential backoff to ensure smooth completion.
AES-256-GCM Authenticated Encryption Pipeline
Legacy AES-CBC encryption is vulnerable to bit-flipping and padding oracle attacks. InvokeIQ implements AES-256-GCM (Galois/Counter Mode), an authenticated symmetric cipher that produces a cryptographic authentication tag. If even a single byte of stored ciphertext is altered, decryption fails immediately, preventing corrupted credentials from leaking.
Here is the cryptographic specification executed on the InvokeIQ backend whenever credentials are saved or decrypted.
A cryptographically random 12-byte initialization vector is generated for every single credential encryption. No two keys share identical ciphertext even if the underlying key is identical.
The Galois Message Authentication Code (GMAC) authenticates both ciphertext and payload headers. Any database manipulation triggers an instant auth error rather than corrupt output.
API routes explicitly overwrite encrypted fields with •••••••••••••••••• prior to JSON transmission. Raw keys are never serialized in API responses or logs.
Supported AI Models & Token Economics
Model selection directly dictates outbound ROI. DeepSeek V3 provides the lowest token price ($0.14 / 1M input), Groq provides the highest throughput (500+ tokens/second), and Anthropic Claude 3.5 Haiku delivers the highest linguistic nuance for enterprise sales pitches.
The table below compares official direct provider pricing and recommended use cases across all 5 supported platforms.
| AI Provider | Flagship Model | Input / 1M Tokens | Output / 1M Tokens | Inference Latency | Optimal Outbound Use Case |
|---|---|---|---|---|---|
| DeepSeek | DeepSeek V3 | $0.14 | $0.28 | 350 - 450 ms | High-volume CSV enrichment & icebreaker generation. |
| OpenAI | GPT-4o-mini | $0.15 | $0.60 | 220 - 300 ms | Reliable enterprise compliance and structured JSON parsing. |
| Groq | Llama 3.3 70B | $0.59 | $0.79 | < 90 ms (500+ tok/s) | Real-time batch processing & large contact lists. |
| Anthropic | Claude 3.5 Haiku | $0.80 | $4.00 | 280 - 360 ms | Nuanced enterprise copywriting & negative constraints. |
| Google Gemini | Gemini 1.5 Flash | $0.075 | $0.30 | 180 - 250 ms | Large context analysis (PDFs, whitepapers, landing pages). |
Enrichment Cost at Scale: BYOK vs. Credit Platforms
Legacy sales platforms monetize outbound campaigns through proprietary credits ($0.05 to $0.15 per lead). Personalizing 25,000 leads on Clay or Apollo costs between $1,250 and $3,750. In InvokeIQ, using your own DeepSeek or GPT-4o-mini key costs under $5.00 total.
Here is the actual cost breakdown based on 750 tokens of website context and generated copy per prospect.
| Prospect Contacts | InvokeIQ BYOK (DeepSeek) | InvokeIQ BYOK (GPT-4o-mini) | Clay (Avg $0.08/credit) | Apollo / Instantly AI Add-On |
|---|---|---|---|---|
| 1,000 leads | $0.15 | $0.22 | $80.00 | $50.00 - $97.00 |
| 5,000 leads | $0.75 | $1.12 | $400.00 | $250.00+ |
| 25,000 leads | $3.75 | $5.62 | $2,000.00 | $1,250.00+ |
| 100,000 leads | $15.00 | $22.50 | $8,000.00 | Custom Enterprise Tier |
Provider Error Codes & Circuit Breakers
Direct API connections require defensive exception handling. When provider outages, token rate limits, or account balance depletion occur, InvokeIQ background workers automatically pause the queue, execute exponential retries, and protect active campaign dispatches.
| Error Signal | Root Cause | InvokeIQ Automated Response | User Action Required |
|---|---|---|---|
| HTTP 401 Unauthorized | Invalid, expired, or deleted API key token. | Job queue paused immediately. | Update secret key in Settings > AI Providers and run test ping. |
| HTTP 429 Rate Limit | Tokens Per Minute (TPM) or Requests (RPM) exceeded. | Exponential jitter backoff (30s, 60s, 120s). | None (automatic recovery) or upgrade provider tier limits. |
| HTTP 402 Insufficient Balance | Provider billing credits depleted or card declined. | Queue held safely; zero data lost. | Add funds in OpenAI/Anthropic console; click resume in InvokeIQ. |
| HTTP 503 Provider Overload | Upstream model outage or GPU capacity constraint. | Automatic fallback to secondary model. | Optional: configure backup provider (e.g., DeepSeek to Groq). |
| GCM Decryption Mismatch | Database tampering or missing ENCRYPTION_KEY salt. | Decryption returns empty; auth fails safely. | Re-enter API key in settings console to re-encrypt with current salt. |
Step-by-Step BYOK Setup Protocol
Connecting your AI provider keys requires 5 steps: generating a secret token from your AI console, pasting it into InvokeIQ settings, executing an authenticated ping handshake, selecting a default routing model, and deploying the key to live campaign sequences.
Step 1: Generate API Token from AI Provider Console
Log in to your chosen provider dashboard (OpenAI Platform, Anthropic Console, Groq Cloud, DeepSeek Platform, or Google AI Studio). Navigate to API Keys and create a new secret key with model invocation permissions.
Step 2: Access Settings > AI Providers in InvokeIQ
In your InvokeIQ dashboard, open Settings and click the "AI Providers" tab. You will see configuration cards for Google Gemini, OpenAI, Anthropic, Groq, and DeepSeek.
Step 3: Paste Key and Apply AES-256-GCM Encryption
Paste your secret key into the provider input field. InvokeIQ immediately encrypts the credential with AES-256-GCM using a cryptographically unique 12-byte initialization vector before storing it in the database.
Step 4: Execute Test Connection Handshake
Click "Test Connection". The server executes a lightweight test call against the provider API, verifies key validity, measures latency in milliseconds, and confirms active status.
Step 5: Set Default Routing and Deploy to Outreach Sequences
Select your preferred default model (e.g., DeepSeek V3 or GPT-4o-mini). The key is now globally available across all AI column builders and multistep email sequence generators with zero credit deduction.
Frequently Asked Questions About BYOK Architecture
BYOK architecture enables direct API connectivity to AI providers, decoupling campaign scale from software credit markups. Below are definitive answers regarding encryption security, cost savings, rate limits, and model routing.
What is Bring Your Own Key (BYOK) in cold email software?
Bring Your Own Key (BYOK) is an enterprise software architecture that allows you to connect your own direct API accounts for artificial intelligence providers (such as DeepSeek, OpenAI, Anthropic, Groq, or Google Gemini) instead of buying proprietary software credits from the platform. You pay the raw wholesale token rates directly to the AI provider, eliminating 10x to 50x platform credit markups.
How does InvokeIQ secure my private API keys?
All API keys in InvokeIQ are encrypted at rest using AES-256-GCM (Galois/Counter Mode), an authenticated cryptographic standard. Each key is encrypted with a random 12-byte initialization vector and a 16-byte authentication tag. Raw keys are never transmitted to browser clients, are permanently masked as dots in the user interface, and are decrypted only in ephemeral server memory during active batch execution.
How much can I save using BYOK compared to credit-based sales tools?
Traditional sales platforms like Clay or Apollo charge between $0.05 and $0.15 per enrichment credit. In contrast, running 1,000 lead enrichments via InvokeIQ BYOK using DeepSeek V3 or OpenAI GPT-4o-mini costs approximately $0.15 to $0.25 total in direct API tokens. That represents a 95% to 98% operational cost reduction.
Which AI models and providers are supported in InvokeIQ?
InvokeIQ supports 5 major AI provider platforms: DeepSeek (DeepSeek V3, DeepSeek R1), OpenAI (GPT-4o, GPT-4o-mini), Anthropic (Claude 3.5 Sonnet, Claude 3.5 Haiku), Groq (Llama 3.3 70B, Llama 3.1 8B), and Google Gemini (Gemini 1.5 Flash, Gemini 1.5 Pro).
What happens if my API key hits a rate limit or runs out of credits?
If a provider returns an HTTP 429 Rate Limit error, InvokeIQ background job workers apply exponential backoff jitter with automatic queue retries. If the key balance is exhausted or authentication fails with HTTP 401, the campaign execution pauses safely and alerts you without dropping queued prospects.
Can I configure different models for different outreach tasks?
Yes. InvokeIQ allows you to set a default model at the workspace level, but you can override the model on individual AI columns or campaign prompts. For instance, you can use Groq Llama 3.3 70B for ultra-fast company name cleaning and Anthropic Claude 3.5 Haiku for nuanced executive value propositions.
Does InvokeIQ charge any transaction fees on BYOK token usage?
No. InvokeIQ charges zero transaction fees, zero token margins, and zero per-run surcharge. All token usage is billed directly by your AI provider on your own corporate billing account.
Why is Groq recommended for high-volume cold email campaigns?
Groq uses Language Processing Unit (LPU) hardware to deliver inference speeds exceeding 500 tokens per second. When enriching large CSV files of 10,000 prospects, Groq completes batch jobs in minutes rather than hours, reducing job processing latency by up to 8x compared to standard cloud GPUs.
How does the 'Test Connection' diagnostic handshake work?
When you click 'Test Connection', InvokeIQ sends a lightweight authenticated ping request to the provider endpoint. It verifies that the credential has valid model invocation scopes, measures roundtrip server latency in milliseconds, and returns a verified status badge.
Is BYOK available on all InvokeIQ plans?
BYOK is available on InvokeIQ Pro ($19/month flat) and Growth plans. Free plan users can use included platform credits or upgrade to Pro to unlock unlimited BYOK scaling across all supported providers.
Your next 1,000 emails don't
have to soundidentical.
Turn lead data into personalized outreach and launch your first campaign without stitching together multiple tools.
No credit card required. Cancel anytime.