Bring Your Own Key: use your own LLM API keys
Back to blogFeature

Bring Your Own Key: use your own LLM API keys

Luna Team2026-04-125 min read

Luna is one of the few competitive intelligence tools that gives you control over your AI costs.

Why BYO Key?

Traditional SaaS tools charge a significant markup on LLM calls. With Luna, you have a choice:

  • Use Luna's keys: simple, all-inclusive in your subscription
  • Use your own keys: direct AI costs, no intermediary markup

Supported providers

ProviderAvailable modelsAvg cost/scan
AnthropicClaude Sonnet, Haiku, Opus~$0.02
GoogleGemini Flash, Pro~$0.01
GroqLlama, Mixtral~$0.005
MistralMistral Large, Medium~$0.008
OpenRouter50+ modelsVariable

Secure configuration

1. Go to Settings > AI Engine

2. Enter your API key for the chosen provider

3. Click "Test & Save"

4. Luna validates the key with a minimal call

5. "Validated" badge confirms everything works

Secure storage

  • Keys stored with restricted database access
  • Invisible via client API (even to you)
  • Only edge functions (service role) can read them
  • Prefix displayed for identification (e.g., "sk-ant...7f2x")

Smart priority

When you have an active personal key:

1. Luna first uses YOUR key

2. If it fails, fallback to Luna's system key

3. You're notified if your key encounters errors

Potential savings

For average usage (5 competitors, 4 scans/day), your direct LLM costs are about $15-25/month vs. the AI portion bundled in a typical $200+/month subscription.

Follow us on LinkedIn for more insights

Stay updated with the latest in competitive intelligence.

Follow on LinkedIn

Related articles