API Keys
Managing your AI provider API keys securely.
VPA uses your own API keys to communicate with AI providers. This gives you control over costs and ensures your prompts remain private. Here's how to manage your API keys.
Why Use Your Own Keys?
- Privacy: Your videos and prompts stay between you and the provider
- Cost control: Pay only for what you use, directly to providers
- No middleman: Direct access to the latest models
- Flexibility: Use any model available on your account
Supported Providers
VPA currently supports API keys from:
OpenAI
- Used for: GPT-4o, GPT-4 Vision analysis
- Get your key:
platform.openai.com/api-keys - Required for: Video analysis with OpenAI models
Anthropic
- Used for: Claude 3.5 Sonnet, Claude 3 Opus analysis
- Get your key:
console.anthropic.com - Required for: Video analysis with Claude models
Google AI
- Used for: Gemini Pro Vision analysis
- Get your key:
aistudio.google.com - Required for: Video analysis with Gemini models
Keep keys secure
Adding an API Key
- Navigate to Settings > API Keys
- Click "Add API Key"
- Select the provider from the dropdown
- Paste your API key into the secure field
- Optionally add a label (e.g., "Personal", "Work")
- Click "Save"
Key Storage Security
VPA takes API key security seriously:
- Encryption: Keys are encrypted at rest using AES-256
- No logging: Keys are never logged or stored in plain text
- Server-side only: Keys never reach the browser
- Minimal access: Keys are only decrypted when making API calls
Managing Multiple Keys
You can add multiple keys per provider for different purposes:
- Personal vs. work accounts
- Different billing contexts
- Separate usage tracking
- Testing vs. production keys
Setting a Default Key
When you have multiple keys for a provider, you can set one as the default. This key will be used automatically unless you explicitly select another.
Key Validation
VPA validates keys when you add them to ensure they work correctly. We make a minimal API call to verify the key has the necessary permissions.
Permissions needed
Removing Keys
You can remove an API key at any time from Settings > API Keys. Click the delete button next to any key to remove it. This action is immediate and cannot be undone.
Usage Tracking
VPA displays estimated API costs for each analysis based on the number of frames and tokens used. Monitor your actual usage through each provider's dashboard.