Configure AI Providers

Connect your AI model to enable Explain Findings and NL Policy Generation. SOFE never hosts or pays for inference — you bring your own model.

Why You Need This

AI features (Explain, Generate Policy) require a language model. SOFE routes your request to YOUR configured provider. Your API key, your costs, your data.

Quick Start: OpenRouter (Free, 2 Minutes)

  1. 1. Go to openrouter.ai/keys → Sign in with Google → Create key
  2. 2. In SOFE: Settings → AI Provider → Select "OpenRouter"
  3. 3. Paste your API key → Save AI Config
  4. 4. Select a model (free models marked with 🆓) → Save
  5. 5. Click "Test Connection" → Should say ✅ Connected

All Supported Providers

ProviderFree Tier?AuthBest For
OpenRouter✅ Free modelsAPI keyQuick start, multiple models
NVIDIA NIM✅ 1000 free callsAPI keyFast inference, GPU-optimized
HuggingFace✅ Free inferenceAPI keyOpen models, testing
Amazon BedrockPay per useAWS IAM roleEnterprise, privacy, no key needed
OpenAIPay per useAPI keyHighest quality (GPT-4o)
DatabricksWorkspace trialAPI key + URLMLOps teams, DBRX
Huawei ModelArtsTrial creditsAPI keyChina market, Pangu models

Amazon Bedrock (No API Key)

If you've connected your AWS account via CloudFormation, Bedrock works automatically — no API key needed. Your IAM role just needs bedrock:InvokeModel permission (included in the latest CF template).

# If you deployed the CF stack before Jul 7, re-deploy to get Bedrock permissions:
# Go to platform.sofe.dev/accounts → Re-launch CloudFormation stack

Rate Limits (AI Calls)

TierAI Calls/DayNote
Free5Proof of concept
Pro100Daily review
Enterprise1000Bulk analysis

AI calls are click-only — never auto-triggered. Each "Explain" or "Generate Policy" click counts as 1 call.

Troubleshooting

❌ "No AI provider configured" → Go to Settings → AI Provider → select a provider and save
❌ "Provider error (429)" → Your model is rate-limited upstream. SOFE auto-retries with a fallback model. Or switch to a different model in Settings.
❌ "AI rate limit exceeded" → You've used all daily AI calls. Resets at midnight UTC. Upgrade for more.
❌ "Invalid API key" → Re-check your key in Settings. OpenRouter keys start with sk-or-v1-