BAMF.AIAI providers

AI provider usage

12 direct provider keys, 1 already via OpenRouter, 5 recommended to switch before beta.

ProviderKeyKindPurposeUsed byRecommendationReason
OpenAIOPENAI_API_KEYdirectchat / post generation / agent chat
bamfaiapp/supabase/functions/openai-proxy/index.ts
bamfaiapp/supabase/functions/_shared/openai.ts
bamfaiapp/supabase/functions/_shared/providerSecrets.ts
bamfaiapp/supabase/functions/computer-use-step/index.ts
bamfsite/supabase/functions/bamf-admin-agent-chat/index.ts
Switch to OpenRouterPlain chat.completions/responses text calls with no provider-only feature in use.
OpenAIOPENAI_API_KEYdirectimage generation
bamfaiapp/supabase/functions/openai-image-proxy/index.ts
bamfaiapp/supabase/functions/image-gen/index.ts
bamfsite/supabase/functions/generate-blog-image/index.ts
Keep directOpenAI images/generations and image-edit endpoints are provider-specific; not exposed as OpenRouter chat completions.
OpenAIOPENAI_API_KEYdirecttranscription (Whisper) / TTS
bamfaiapp/supabase/functions/openai-audio-proxy/index.ts
Keep directAudio transcription and TTS endpoints are not OpenRouter chat-completion compatible.
OpenAIOPENAI_API_KEYdirectchat (comment moderation reply, site chat widget)
bamfsite/supabase/functions/_shared/comment-ai-gateway.ts
bamfsite/supabase/functions/chat-widget-ai/index.ts
Switch to OpenRouterPlain chat.completions text calls, no provider-only feature in use.
OpenAIOPENAI_API_KEYdirectresearch fallback chat (OPENAI_RESEARCH_MODEL)
bamfaiapp/supabase/functions/perplexity-proxy/index.ts
Switch to OpenRouterText-only responses call in the fallback chain; already sits alongside an OpenRouter fallback branch in this same file.
AnthropicANTHROPIC_API_KEYdirectchat / post generation / admin agent chat
bamfaiapp/supabase/functions/anthropic-proxy/index.ts
bamfaiapp/supabase/functions/_shared/providerSecrets.ts
bamfsite/supabase/functions/bamf-admin-agent-chat/index.ts
Switch to OpenRouterStandard messages API calls with no evidence of prompt-caching or computer-use beta headers in these call sites; verify caching headers before switching bamf-admin-agent-chat specifically.
Google GeminiGOOGLE_GEMINI_API_KEY / GOOGLE_API_KEY / GEMINI_API_KEYdirectimage generation (imagen-3.0-fast, gemini-*-image)
bamfaiapp/supabase/functions/gemini-proxy/index.ts
bamfaiapp/supabase/functions/image-gen/index.ts
bamfaiapp/supabase/functions/image-gen-portrait/index.ts
bamfaiapp/supabase/functions/_shared/providerSecrets.ts
Keep directGoogle's native generateContent image endpoints are not available through OpenRouter's chat-completions surface.
xAI (Grok)XAI_API_KEYdirecttrend/research chat
bamfaiapp/supabase/functions/xai-trends/index.ts
bamfaiapp/supabase/functions/perplexity-proxy/index.ts
Switch to OpenRouterPlain chat completions; both files already implement an OpenRouter fallback path (OPENROUTER_API_KEY / OPENROUTER_MODEL), so this could become the primary path instead of a fallback.
OpenRouterOPENROUTER_API_KEYopenrouterchat fallback
bamfaiapp/supabase/functions/xai-trends/index.ts
bamfaiapp/supabase/functions/perplexity-proxy/index.ts
Not applicableAlready routed through OpenRouter.
PerplexityPERPLEXITY_API_KEYdirectresearch chat with web search
bamfaiapp/supabase/functions/_shared/providerSecrets.ts
bamfaiapp/supabase/functions/perplexity-proxy/index.ts
Keep directPerplexity's value is its own hosted web-search grounding, which is not reproduced by routing the same model id through OpenRouter.
ElevenLabsELEVENLABS_API_KEYdirectvoice cloning / text-to-speech (creator voice)
bamfaiapp/supabase/functions/elevenlabs-proxy/index.ts
Keep directVoice synthesis is a dedicated non-LLM-text API; not an OpenRouter-covered surface.
ApifyAPIFY_TOKEN / APIFY_ACTOR_ID / APIFY_AUTHOR_POSTS_ACTOR_IDdirectLinkedIn / social scraping actors
bamfaiapp/supabase/functions/_shared/apify-linkedin-posts.ts
bamfaiapp/supabase/functions/_shared/apify-account-budget.ts
bamfaiapp/supabase/functions/apify-probe/index.ts
bamfaiapp/supabase/functions/inspiration-scrape-profiles/index.ts
bamfaiapp/supabase/functions/viral-clip-scraper/index.ts
Not applicableApify is a scraping/actor platform, not an LLM provider.
OpenAIOPENAI_API_KEYdirectcomputer-use agent step (responses API)
bamfaiapp/supabase/functions/computer-use-step/index.ts
Keep directUncertain — computer-use style tool responses may depend on OpenAI-specific beta tool schemas; verify before switching.